Examples of removeSession()


Examples of org.serviceconnector.server.IStatefulServer.removeSession()

  /** {@inheritDoc} */
  @Override
  public void receive(SCMPMessage reply) {
    // free server from subscription
    IStatefulServer server = this.subscription.getServer();
    server.removeSession(subscription);
    SCMPMessage reqMessage = request.getMessage();
    String serviceName = reqMessage.getServiceName();
    // forward server reply to client
    reply.setIsReply(true);
    reply.setServiceName(serviceName);
View Full Code Here

Examples of org.serviceconnector.server.IStatefulServer.removeSession()

    String sid = reqMessage.getSessionId();
    String serviceName = reqMessage.getServiceName();
    LOGGER.warn("receive exception sid=" + sid + " service=" + " " + ex.toString());
    // free server from subscription
    IStatefulServer server = this.subscription.getServer();
    server.removeSession(subscription);
    SCMPMessage fault = null;
    if (ex instanceof IdleTimeoutException) {
      // operation timeout handling - SCMP Version request
      fault = new SCMPMessageFault(reqMessage.getSCMPVersion(), SCMPError.OPERATION_TIMEOUT, "Operation timeout expired on SC cln unsubscribe sid=" + sid);
    } else if (ex instanceof IOException) {
View Full Code Here

Examples of org.serviceconnector.server.StatefulServer.removeSession()

          + abstractService.getName());
    }
    StatefulServer statefulServer = (StatefulServer) abstractServer;
    DeleteSessionCommandCallback callback;
    // free server from session
    statefulServer.removeSession(session);

    int otiOnSCMillis = (int) (oti * basicConf.getOperationTimeoutMultiplier());
    int tries = (otiOnSCMillis / Constants.WAIT_FOR_FREE_CONNECTION_INTERVAL_MILLIS);
    // Following loop implements the wait mechanism in case of a busy connection pool
    int i = 0;
View Full Code Here

Examples of org.serviceconnector.server.StatefulServer.removeSession()

        callback.setServer(server);
        server.addSession(session);
        try {
          server.createSession(msgToForward, callback, timeoutMillis);
        } catch (Exception e) {
          server.removeSession(session);
          callback.setServer(null);
          throw e;
        }
        return;
      }
View Full Code Here

Examples of org.serviceconnector.server.StatefulServer.removeSession()

        server.addSession(subscription);
        subscription.setServer(server);
        try {
          server.subscribe(msgToForward, callback, timeoutMillis);
        } catch (Exception e) {
          server.removeSession(subscription);
          throw e;
        }
        return;
      }
    }
View Full Code Here

Examples of org.serviceconnector.server.StatefulServer.removeSession()

          + abstractService.getName());
    }
    StatefulServer statefulServer = (StatefulServer) abstractServer;
    DeleteSessionCommandCallback callback;
    // free server from session
    statefulServer.removeSession(session);

    int otiOnSCMillis = (int) (oti * basicConf.getOperationTimeoutMultiplier());
    int tries = (otiOnSCMillis / Constants.WAIT_FOR_FREE_CONNECTION_INTERVAL_MILLIS);
    // Following loop implements the wait mechanism in case of a busy connection pool
    int i = 0;
View Full Code Here

Examples of org.serviceconnector.server.StatefulServer.removeSession()

          + abstractService.getName());
    }
    StatefulServer statefulServer = (StatefulServer) abstractServer;
    DeleteSessionCommandCallback callback;
    // free server from session
    statefulServer.removeSession(session);

    int otiOnSCMillis = (int) (oti * basicConf.getOperationTimeoutMultiplier());
    int tries = (otiOnSCMillis / Constants.WAIT_FOR_FREE_CONNECTION_INTERVAL_MILLIS);
    // Following loop implements the wait mechanism in case of a busy connection pool
    int i = 0;
View Full Code Here

Examples of org.serviceconnector.server.StatefulServer.removeSession()

          + abstractService.getName());
    }
    StatefulServer statefulServer = (StatefulServer) abstractServer;
    DeleteSessionCommandCallback callback;
    // free server from session
    statefulServer.removeSession(session);

    int otiOnSCMillis = (int) (oti * basicConf.getOperationTimeoutMultiplier());
    int tries = (otiOnSCMillis / Constants.WAIT_FOR_FREE_CONNECTION_INTERVAL_MILLIS);
    // Following loop implements the wait mechanism in case of a busy connection pool
    int i = 0;
View Full Code Here

Examples of org.wso2.carbon.identity.sso.saml.session.SSOSessionPersistenceManager.removeSession()

                        SAMLSSOConstants.StatusCodes.SUCCESS_CODE, null);
                reqValidationResponseDTO.setLogoutResponse(SAMLSSOUtil.encode(SAMLSSOUtil.marshall(logoutResponse)));
                reqValidationResponseDTO.setValid(true);
            }

            ssoSessionPersistenceManager.removeSession(sessionId, issuer);
            return reqValidationResponseDTO;
        } catch (Exception e) {
            log.error("Error Processing the Logout Request", e);
            throw new IdentityException("Error Processing the Logout Request", e);
        }
View Full Code Here

Examples of org.wso2.carbon.identity.sso.saml.ui.session.mgt.FESessionManager.removeSession()

        SAMLSSORespDTO authRespDTO = ssoServiceClient.authenticate(authnReqDTO, ssoTokenID);

        if (authRespDTO.getSessionEstablished()) {  // authentication is SUCCESSFUL
            storeSSOTokenCookie(ssoTokenID, httpServletRequest, httpServletResponse);
            String respSessionAuthID = sessionManager.addNewSession(new FESessionBean(authRespDTO, sessionBean.getRelayState()));
            sessionManager.removeSession(authSessionID);    // remove the SAMLSSORespDTO
            httpServletResponse.sendRedirect(getAdminConsoleURL(httpServletRequest) + "sso-saml/redirect_ajaxprocessor.jsp?" + SAMLSSOProviderConstants.FE_SESSION_KEY + "=" + respSessionAuthID);
        } else {    // authentication FAILURE
            validationResponseDTO.setValid(false);
            httpServletResponse.sendRedirect(calculateLoginPage(
                        getAdminConsoleURL(httpServletRequest), authRespDTO.getLoginPageURL())+ "?" + SAMLSSOProviderConstants.FE_SESSION_KEY + "=" + authSessionID);
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.