Package org.codehaus.xfire.attachments

Examples of org.codehaus.xfire.attachments.StreamedAttachments


            in = new GZIPInputStream(in);
        }
       
        if (ct.toLowerCase().indexOf("multipart/related") != -1)
        {
            Attachments atts = new StreamedAttachments(getMessageContext(),in, ct);

            msgIs = atts.getSoapMessage().getDataHandler().getInputStream();
           
            InMessage msg = new InMessage(STAXUtils.createXMLStreamReader(msgIs, getEncoding(),getMessageContext()), getUri());
            msg.setAttachments(atts);
            return msg;
        }
View Full Code Here


          // Nasty Hack to workaraound bug with lowercasing contenttype by some serwers what cause problems with finding message parts.
          // There should be better fix for this.
          String ct = request.getContentType().replaceAll("--=_part_","--=_Part_");
         
         
            Attachments atts = new StreamedAttachments(context,request.getInputStream(), ct);
         
            String encoding = getEncoding(atts.getSoapContentType());

            XMLStreamReader reader =
                STAXUtils.createXMLStreamReader(atts.getSoapMessage().getDataHandler().getInputStream(),
                                                encoding,
                                                context);
            InMessage message = new InMessage(reader, request.getRequestURI());
            message.setProperty(SoapConstants.SOAP_ACTION, soapAction);
            message.setAttachments(atts);
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.attachments.StreamedAttachments

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.