| java.lang.Object org.apache.axis2.builder.BuilderUtil
BuilderUtil | public class BuilderUtil (Code) | | |
Field Summary | |
final public static int | BOM_SIZE |
Method Summary | |
public static SOAPEnvelope | buildsoapMessage(MessageContext messageContext, MultipleEntryHashMap requestParameterMap, SOAPFactory soapFactory) | protected static Attachments | createAttachmentsMap(MessageContext msgContext, InputStream inStream, String contentTypeString) | public static StAXBuilder | getAttachmentsBuilder(MessageContext msgContext, InputStream inStream, String contentTypeString, boolean isSOAP) | public static StAXBuilder | getBuilder(Reader in) | public static StAXBuilder | getBuilder(InputStream inStream) Creates an OMBuilder for a plain XML message. | public static StAXBuilder | getBuilder(InputStream inStream, String charSetEnc) Creates an OMBuilder for a plain XML message. | public static StAXBuilder | getBuilder(SOAPFactory soapFactory, InputStream in, String charSetEnc) | public static Builder | getBuilderFromSelector(String type, MessageContext msgContext) 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. | public static String | getCharSetEncoding(PushbackInputStream is2, String defaultEncoding) Use the BOM Mark to identify the encoding to be used. | public static String | getCharSetEncoding(String contentType) | public static String | getEnvelopeNamespace(String contentType) | public static StAXBuilder | getPOXBuilder(InputStream inStream, String charSetEnc) | public static PushbackInputStream | getPushbackInputStream(InputStream is) | public static Reader | getReader(InputStream is, String charSetEncoding) Use the BOM Mark to identify the encoding to be used. | public static StAXBuilder | getSOAPBuilder(InputStream inStream) Creates an OMBuilder for a SOAP message. | public static StAXBuilder | getSOAPBuilder(InputStream inStream, String charSetEnc) Creates an OMBuilder for a SOAP message. | public static void | validateCharSetEncoding(String charsetEncodingFromTransport, String charsetEncodingFromXML, String soapNamespaceURI) | public static void | validateSOAPVersion(String soapNamespaceURIFromTransport, SOAPEnvelope envelope) |
BOM_SIZE | final public static int BOM_SIZE(Code) | | |
getBuilder | public static StAXBuilder getBuilder(InputStream inStream) throws XMLStreamException(Code) | | Creates an OMBuilder for a plain XML message. Default character set encording is used.
Parameters: inStream - InputStream for a XML message Handler to a OMBuilder implementation instance throws: XMLStreamException - |
getBuilder | public static StAXBuilder getBuilder(InputStream inStream, String charSetEnc) throws XMLStreamException(Code) | | Creates an OMBuilder for a plain XML message.
Parameters: inStream - InputStream for a XML message Parameters: charSetEnc - Character set encoding to be used Handler to a OMBuilder implementation instance throws: XMLStreamException - |
getBuilderFromSelector | public static Builder getBuilderFromSelector(String type, MessageContext msgContext) throws AxisFault(Code) | | 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.
Parameters: type - Parameters: msgContext - the builder registered against the given content-type throws: AxisFault - |
getCharSetEncoding | public static String getCharSetEncoding(PushbackInputStream is2, String defaultEncoding) throws IOException(Code) | | Use the BOM Mark to identify the encoding to be used. Fall back to
default encoding specified
Parameters: is2 - PushBackInputStream (it must be a pushback input stream so that we can unread the BOM) Parameters: defaultEncoding - throws: java.io.IOException - |
getCharSetEncoding | public static String getCharSetEncoding(String contentType)(Code) | | Extracts and returns the character set encoding from the
Content-type header
Example:
Content-Type: text/xml; charset=utf-8
Parameters: contentType - |
getPushbackInputStream | public static PushbackInputStream getPushbackInputStream(InputStream is)(Code) | | Convenience method to get a PushbackInputStream so that we can read the BOM
Parameters: is - PushbackInputStream |
getSOAPBuilder | public static StAXBuilder getSOAPBuilder(InputStream inStream) throws XMLStreamException(Code) | | Creates an OMBuilder for a SOAP message. Default character set encording is used.
Parameters: inStream - InputStream for a SOAP message Handler to a OMBuilder implementation instance throws: XMLStreamException - |
getSOAPBuilder | public static StAXBuilder getSOAPBuilder(InputStream inStream, String charSetEnc) throws XMLStreamException(Code) | | Creates an OMBuilder for a SOAP message.
Parameters: inStream - InputStream for a SOAP message Parameters: charSetEnc - Character set encoding to be used Handler to a OMBuilder implementation instance throws: XMLStreamException - |
validateCharSetEncoding | public static void validateCharSetEncoding(String charsetEncodingFromTransport, String charsetEncodingFromXML, String soapNamespaceURI) throws AxisFault(Code) | | |
validateSOAPVersion | public static void validateSOAPVersion(String soapNamespaceURIFromTransport, SOAPEnvelope envelope)(Code) | | |
|
|