FileDocCategorySizeDatePackage
AdminResponseConfigurator.javaAPI DocGlassfish v2 API3565Fri May 04 22:33:16 BST 2007com.sun.enterprise.admin.common

AdminResponseConfigurator

public class AdminResponseConfigurator extends Object

Fields Summary
private final com.sun.enterprise.admin.common.AdminResponse
response
Constructors Summary
public AdminResponseConfigurator(com.sun.enterprise.admin.common.AdminResponse response)
Creates new AdminResponseConfigurator

        //ArgChecker.check(response);
        this.response = response;
    
Methods Summary
public java.lang.ThrowablegetException()

        Throwable t = null;
        if (hasException())
        {
            Param param = response.getParam(AdminConstants.EXCEPTION);
            t = (Throwable)param.mValue;
        }
        return t;
    
public java.lang.ObjectgetReturnValue()

        Object returnValue = null;
        Param param = response.getParam(AdminConstants.RETURN_VALUE);
        if (param != null)
        {
            returnValue = (Object)param.mValue;
        }
        return returnValue;
    
public booleanhasException()

        Param param = response.getParam(AdminConstants.EXCEPTION);
        if (param != null)
        {
            return (param.mValue != null);
        }
        return false;
    
public voidsetException(java.lang.Throwable t)

        //ArgChecker.check(t); Do we need this check?
        response.addParam(new Param(AdminConstants.EXCEPTION, t));
    
public voidsetReturnValue(java.io.Serializable value)

        response.addParam(new Param(AdminConstants.RETURN_VALUE, value));