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

AdminRequestConfigurator

public class AdminRequestConfigurator extends Object

Fields Summary
private final com.sun.enterprise.admin.common.AdminRequest
request
Constructors Summary
public AdminRequestConfigurator(com.sun.enterprise.admin.common.AdminRequest request)
Creates new AdminRequestConfigurator

        ArgChecker.checkValid(request, "request");  //NOI18N
        this.request = request;
    
Methods Summary
public javax.management.AttributegetAttribute()

        Attribute attribute = null;
        Param param = request.getParam(AdminConstants.ATTRIBUTE);
        if (param != null)
        {
            attribute = (Attribute)(param.mValue);
        }
        return attribute;
    
public javax.management.AttributeListgetAttributeList()

        AttributeList attributeList = null;
        Param param = request.getParam(AdminConstants.ATTRIBUTE_LIST);
        if (param != null)
        {
            attributeList = (AttributeList)(param.mValue);
        }
        return attributeList;
    
public java.lang.StringgetAttributeName()

        String attributeName = null;
        Param param = request.getParam(AdminConstants.ATTRIBUTE_NAME);
        if (param != null)
        {
            attributeName = (String)(param.mValue);
        }
        return attributeName;
    
public java.lang.String[]getAttributeNames()

        String[] attributeNames = null;
        Param param = request.getParam(AdminConstants.ATTRIBUTE_NAMES);
        if (param != null)
        {
            attributeNames = (String[])(param.mValue);
        }
        return attributeNames;
    
public java.lang.StringgetClientVersion()
Gets the clientVersion param value from the request.

        String clientVersion = null;
        Param param = request.getParam(AdminConstants.CLIENT_VERSION);
        if (param != null)
        {
            clientVersion = (String)(param.mValue);
        }
        return clientVersion;
    
public javax.management.ObjectNamegetObjectName()
Gets the objectName param value from the request.

        ObjectName objectName = null;
        Param param = request.getParam(AdminConstants.OBJECT_NAME);
        if (param != null)
        {
            objectName = (ObjectName)(param.mValue);
        }
        return objectName;
    
public java.lang.StringgetOperationName()
Gets the operationName param value from the request.

        String operationName = null;
        Param param = request.getParam(AdminConstants.OPERATION_NAME);
        if (param != null)
        {
            operationName = (String)(param.mValue);
        }
        return operationName;
    
public java.lang.Object[]getOperationParams()
Gets the 'params' param from the request.

        Object[] params = null;
        Param param = request.getParam(AdminConstants.OPERATION_PARAMS);
        if (param != null)
        {
            params = (Object[])(param.mValue);
        }
        return params;
    
public java.lang.String[]getOperationSignature()
Gets the signature param from the request.

        String[] signature = null;
        Param param = request.getParam(AdminConstants.OPERATION_SIGNATURE);
        if (param != null)
        {
            signature = (String[])(param.mValue);
        }
        return signature;
    
public voidsetAttribute(javax.management.Attribute attribute)

        request.addParam(new Param(AdminConstants.ATTRIBUTE, attribute));
    
public voidsetAttributeList(javax.management.AttributeList al)

        request.addParam(new Param(AdminConstants.ATTRIBUTE_LIST, al));
    
public voidsetAttributeName(java.lang.String attributeName)

        request.addParam(new Param(AdminConstants.ATTRIBUTE_NAME,  
                                    attributeName));
    
public voidsetAttributeNames(java.lang.String[] attributeNames)

        request.addParam(new Param(AdminConstants.ATTRIBUTE_NAMES, 
                                   attributeNames));
    
public voidsetClientVersion(java.lang.String clientVersion)
Sets the clientVersion param in the request.

        request.addParam(new Param(AdminConstants.CLIENT_VERSION, 
                                        clientVersion));
    
public voidsetObjectName(javax.management.ObjectName objectName)
Sets the objectName param in the request.

        request.addParam(new Param(AdminConstants.OBJECT_NAME, objectName));
    
public voidsetOperationName(java.lang.String operationName)
Sets the operationName param in the request.

        request.addParam(new Param(AdminConstants.OPERATION_NAME, 
                                        operationName));
    
public voidsetOperationParams(java.lang.Object[] params)
Sets the 'params' param in the request.

        request.addParam(new Param(AdminConstants.OPERATION_PARAMS, params));
    
public voidsetOperationSignature(java.lang.String[] signature)
Sets the signature param in the request.

        request.addParam(new Param(AdminConstants.OPERATION_SIGNATURE, 
                                   signature));