Examples of updateSession()


Examples of org.apache.synapse.endpoints.dispatch.Dispatcher.updateSession()

            Dispatcher dispatcher =
                    (Dispatcher) synCtx.getProperty(
                            SynapseConstants.PROP_SAL_ENDPOINT_CURRENT_DISPATCHER);
            if (dispatcher != null) {
                if (!dispatcher.isServerInitiatedSession()) {
                    dispatcher.updateSession(synCtx);
                }
            }

            // This is only for stats collection
            synCtx.setProperty(SynapseConstants.SENDING_REQUEST, true);
View Full Code Here

Examples of org.hpi.server.session.HPISessionManager.updateSession()

   * @return
   */
  private Response executeInvoker(ExecuteInvokerRequest clientRequest) {
    try {
      HPISessionManager sessionManager = HPISessionManager.getInstance();
      sessionManager.updateSession(clientRequest.getSessionId());
     
      HPIDataFactory dataFactory = HPIDataFactory.getInstance();
      Invoker invoker = dataFactory.getInvoker(clientRequest.getInvokeId());
     
      if (invoker != null) {
View Full Code Here

Examples of org.hpi.server.session.HPISessionManager.updateSession()

   */
  private Response describeInvoker(DescribeInvokerRequest clientRequest) {
    Invoker invoker = null;
    try {
      HPISessionManager sessionManager = HPISessionManager.getInstance();
      sessionManager.updateSession(clientRequest.getSessionId());
      HPIDataFactory dataFactory = HPIDataFactory.getInstance();
      invoker = dataFactory.getInvoker(clientRequest.getInvokeId());
      if (invoker != null) {
        return new DescribeInvokerResponse(invoker, "Describe/consult invoker command executed successfully.", Response.Status.SUCCESS);
      } else {
View Full Code Here

Examples of org.hpi.server.session.HPISessionManager.updateSession()

   */
  private ListInvokersResponse retrieveListInvokers(ListInvokersRequest request) {
    List<Invoker> listInvokers = null;
    try {
      HPISessionManager sessionManager = HPISessionManager.getInstance();
      sessionManager.updateSession(request.getSessionId());
      HPIDataFactory dataFactory = HPIDataFactory.getInstance();
      listInvokers = new ArrayList<Invoker>(dataFactory.getInvokers());
      return new ListInvokersResponse(listInvokers, "List invokers executed successfully.", Response.Status.SUCCESS);
    } catch (HPISessionException e) {
      return new ListInvokersResponse(listInvokers, "The session is not valid. " + e.getMessage(), Response.Status.FAIL);
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.