Package org.serviceconnector.server

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


    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
      fault = new SCMPMessageFault(SCMPError.OPERATION_TIMEOUT, "Operation timeout expired on SC cln unsubscribe sid=" + sid);
    } else if (ex instanceof IOException) {
View Full Code Here

    SCMPMessage reqMessage = request.getMessage();
    String serviceName = reqMessage.getServiceName();
    IStatefulServer server = this.cascSubscription.getServer();
    if (reqMessage.getHeader(SCMPHeaderAttributeKey.CASCADED_MASK) == null) {
      // free server from subscription if cascaded SC unsubscribes himself
      server.removeSession(this.cascSubscription);
    }
    // forward server reply to client
    reply.setIsReply(true);
    reply.setServiceName(serviceName);
    reply.setMessageType(SCMPMsgType.CSC_UNSUBSCRIBE);
View Full Code Here

    String serviceName = reqMessage.getServiceName();
    IStatefulServer server = this.cascSubscription.getServer();

    if (reqMessage.getHeader(SCMPHeaderAttributeKey.CASCADED_MASK) == null) {
      // free server from subscription if cascaded SC unsubscribes himself
      server.removeSession(this.cascSubscription);
    }
    SCMPMessage fault = null;
    if (ex instanceof IdleTimeoutException) {
      // operation timeout handling
      fault = new SCMPMessageFault(SCMPError.OPERATION_TIMEOUT, "Operation timeout expired on SC csc unsubscribe sid=" + sid);
View Full Code Here

    SCMPMessage reqMessage = request.getMessage();
    String serviceName = reqMessage.getServiceName();
    IStatefulServer server = this.cascSubscription.getServer();
    if (reqMessage.getHeader(SCMPHeaderAttributeKey.CASCADED_MASK) == null) {
      // free server from subscription if cascaded SC unsubscribes himself
      server.removeSession(this.cascSubscription);
    }
    // forward server reply to client
    reply.setIsReply(true);
    reply.setServiceName(serviceName);
    reply.setMessageType(SCMPMsgType.CSC_UNSUBSCRIBE);
View Full Code Here

    IStatefulServer server = this.cascSubscription.getServer();
    SCMPVersion scmpVersion = reqMessage.getSCMPVersion();

    if (reqMessage.getHeader(SCMPHeaderAttributeKey.CASCADED_MASK) == null) {
      // free server from subscription if cascaded SC unsubscribes himself
      server.removeSession(this.cascSubscription);
    }
    SCMPMessage fault = null;
    if (ex instanceof IdleTimeoutException) {
      // operation timeout handling - SCMP Version request
      fault = new SCMPMessageFault(scmpVersion, SCMPError.OPERATION_TIMEOUT,
View Full Code Here

  /** {@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

    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

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.