FileDocCategorySizeDatePackage
AsynchronousResponseImpl.javaAPI DocJBoss 4.2.12362Fri Jul 13 21:02:30 BST 2007org.jboss.aspects.asynchronous.common

AsynchronousResponseImpl

public class AsynchronousResponseImpl extends Object implements org.jboss.aspects.asynchronous.AsynchronousConstants, org.jboss.aspects.asynchronous.AsynchronousResponse
author
{Claude Hussenet Independent Consultant}.
version
$Revision: 57186 $

Fields Summary
private int
_code
private String
_reason
private Object
_result
Constructors Summary
public AsynchronousResponseImpl(int code, String reason, Object object)


         
   

      _code = code;

      _reason = reason;

      _result = object;

   
public AsynchronousResponseImpl(int code, Object object)


      _code = code;

      _result = object;

   
Methods Summary
public java.lang.StringgetReason()


      return _reason;

   
public intgetResponseCode()


      return _code;

   
public java.lang.ObjectgetResult()


      return _result;

   
public java.lang.StringtoString()


      return new StringBuffer(" Rc:")

      .append(getResponseCode())

      .append(getReason() != null ? " Re:" : "")

      .append(getReason() != null ? getReason() : "")

      .append(getResponseCode() != OK ? " Rs:" : "")

      .append(getResponseCode() != OK ? getResult() : "")

      .toString();