Package org.jboss.ws.core

Examples of org.jboss.ws.core.HTTPMessageImpl


/*  95 */     return reqMsg;
/*     */   }
/*     */
/*     */   public Object getReturnObject(MessageAbstraction message)
/*     */   {
/* 100 */     HTTPMessageImpl resMsg = (HTTPMessageImpl)message;
/*     */
/* 102 */     Object retObj = null;
/*     */     try
/*     */     {
/* 105 */       if (Source.class.isAssignableFrom(this.type))
/*     */       {
/* 107 */         retObj = resMsg.getXmlFragment().getSource();
/*     */       }
/* 109 */       else if (this.jaxbContext != null)
/*     */       {
/* 111 */         Unmarshaller unmarshaller = this.jaxbContext.createUnmarshaller();
/* 112 */         Source source = resMsg.getXmlFragment().getSource();
/* 113 */         retObj = unmarshaller.unmarshal(source);
/*     */       }
/*     */     }
/*     */     catch (RuntimeException rte)
/*     */     {
View Full Code Here


/* 384 */       String bindingID = sepMetaData.getBindingId();
/*     */       MessageAbstraction reqMessage;
/*     */       MessageAbstraction reqMessage;
/* 385 */       if ("http://www.w3.org/2004/08/wsdl/http".equals(bindingID))
/*     */       {
/* 387 */         reqMessage = new HTTPMessageImpl(headers, inputStream);
/*     */       }
/*     */       else
/*     */       {
/* 392 */         this.msgFactory.setServiceMode(sepMetaData.getServiceMode());
/* 393 */         this.msgFactory.setStyle(sepMetaData.getStyle());
View Full Code Here

/*  67 */     String resMessage = (String)metadata.get("ResponseCodeMessage");
/*  68 */     if ((resCode != null) && (!validResponseCodes.contains(resCode))) {
/*  69 */       throw new WSException("Invalid HTTP server response [" + resCode + "] - " + resMessage);
/*     */     }
/*  71 */     MimeHeaders mimeHeaders = getMimeHeaders(metadata);
/*  72 */     HTTPMessageImpl soapMsg = new HTTPMessageImpl(mimeHeaders, inputStream);
/*  73 */     return soapMsg;
/*     */   }
View Full Code Here

/* 59 */       dataObject = ((OnewayInvocation)dataObject).getParameters()[0];
/*    */     }
/* 61 */     if (!(dataObject instanceof HTTPMessageImpl)) {
/* 62 */       throw new IllegalArgumentException("Not a HTTPMessage: " + dataObject);
/*    */     }
/* 64 */     HTTPMessageImpl httpMessage = (HTTPMessageImpl)dataObject;
/* 65 */     Element root = httpMessage.getXmlFragment().toElement();
/*    */
/* 68 */     if (log.isTraceEnabled())
/*    */     {
/* 70 */       log.trace("Outgoing Message\n" + DOMWriter.printNode(root, true));
/*    */     }
View Full Code Here

/*  79 */         throw new WSException("MessageContext not available");
/*     */       }
/*  81 */       ParameterMetaData paramMetaData = (ParameterMetaData)opMetaData.getParameters().get(0);
/*  82 */       QName xmlName = paramMetaData.getXmlName();
/*     */
/*  84 */       HTTPMessageImpl httpMessage = (HTTPMessageImpl)reqMessage;
/*  85 */       Source source = httpMessage.getXmlFragment().getSource();
/*     */
/*  87 */       epInv.setRequestParamValue(xmlName, source);
/*     */
/*  89 */       return epInv;
/*     */     }
View Full Code Here

/* 104 */       if (msgContext == null) {
/* 105 */         throw new WSException("MessageContext not available");
/*     */       }
/*     */
/* 108 */       Source source = (Source)epInv.getReturnValue();
/* 109 */       HTTPMessageImpl resMessage = new HTTPMessageImpl(source);
/* 110 */       msgContext.setMessageAbstraction(resMessage);
/*     */
/* 112 */       return resMessage;
/*     */     }
/*     */     catch (Exception e)
View Full Code Here

/*  90 */         source = contentElement.getXMLFragment().getSource();
/*     */       }
/*     */     }
/*  93 */     else if ((this.message instanceof HTTPMessageImpl))
/*     */     {
/*  95 */       HTTPMessageImpl httpMessage = (HTTPMessageImpl)this.message;
/*  96 */       source = httpMessage.getXmlFragment().getSource();
/*     */     }
/*  98 */     return source;
/*     */   }
View Full Code Here

/* 133 */         throw new WebServiceException("Cannot set xml payload", ex);
/*     */       }
/*     */     }
/* 136 */     else if ((this.message instanceof HTTPMessageImpl))
/*     */     {
/* 138 */       HTTPMessageImpl httpMessage = (HTTPMessageImpl)this.message;
/* 139 */       httpMessage.setXmlFragment(new XMLFragment(source));
/*     */     }
/*     */
/* 142 */     MessageContextAssociation.peekMessageContext().setModified(true);
/*     */   }
View Full Code Here

         MessageAbstraction reqMessage;

         String bindingID = sepMetaData.getBindingId();
         if (HTTPBinding.HTTP_BINDING.equals(bindingID))
         {
            reqMessage = new HTTPMessageImpl(headers, inputStream);
         }
         else if (sepMetaData.isFeatureEnabled(JsonEncodingFeature.class))
         {
            MessageFactoryImpl factory = new MessageFactoryImpl();
            SOAPMessageImpl soapMsg = (SOAPMessageImpl)factory.createMessage();
View Full Code Here

         MessageAbstraction reqMessage;

         String bindingID = sepMetaData.getBindingId();
         if (HTTPBinding.HTTP_BINDING.equals(bindingID))
         {
            reqMessage = new HTTPMessageImpl(headers, inputStream);
         }
         else if (sepMetaData.isFeatureEnabled(JsonEncodingFeature.class))
         {
            MessageFactoryImpl factory = new MessageFactoryImpl();
            SOAPMessageImpl soapMsg = (SOAPMessageImpl)factory.createMessage();
View Full Code Here

TOP

Related Classes of org.jboss.ws.core.HTTPMessageImpl

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.