Save This Page
Home » axis2-1.5-src » org.apache » axis2 » builder » [javadoc | source]
org.apache.axis2.builder
public class: BuilderUtil [javadoc | source]
java.lang.Object
   org.apache.axis2.builder.BuilderUtil
Field Summary
public static final  int BOM_SIZE     
Method from org.apache.axis2.builder.BuilderUtil Summary:
buildsoapMessage,   createAttachments,   createAttachmentsMap,   getAttachmentsBuilder,   getBuilder,   getBuilder,   getBuilder,   getBuilder,   getBuilderFromSelector,   getCharSetEncoding,   getCharSetEncoding,   getEnvelopeNamespace,   getPOXBuilder,   getPushbackInputStream,   getReader,   getSOAPBuilder,   getSOAPBuilder,   isAttachmentsCacheEnabled,   validateCharSetEncoding,   validateSOAPVersion
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.axis2.builder.BuilderUtil Detail:
 public static SOAPEnvelope buildsoapMessage(MessageContext messageContext,
    MultipleEntryHashMap requestParameterMap,
    SOAPFactory soapFactory) throws AxisFault 
 public static Attachments createAttachments(MessageContext msgContext,
    InputStream inStream,
    String contentTypeString,
    boolean fileCacheForAttachments,
    String attachmentRepoDir,
    String attachmentSizeThreshold,
    int contentLength) 
 protected static Attachments createAttachmentsMap(MessageContext msgContext,
    InputStream inStream,
    String contentTypeString) 
 public static StAXBuilder getAttachmentsBuilder(MessageContext msgContext,
    InputStream inStream,
    String contentTypeString,
    boolean isSOAP) throws XMLStreamException, FactoryConfigurationError, OMException 
 public static StAXBuilder getBuilder(Reader in) throws XMLStreamException 
Deprecated! If - some one really need this method, please shout.

    Utility method to get a StAXBuilder
 public static StAXBuilder getBuilder(InputStream inStream) throws XMLStreamException 
    Creates an OMBuilder for a plain XML message. Default character set encording is used.
 public static StAXBuilder getBuilder(InputStream inStream,
    String charSetEnc) throws XMLStreamException 
    Creates an OMBuilder for a plain XML message.
 public static StAXBuilder getBuilder(SOAPFactory soapFactory,
    InputStream in,
    String charSetEnc) throws XMLStreamException 
 public static Builder getBuilderFromSelector(String type,
    MessageContext msgContext) throws AxisFault 
    Initial work for a builder selector which selects the builder for a given message format based on the the content type of the recieved message. content-type to builder mapping can be specified through the Axis2.xml.
 public static String getCharSetEncoding(String contentType) 
    Extracts and returns the character set encoding from the Content-type header

    Example: "Content-Type: text/xml; charset=utf-8" would return "utf-8"

 public static String getCharSetEncoding(PushbackInputStream is2,
    String defaultEncoding) throws IOException 
    Use the BOM Mark to identify the encoding to be used. Fall back to default encoding specified
 public static String getEnvelopeNamespace(String contentType) 
 public static StAXBuilder getPOXBuilder(InputStream inStream,
    String charSetEnc) throws XMLStreamException 
 public static PushbackInputStream getPushbackInputStream(InputStream is) 
    Convenience method to get a PushbackInputStream so that we can read the BOM
 public static Reader getReader(InputStream is,
    String charSetEncoding) throws IOException 
    Use the BOM Mark to identify the encoding to be used. Fall back to default encoding specified
 public static StAXBuilder getSOAPBuilder(InputStream inStream) throws XMLStreamException 
    Creates an OMBuilder for a SOAP message. Default character set encording is used.
 public static StAXBuilder getSOAPBuilder(InputStream inStream,
    String charSetEnc) throws XMLStreamException 
    Creates an OMBuilder for a SOAP message.
 public static boolean isAttachmentsCacheEnabled(MessageContext msgContext) 
 public static  void validateCharSetEncoding(String charsetEncodingFromTransport,
    String charsetEncodingFromXML,
    String soapNamespaceURI) throws AxisFault 
 public static  void validateSOAPVersion(String soapNamespaceURIFromTransport,
    SOAPEnvelope envelope)