Package org.jboss.ws.core.jaxrpc.handler

Examples of org.jboss.ws.core.jaxrpc.handler.SOAPMessageContextJAXRPC


   }

   @Override
   protected boolean callFaultHandlerChain(QName portName, HandlerType type, Exception ex)
   {
      SOAPMessageContextJAXRPC msgContext = (SOAPMessageContextJAXRPC)MessageContextAssociation.peekMessageContext();
      HandlerChainBaseImpl handlerChain = (HandlerChainBaseImpl)jaxrpcService.getHandlerChain(portName);

      boolean status = true;
      if (handlerChain != null)
      {
View Full Code Here


/*     */     }
/* 220 */     EndpointMetaData.Type type = sepMetaData.getType();
/*     */     CommonMessageContext msgContext;
/* 224 */     if (type == EndpointMetaData.Type.JAXRPC)
/*     */     {
/* 226 */       CommonMessageContext msgContext = new SOAPMessageContextJAXRPC();
/* 227 */       invContext.addAttachment(javax.xml.rpc.handler.MessageContext.class, msgContext);
/*     */     }
/*     */     else
/*     */     {
/* 231 */       msgContext = new SOAPMessageContextJAXWS();
/* 232 */       msgContext.put("javax.xml.ws.handler.message.outbound", new Boolean(false));
/* 233 */       msgContext.put("javax.xml.ws.binding.attachments.inbound", new HashMap());
/* 234 */       invContext.addAttachment(javax.xml.ws.handler.MessageContext.class, msgContext);
/*     */     }
/*     */
/* 238 */     HttpServletResponse httpResponse = null;
/* 239 */     ServletHeaderSource headerSource = null;
/* 240 */     if ((invContext instanceof ServletRequestContext))
/*     */     {
/* 242 */       ServletRequestContext reqContext = (ServletRequestContext)invContext;
/*     */
/* 244 */       ServletContext servletContext = reqContext.getServletContext();
/* 245 */       HttpServletRequest httpRequest = reqContext.getHttpServletRequest();
/* 246 */       httpResponse = reqContext.getHttpServletResponse();
/* 247 */       headerSource = new ServletHeaderSource(httpRequest, httpResponse);
/*     */
/* 249 */       if (type == EndpointMetaData.Type.JAXRPC)
/*     */       {
/* 251 */         msgContext.put("javax.xml.ws.servlet.context", servletContext);
/* 252 */         msgContext.put("javax.xml.ws.servlet.request", httpRequest);
/* 253 */         msgContext.put("javax.xml.ws.servlet.response", httpResponse);
/*     */       }
/*     */       else
/*     */       {
/* 257 */         msgContext.put("javax.xml.ws.http.request.headers", headerSource.getHeaderMap());
/* 258 */         msgContext.put("javax.xml.ws.http.request.method", httpRequest.getMethod());
/* 259 */         msgContext.put("javax.xml.ws.http.request.querystring", httpRequest.getQueryString());
/* 260 */         msgContext.put("javax.xml.ws.http.request.pathinfo", httpRequest.getPathInfo());
/* 261 */         msgContext.put("javax.xml.ws.servlet.context", servletContext);
/* 262 */         msgContext.put("javax.xml.ws.servlet.request", httpRequest);
/* 263 */         msgContext.put("javax.xml.ws.servlet.response", httpResponse);
/*     */       }
/*     */
/*     */     }
/*     */
/* 268 */     MessageContextAssociation.pushMessageContext(msgContext);
/* 269 */     msgContext.setEndpointMetaData(sepMetaData);
/*     */     try
/*     */     {
/* 273 */       MessageAbstraction resMessage = processRequest(endpoint, headerSource, invContext, inStream);
/*     */
/* 276 */       msgContext = MessageContextAssociation.peekMessageContext();
/*     */
/* 278 */       Map headers = (Map)msgContext.get("javax.xml.ws.http.response.headers");
/* 279 */       if ((headerSource != null) && (headers != null)) {
/* 280 */         headerSource.setHeaderMap(headers);
/*     */       }
/* 282 */       Integer code = (Integer)msgContext.get("javax.xml.ws.http.response.code");
/* 283 */       if ((httpResponse != null) && (code != null)) {
/* 284 */         httpResponse.setStatus(code.intValue());
/*     */       }
/* 286 */       boolean isFault = false;
/* 287 */       if ((resMessage instanceof SOAPMessage))
View Full Code Here

/*     */     }
/* 506 */     OperationMetaData opMetaData = getOperationMetaData();
/*     */
/* 509 */     generateOrUpdateSchemas(opMetaData);
/*     */
/* 512 */     SOAPMessageContextJAXRPC msgContext = new SOAPMessageContextJAXRPC();
/* 513 */     MessageContextAssociation.pushMessageContext(msgContext);
/* 514 */     Object retObj = null;
/*     */     try
/*     */     {
/* 517 */       retObj = super.invoke(opName, inputParams, forceOneway);
View Full Code Here

/* 541 */       MessageContextAssociation.popMessageContext(); } throw localObject2;
/*     */   }
/*     */
/*     */   protected boolean callRequestHandlerChain(QName portName, UnifiedHandlerMetaData.HandlerType type)
/*     */   {
/* 548 */     SOAPMessageContextJAXRPC msgContext = (SOAPMessageContextJAXRPC)MessageContextAssociation.peekMessageContext();
/* 549 */     HandlerChainBaseImpl handlerChain = (HandlerChainBaseImpl)this.jaxrpcService.getHandlerChain(portName);
/* 550 */     boolean status = handlerChain != null ? handlerChain.handleRequest(msgContext, type) : true;
/*     */
/* 552 */     if (type == UnifiedHandlerMetaData.HandlerType.ENDPOINT) {
/* 553 */       XOPContext.visitAndRestoreXOPData();
View Full Code Here

/* 555 */     return status;
/*     */   }
/*     */
/*     */   protected boolean callResponseHandlerChain(QName portName, UnifiedHandlerMetaData.HandlerType type)
/*     */   {
/* 561 */     SOAPMessageContextJAXRPC msgContext = (SOAPMessageContextJAXRPC)MessageContextAssociation.peekMessageContext();
/* 562 */     HandlerChainBaseImpl handlerChain = (HandlerChainBaseImpl)this.jaxrpcService.getHandlerChain(portName);
/*     */
/* 564 */     boolean status = true;
/* 565 */     if (handlerChain != null)
/*     */     {
View Full Code Here

/* 569 */     return status;
/*     */   }
/*     */
/*     */   protected boolean callFaultHandlerChain(QName portName, UnifiedHandlerMetaData.HandlerType type, Exception ex)
/*     */   {
/* 575 */     SOAPMessageContextJAXRPC msgContext = (SOAPMessageContextJAXRPC)MessageContextAssociation.peekMessageContext();
/* 576 */     HandlerChainBaseImpl handlerChain = (HandlerChainBaseImpl)this.jaxrpcService.getHandlerChain(portName);
/*     */
/* 578 */     boolean status = true;
/* 579 */     if (handlerChain != null)
/*     */     {
View Full Code Here

/* 115 */     this.jaxrpcMapping = jaxrpcMapping;
/*     */   }
/*     */
/*     */   public XSModel getXsModel()
/*     */   {
/* 120 */     SOAPMessageContextJAXRPC msgContext = (SOAPMessageContextJAXRPC)MessageContextAssociation.peekMessageContext();
/* 121 */     if (msgContext == null) {
/* 122 */       throw new WSException("MessageContext not available");
/*     */     }
/* 124 */     OperationMetaData opMetaData = msgContext.getOperationMetaData();
/* 125 */     ServiceMetaData serviceMetaData = opMetaData.getEndpointMetaData().getServiceMetaData();
/* 126 */     TypesMetaData typesMetaData = serviceMetaData.getTypesMetaData();
/* 127 */     return typesMetaData.getSchemaModel();
/*     */   }
View Full Code Here

      // Build the message context
      CommonMessageContext msgContext;
      if (type == EndpointMetaData.Type.JAXRPC)
      {
         msgContext = new SOAPMessageContextJAXRPC();
         invContext.addAttachment(javax.xml.rpc.handler.MessageContext.class, msgContext);
      }
      else
      {
         msgContext = new SOAPMessageContextJAXWS();
View Full Code Here

      // Build the message context
      CommonMessageContext msgContext;
      if (type == EndpointMetaData.Type.JAXRPC)
      {
         msgContext = new SOAPMessageContextJAXRPC();
         invContext.addAttachment(javax.xml.rpc.handler.MessageContext.class, msgContext);
      }
      else
      {
         msgContext = new SOAPMessageContextJAXWS();
View Full Code Here

TOP

Related Classes of org.jboss.ws.core.jaxrpc.handler.SOAPMessageContextJAXRPC

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.