/** * Get a byte array representation of this message's SOAPPart. * * @return the soap part of this message as a <code>byte[]</code> * @throws org.apache.axis.AxisFault if creating the byte[] failed */ public byte[] getSOAPPartAsBytes() throws org.apache.axis.AxisFault { return mSOAPPart.getAsBytes(); }
/** * Get a byte array representation of this message's SOAPPart. * * @return the soap part of this message as a <code>byte[]</code> * @throws org.apache.axis.AxisFault if creating the byte[] failed */ public byte[] getSOAPPartAsBytes() throws org.apache.axis.AxisFault { return mSOAPPart.getAsBytes(); }
/** * Get a byte array representation of this message's SOAPPart. * * @return the soap part of this message as a <code>byte[]</code> * @throws org.apache.axis.AxisFault if creating the byte[] failed */ public byte[] getSOAPPartAsBytes() throws org.apache.axis.AxisFault { return mSOAPPart.getAsBytes(); }
/** * Get the content length for this SOAPPart. * This will force buffering of the SOAPPart, but it will * also cache the byte[] form of the SOAPPart. * * @return the content length in bytes */ public long getContentLength() throws AxisFault { saveChanges(); if (currentForm == FORM_OPTIMIZED) { return ((ByteArray) currentMessage).size(); } else if (currentForm == FORM_BYTES) { return ((byte[]) currentMessage).length; } byte[] bytes = this.getAsBytes(); return bytes.length; }
/** * Get the content length for this SOAPPart. * This will force buffering of the SOAPPart, but it will * also cache the byte[] form of the SOAPPart. * * @return the content length in bytes */ public long getContentLength() throws AxisFault { saveChanges(); if (currentForm == FORM_OPTIMIZED) { return ((ByteArray) currentMessage).size(); } else if (currentForm == FORM_BYTES) { return ((byte[]) currentMessage).length; } byte[] bytes = this.getAsBytes(); return bytes.length; }
/** * Get the content length for this SOAPPart. * This will force buffering of the SOAPPart, but it will * also cache the byte[] form of the SOAPPart. * * @return the content length in bytes */ public long getContentLength() throws AxisFault { saveChanges(); if (currentForm == FORM_OPTIMIZED) { return ((ByteArray) currentMessage).size(); } else if (currentForm == FORM_BYTES) { return ((byte[]) currentMessage).length; } byte[] bytes = this.getAsBytes(); return bytes.length; }
/** * Creates the DIME message * * @return a DIME part * * @throws org.apache.axis.AxisFault if the part could not be built */ protected DimeMultiPart createDimeMessage() throws org.apache.axis.AxisFault{ int sendtype= this.sendtype == SEND_TYPE_NOTSET ? SEND_TYPE_DEFAULT : this.sendtype; if (sendtype == SEND_TYPE_DIME){ if(dimemultipart== null){ dimemultipart= new DimeMultiPart(); dimemultipart.addBodyPart(new DimeBodyPart( soapPart.getAsBytes(), DimeTypeNameFormat.URI, "http://schemas.xmlsoap.org/soap/envelope/", "uuid:714C6C40-4531-442E-A498-3AC614200295")); for( java.util.Iterator i= orderedAttachments.iterator(); i.hasNext(); ){ AttachmentPart part= (AttachmentPart)i.next(); DataHandler dh= AttachmentUtils. getActivationDataHandler(part); dimemultipart.addBodyPart(new DimeBodyPart(dh,part.getContentId())); } } } return dimemultipart; }
/** * Creates the DIME message * * @return a DIME part * * @throws org.apache.axis.AxisFault if the part could not be built */ protected DimeMultiPart createDimeMessage() throws org.apache.axis.AxisFault{ int sendtype= this.sendtype == SEND_TYPE_NOTSET ? SEND_TYPE_DEFAULT : this.sendtype; if (sendtype == SEND_TYPE_DIME){ if(dimemultipart== null){ dimemultipart= new DimeMultiPart(); dimemultipart.addBodyPart(new DimeBodyPart( soapPart.getAsBytes(), DimeTypeNameFormat.URI, "http://schemas.xmlsoap.org/soap/envelope/", "uuid:714C6C40-4531-442E-A498-3AC614200295")); for( java.util.Iterator i= orderedAttachments.iterator(); i.hasNext(); ){ AttachmentPart part= (AttachmentPart)i.next(); DataHandler dh= AttachmentUtils. getActivationDataHandler(part); dimemultipart.addBodyPart(new DimeBodyPart(dh,part.getContentId())); } } } return dimemultipart; }
/** * Creates the DIME message * * @return a DIME part * * @throws org.apache.axis.AxisFault if the part could not be built */ protected DimeMultiPart createDimeMessage() throws org.apache.axis.AxisFault{ int sendtype= this.sendtype == SEND_TYPE_NOTSET ? SEND_TYPE_DEFAULT : this.sendtype; if (sendtype == SEND_TYPE_DIME){ if(dimemultipart== null){ dimemultipart= new DimeMultiPart(); dimemultipart.addBodyPart(new DimeBodyPart( soapPart.getAsBytes(), DimeTypeNameFormat.URI, "http://schemas.xmlsoap.org/soap/envelope/", "uuid:714C6C40-4531-442E-A498-3AC614200295")); for( java.util.Iterator i= orderedAttachments.iterator(); i.hasNext(); ){ AttachmentPart part= (AttachmentPart)i.next(); DataHandler dh= AttachmentUtils. getActivationDataHandler(part); dimemultipart.addBodyPart(new DimeBodyPart(dh,part.getContentId())); } } } return dimemultipart; }