Package org.dmd.dmp.server.extended

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


  @Override
  public LogoutResponseDMO logout(LogoutRequestDMO logoutRequest) {
    // All requests are immediately wrapped for use on the server. This includes
    // associating the request with the originating HttpServletRequest.
    LogoutRequest request = new LogoutRequest(logoutRequest, getThreadLocalRequest());
    LogoutResponse response = null;
   
    if (request.isTrackingEnabled())
      logger.trace("Received by DMP servlet:\n" + request.toOIF());
   
    try {
      // Ensure that the session is valid - if it isn't, an error reponse
      // will be returned.
      response = (LogoutResponse) securityManager.validateSession(request);
      if (response == null){
        // All activity takes place against the session
//        SessionRI session = securityManager.getSession(request);
        response = securityManager.logout(request);
       
      }
    } catch (DmcValueException e) {
      response = (LogoutResponse) request.getErrorResponse();
      response.setResponseText(e.toString());
      logger.error(e.toString());
    } catch (Exception ex){
      logger.error(DebugInfo.extractTheStack(ex));
      response = (LogoutResponse) request.getErrorResponse();
      response.setResponseText(DebugInfo.extractTheStack(ex));
    }

    return(response.getDMO());
  }
View Full Code Here


        super(new LogoutResponseDMO(mods), org.dmd.dmp.server.generated.DmpSchemaAG._LogoutResponse);
    }

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

    public LogoutResponseDMW(LogoutResponseDMO obj) {
        super(obj, org.dmd.dmp.server.generated.DmpSchemaAG._LogoutResponse);
    }

    public LogoutResponse cloneIt() {
        LogoutResponse rc = new LogoutResponse();
        rc.setDmcObject(getDMO().cloneIt());
        return(rc);
    }
View Full Code Here

    return response;
  }

  @Override
  public LogoutResponse logout(LogoutRequest request) {
    LogoutResponse response = request.getResponse();
   
    synchronized (sessions) {
      SessionRI session = sessions.get(request.getSessionID());
      if (session == null){
        response.setResponseType(ResponseTypeEnum.ERROR);
      }
      else{
        sessions.remove(session.getSessionIDRI());
       
        // TODO: remove it from the cache
View Full Code Here

TOP

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

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.