Package org.dmd.dmp.server.extended

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


   
    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

        super(new ActionResponseDMO(mods), org.dmd.dmp.server.generated.DmpSchemaAG._ActionResponse);
    }

    // Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:470)
    public ActionResponse getModificationRecorder(){
        ActionResponse rc = new ActionResponse();
        rc.setModifier(new DmcTypeModifierMV(MetaDMSAG.__modify));
        return(rc);
    }
View Full Code Here

TOP

Related Classes of org.dmd.dmp.server.extended.ActionResponse

Copyright © 2018 www.massapicom. 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.