Examples of ActionResponse


Examples of javax.portlet.ActionResponse

            }

            if (method == ContainerConstants.METHOD_ACTION)
            {
                ActionRequest actionRequest = (ActionRequest) request.getAttribute(ContainerConstants.PORTLET_REQUEST);
                ActionResponse actionResponse = (ActionResponse) request.getAttribute(ContainerConstants.PORTLET_RESPONSE);
                // inject the current request into the actionRequest handler (o.a.j.engine.servlet.ServletRequestImpl)
                ((HttpServletRequestWrapper)((HttpServletRequestWrapper)actionRequest).getRequest()).setRequest(request);

                portlet.processAction(actionRequest, actionResponse);
            }
View Full Code Here

Examples of org.apache.ambari.server.controller.ActionResponse

  public void setDefaultTimeout(Short defaultTimeout) {
    this.defaultTimeout = defaultTimeout;
  }

  public ActionResponse convertToResponse() {
    return new ActionResponse(getActionName(), getActionType().name(), getInputs(),
        getTargetService(), getTargetComponent(), getDescription(), getTargetType().name(),
        getDefaultTimeout().toString());
  }
View Full Code Here

Examples of org.cybergarage.upnp.control.ActionResponse

    else
      deviceActionControlRecieved(new ActionRequest(ctlReq), service);
  }

  private void invalidActionControlRecieved(ControlRequest ctlReq) {
    ControlResponse actRes = new ActionResponse();
    actRes.setFaultResponse(UPnPStatus.INVALID_ACTION);
    ctlReq.post(actRes);
  }
View Full Code Here

Examples of org.dmd.dmp.server.extended.ActionResponse

  @Override
  public ActionResponseDMO action(ActionRequestDMO actionRequest) {
    // All requests are immediately wrapped for use on the server. This includes
    // associating the request with the originating HttpServletRequest.
    ActionRequest   request   = new ActionRequest(actionRequest, getThreadLocalRequest());
    ActionResponse  response   = null;
   
    if (request.isTrackingEnabled())
      logger.trace("Received by DMP servlet:\n" + request.toOIF());
   
    try {
      response = (ActionResponse) pluginManager.getSecurityManager().validateSession(request);
     
      if (response == null){
        SessionRI session = pluginManager.getSecurityManager().getSession(request);

        response = session.handleActionRequest(request);
      }
    } catch (DmcValueException e) {
      response = request.getResponse();
      response.setResponseType(ResponseTypeEnum.ERROR);
      response.setResponseText(e.toString());
     
      e.printStackTrace();
    }
   
    return(response.getDMO());
  }
View Full Code Here

Examples of org.dmd.dmp.server.extended.ActionResponse

   
    return(rc);
  }
 
  public ActionResponse handleActionRequest(ActionRequest request){
    ActionResponse rc = null;
    request.setOriginatorID(cacheRegistration.getID());
   
    if (request.getActionName().equals(DmpSchemaAG._primeEventChannel.getName().getNameString())){
      logger.debug("Received asynch priming request...");
      final ActionRequest primeRequest = request;
      rc = request.getResponse();
      rc.setLastResponse(false);
     
      Timer timer = new Timer(){};
      timer.schedule(new TimerTask() {
       
        @Override
        public void run() {
          logger.debug("Sending asynch priming response...");
         
          ActionResponse response = primeRequest.getResponse();
          response.setLastResponse(true);
         
          sendMessage(response);
        }
      }, 300);
    }
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.