Package org.apache.axis2.engine.Handler

Examples of org.apache.axis2.engine.Handler.InvocationResponse


            msgContext.setTo(new EndpointReference(request.getURI().toString()));
           
            msgContext.setProperty(MessageContext.TRANSPORT_OUT, response.getOutputStream());
            msgContext.setProperty(Constants.OUT_TRANSPORT_INFO, new Axis2TransportInfo(response));

            InvocationResponse processed = RESTUtil.processURLRequest(msgContext,
                                                                      response.getOutputStream(),
                                                                      contentType);

            if (!processed.equals(InvocationResponse.CONTINUE)) {
                response.setStatusCode(HttpURLConnection.HTTP_OK);
                String s = HTTPTransportReceiver.getServicesHTML(configurationContext);
                PrintWriter pw = new PrintWriter(response.getOutputStream());
                pw.write(s);
                pw.flush();
View Full Code Here


        setMsgContextProperties(request, response, service, msgContext);
       
        ServiceContext serviceContext = msgContext.getServiceContext();
        serviceContext.setProperty(ServiceContext.SERVICE_OBJECT, this.endpointInstance);
               
        InvocationResponse processed = null;
        try {
            processed = RESTUtil.processURLRequest(msgContext,
                                                   response.getOutputStream(),
                                                   contentType);
        } finally {                       
            // de-associate JAX-WS MessageContext with the thread
            // (association happens in POJOEndpointLifecycleManager.createService() call)
            POJOWebServiceContext.clear();
        }
           
        if (!processed.equals(InvocationResponse.CONTINUE)) {
            response.setStatusCode(HttpURLConnection.HTTP_OK);
            String s = HTTPTransportReceiver.getServicesHTML(configurationContext);
            PrintWriter pw = new PrintWriter(response.getOutputStream());
            pw.write(s);
            pw.flush();
View Full Code Here

        ConfigurationContext configurationContext = msgContext.getConfigurationContext();
        configurationContext.fillServiceContextAndServiceGroupContext(msgContext);
       
        setMsgContextProperties(request, response, service, msgContext);
               
        InvocationResponse processed = RESTUtil.processURLRequest(msgContext,
                                                                  response.getOutputStream(),
                                                                  contentType);

        if (!processed.equals(InvocationResponse.CONTINUE)) {
            response.setStatusCode(HttpURLConnection.HTTP_OK);
            String s = HTTPTransportReceiver.getServicesHTML(configurationContext);
            PrintWriter pw = new PrintWriter(response.getOutputStream());
            pw.write(s);
            pw.flush();
View Full Code Here

        }

        msgContext.setProperty(MessageContext.TRANSPORT_OUT, response.getOutputStream());
        msgContext.setProperty(Constants.OUT_TRANSPORT_INFO, new Axis2TransportInfo(response));

        InvocationResponse processed = RESTUtil.processURLRequest(msgContext, response.getOutputStream(), null);

      if (!processed.equals(InvocationResponse.CONTINUE)) {
          response.setStatusCode(200);
          String s = HTTPTransportReceiver.getServicesHTML(configurationContext);
          PrintWriter pw = new PrintWriter(response.getOutputStream());
          pw.write(s);
          pw.flush();
View Full Code Here

      msgCtx.getOptions().setTimeOutInMilliSeconds(1000000);
     
      try {
        AxisEngine engine = new AxisEngine (msgCtx.getConfigurationContext());
        InvocationResponse response = InvocationResponse.CONTINUE;
       
        SandeshaPolicyBean policy = SandeshaUtil.getPropertyBean(msgCtx.getAxisOperation());
        if(policy.isUseMessageSerialization()) {
          if(msgCtx.isPaused()) {
            if (log.isDebugEnabled())
View Full Code Here

 
  private static InvocationResponse manageIncomingFault (AxisFault fault, RMMsgContext rmMsgCtx, SOAPFault faultPart) throws AxisFault {
 
    if (log.isDebugEnabled())
      log.debug("Enter: FaultManager::manageIncomingFault");
    InvocationResponse response = InvocationResponse.CONTINUE;
    if (log.isErrorEnabled())
      log.error(fault);
   
    SandeshaListener listner = (SandeshaListener) rmMsgCtx.getProperty(SandeshaClientConstants.SANDESHA_LISTENER);
    if (listner!=null)
View Full Code Here

    return response;
  }
 
  public static InvocationResponse processMessagesForFaults (RMMsgContext rmMsgCtx, StorageManager storageManager) throws AxisFault {
   
    InvocationResponse response = InvocationResponse.CONTINUE;
   
    SOAPEnvelope envelope = rmMsgCtx.getSOAPEnvelope();
    if (envelope==null)
      return response;
   
View Full Code Here

  public InvocationResponse processSequenceHeader(RMMsgContext rmMsgCtx, Transaction transaction) throws AxisFault {
    if (log.isDebugEnabled())
      log.debug("Enter: SequenceProcessor::processSequenceHeader");
   
    InvocationResponse result = InvocationResponse.CONTINUE;
    Sequence sequence = (Sequence) rmMsgCtx.getMessagePart(Sandesha2Constants.MessageParts.SEQUENCE);
    if(sequence != null) {
      // This is a reliable message, so hand it on to the main routine
      result = processReliableMessage(rmMsgCtx, transaction);
    } else {
View Full Code Here

 
  public InvocationResponse processReliableMessage(RMMsgContext rmMsgCtx, Transaction transaction) throws AxisFault {
    if (log.isDebugEnabled())
      log.debug("Enter: SequenceProcessor::processReliableMessage");

    InvocationResponse result = InvocationResponse.CONTINUE;
   
    if (rmMsgCtx.getProperty(Sandesha2Constants.APPLICATION_PROCESSING_DONE) != null
        && rmMsgCtx.getProperty(Sandesha2Constants.APPLICATION_PROCESSING_DONE).equals("true")) {
      return result;
    }
View Full Code Here

        ConfigurationContext configurationContext = msgContext.getConfigurationContext();
        configurationContext.fillServiceContextAndServiceGroupContext(msgContext);
       
        setMsgContextProperties(request, response, service, msgContext);
               
        InvocationResponse processed = RESTUtil.processURLRequest(msgContext,
                                                                  response.getOutputStream(),
                                                                  contentType);

        if (!processed.equals(InvocationResponse.CONTINUE)) {
            response.setStatusCode(HttpURLConnection.HTTP_OK);
            String s = HTTPTransportReceiver.getServicesHTML(configurationContext);
            PrintWriter pw = new PrintWriter(response.getOutputStream());
            pw.write(s);
            pw.flush();
View Full Code Here

TOP

Related Classes of org.apache.axis2.engine.Handler.InvocationResponse

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.