Examples of AdminResponse


Examples of com.sun.enterprise.admin.common.AdminResponse

        reqConfigurator.setOperationName(operationName);
        reqConfigurator.setOperationParams(params);
        reqConfigurator.setOperationSignature(signature);
        reqConfigurator.setClientVersion(ADMIN_CLIENT_VERSION);

        AdminResponse response = sendRequest(request);
        AdminResponseConfigurator resConfigurator =
            new AdminResponseConfigurator(response);
        if (resConfigurator.hasException())
        {
            Throwable t = resConfigurator.getException();
View Full Code Here

Examples of com.sun.enterprise.admin.common.AdminResponse

        AdminRequestConfigurator reqConfigurator =
            new AdminRequestConfigurator(request);
        reqConfigurator.setObjectName(mbeanName);
        reqConfigurator.setAttributeName(attributeName);
        reqConfigurator.setClientVersion(ADMIN_CLIENT_VERSION);
        AdminResponse response = sendRequest(request);
        //Assert.assert(response);
        AdminResponseConfigurator resConfigurator =
            new AdminResponseConfigurator(response);
        if (resConfigurator.hasException())
        {
View Full Code Here

Examples of com.sun.enterprise.admin.common.AdminResponse

        AdminRequestConfigurator reqConfigurator =
            new AdminRequestConfigurator(request);
        reqConfigurator.setObjectName(mbeanName);
        reqConfigurator.setAttribute(attribute);
        reqConfigurator.setClientVersion(ADMIN_CLIENT_VERSION);
        AdminResponse response = sendRequest(request);
        //Assert.assert(response);
        AdminResponseConfigurator resConfigurator =
            new AdminResponseConfigurator(response);
        if (resConfigurator.hasException())
        {
View Full Code Here

Examples of com.sun.enterprise.admin.common.AdminResponse

        AdminRequestConfigurator reqConfigurator =
            new AdminRequestConfigurator(request);
        reqConfigurator.setObjectName(mbeanName);
        reqConfigurator.setAttributeNames(attributes);
        reqConfigurator.setClientVersion(ADMIN_CLIENT_VERSION);
        AdminResponse response = sendRequest(request);
        //Assert.assert(response);
        AdminResponseConfigurator resConfigurator =
            new AdminResponseConfigurator(response);
        if (resConfigurator.hasException())
        {
View Full Code Here

Examples of com.sun.enterprise.admin.common.AdminResponse

        AdminRequestConfigurator reqConfigurator =
            new AdminRequestConfigurator(request);
        reqConfigurator.setObjectName(mbeanName);
        reqConfigurator.setAttributeList(attributes);
        reqConfigurator.setClientVersion(ADMIN_CLIENT_VERSION);
        AdminResponse response = sendRequest(request);
        //Assert.assert(response);
        AdminResponseConfigurator resConfigurator =
            new AdminResponseConfigurator(response);
        if (resConfigurator.hasException())
        {
View Full Code Here

Examples of com.sun.enterprise.admin.common.AdminResponse

    }

    private AdminResponse sendRequest(AdminRequest request)
        throws AFConnectionException, AFRuntimeException
    {
        AdminResponse   response    = null;
        IConnection     connection  = null;
        try
        {
      connection = ConnectionFactory.createConnection(connectorAddress);
            connection.send(request);
View Full Code Here

Examples of com.sun.enterprise.admin.common.AdminResponse

        {
        }
       
        // here we are only in case of non-matching version
        // prepare and wrap exception
        AdminResponse response = new AdminResponse();
        AdminResponseConfigurator config = new AdminResponseConfigurator(response);
        String msg;
        if(clientVersion == null)
            msg = localStrings.getString( "admin.server.core.servlet.no_client_version" );
        else
View Full Code Here

Examples of com.sun.enterprise.admin.common.AdminResponse

  }
 
    private synchronized AdminResponse callMBean(AdminRequest req)
    {
        String type = req.getRequestType();
        AdminResponse response =  null;

        if (type.equals(AdminRequestType.INVOKE))
      {
        response = callInvoke(req);
      }
        else if(type.equals(AdminRequestType.GET_ATTRIBUTE))
        {
            response = callGetAttribute(req);
        }
        else if(type.equals(AdminRequestType.SET_ATTRIBUTE))
        {
            response = callSetAttribute(req);
        }
        else if (type.equals(AdminRequestType.GET_ATTRIBUTES))
        {
            response = callGetAttributes(req);
        }
        else if (type.equals(AdminRequestType.SET_ATTRIBUTES))
        {
            response = callSetAttributes(req);
        }
        else
        {
            response = new AdminResponse();
            AdminResponseConfigurator config = new
                AdminResponseConfigurator(response);
            config.setException(new Exception("No Such Type"));
      }
      return ( response );
View Full Code Here

Examples of com.sun.enterprise.admin.common.AdminResponse

      return ( response );
    }
    private synchronized AdminResponse callInvoke(AdminRequest req)
    {
        Object  invokeResult = null;
        AdminResponse response = new AdminResponse();
        AdminResponseConfigurator responseConfig = new
            AdminResponseConfigurator(response);
        AdminRequestConfigurator requestConfig = new
            AdminRequestConfigurator(req);
        ObjectName  objName      = requestConfig.getObjectName();
View Full Code Here

Examples of com.sun.enterprise.admin.common.AdminResponse

    }

    private synchronized AdminResponse callGetAttribute(AdminRequest req)
    {
        Object  invokeResult = null;
        AdminResponse response = new AdminResponse();
        AdminResponseConfigurator responseConfig = new
            AdminResponseConfigurator(response);
        AdminRequestConfigurator requestConfig = new
            AdminRequestConfigurator(req);
        ObjectName  objName      = requestConfig.getObjectName();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.