|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.builder.BuilderUtil
public class BuilderUtil
Field Summary | |
---|---|
static int |
BOM_SIZE
|
Constructor Summary | |
---|---|
BuilderUtil()
|
Method Summary | |
---|---|
static org.apache.axiom.soap.SOAPEnvelope |
buildsoapMessage(MessageContext messageContext,
MultipleEntryHashMap requestParameterMap,
org.apache.axiom.soap.SOAPFactory soapFactory)
|
static org.apache.axiom.attachments.Attachments |
createAttachments(MessageContext msgContext,
java.io.InputStream inStream,
java.lang.String contentTypeString,
boolean fileCacheForAttachments,
java.lang.String attachmentRepoDir,
java.lang.String attachmentSizeThreshold,
int contentLength)
|
protected static org.apache.axiom.attachments.Attachments |
createAttachmentsMap(MessageContext msgContext,
java.io.InputStream inStream,
java.lang.String contentTypeString)
|
static org.apache.axiom.om.impl.builder.StAXBuilder |
getAttachmentsBuilder(MessageContext msgContext,
java.io.InputStream inStream,
java.lang.String contentTypeString,
boolean isSOAP)
|
static org.apache.axiom.om.impl.builder.StAXBuilder |
getBuilder(java.io.InputStream inStream)
Creates an OMBuilder for a plain XML message. |
static org.apache.axiom.om.impl.builder.StAXBuilder |
getBuilder(java.io.InputStream inStream,
java.lang.String charSetEnc)
Creates an OMBuilder for a plain XML message. |
static org.apache.axiom.om.impl.builder.StAXBuilder |
getBuilder(java.io.Reader in)
Deprecated. If some one really need this method, please shout. |
static org.apache.axiom.om.impl.builder.StAXBuilder |
getBuilder(org.apache.axiom.soap.SOAPFactory soapFactory,
java.io.InputStream in,
java.lang.String charSetEnc)
|
static Builder |
getBuilderFromSelector(java.lang.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. |
static java.lang.String |
getCharSetEncoding(java.io.PushbackInputStream is2,
java.lang.String defaultEncoding)
Use the BOM Mark to identify the encoding to be used. |
static java.lang.String |
getCharSetEncoding(java.lang.String contentType)
Extracts and returns the character set encoding from the Content-type header Example: Content-Type: text/xml; charset=utf-8 |
static java.lang.String |
getEnvelopeNamespace(java.lang.String contentType)
|
static org.apache.axiom.om.impl.builder.StAXBuilder |
getPOXBuilder(java.io.InputStream inStream,
java.lang.String charSetEnc)
|
static java.io.PushbackInputStream |
getPushbackInputStream(java.io.InputStream is)
Convenience method to get a PushbackInputStream so that we can read the BOM |
static java.io.Reader |
getReader(java.io.InputStream is,
java.lang.String charSetEncoding)
Use the BOM Mark to identify the encoding to be used. |
static org.apache.axiom.om.impl.builder.StAXBuilder |
getSOAPBuilder(java.io.InputStream inStream)
Creates an OMBuilder for a SOAP message. |
static org.apache.axiom.om.impl.builder.StAXBuilder |
getSOAPBuilder(java.io.InputStream inStream,
java.lang.String charSetEnc)
Creates an OMBuilder for a SOAP message. |
static boolean |
isAttachmentsCacheEnabled(MessageContext msgContext)
|
static void |
validateCharSetEncoding(java.lang.String charsetEncodingFromTransport,
java.lang.String charsetEncodingFromXML,
java.lang.String soapNamespaceURI)
|
static void |
validateSOAPVersion(java.lang.String soapNamespaceURIFromTransport,
org.apache.axiom.soap.SOAPEnvelope envelope)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BOM_SIZE
Constructor Detail |
---|
public BuilderUtil()
Method Detail |
---|
public static org.apache.axiom.soap.SOAPEnvelope buildsoapMessage(MessageContext messageContext, MultipleEntryHashMap requestParameterMap, org.apache.axiom.soap.SOAPFactory soapFactory) throws AxisFault
AxisFault
public static org.apache.axiom.om.impl.builder.StAXBuilder getPOXBuilder(java.io.InputStream inStream, java.lang.String charSetEnc) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public static java.io.Reader getReader(java.io.InputStream is, java.lang.String charSetEncoding) throws java.io.IOException
is
- charSetEncoding
-
java.io.IOException
public static java.io.PushbackInputStream getPushbackInputStream(java.io.InputStream is)
is
-
public static java.lang.String getCharSetEncoding(java.io.PushbackInputStream is2, java.lang.String defaultEncoding) throws java.io.IOException
is2
- PushBackInputStream (it must be a pushback input stream so that we can unread the BOM)defaultEncoding
-
java.io.IOException
public static java.lang.String getEnvelopeNamespace(java.lang.String contentType)
public static java.lang.String getCharSetEncoding(java.lang.String contentType)
contentType
- public static org.apache.axiom.om.impl.builder.StAXBuilder getAttachmentsBuilder(MessageContext msgContext, java.io.InputStream inStream, java.lang.String contentTypeString, boolean isSOAP) throws org.apache.axiom.om.OMException, javax.xml.stream.XMLStreamException, javax.xml.parsers.FactoryConfigurationError
org.apache.axiom.om.OMException
javax.xml.stream.XMLStreamException
javax.xml.parsers.FactoryConfigurationError
protected static org.apache.axiom.attachments.Attachments createAttachmentsMap(MessageContext msgContext, java.io.InputStream inStream, java.lang.String contentTypeString)
public static boolean isAttachmentsCacheEnabled(MessageContext msgContext)
public static org.apache.axiom.attachments.Attachments createAttachments(MessageContext msgContext, java.io.InputStream inStream, java.lang.String contentTypeString, boolean fileCacheForAttachments, java.lang.String attachmentRepoDir, java.lang.String attachmentSizeThreshold, int contentLength)
public static org.apache.axiom.om.impl.builder.StAXBuilder getBuilder(java.io.Reader in) throws javax.xml.stream.XMLStreamException
in
-
javax.xml.stream.XMLStreamException
public static org.apache.axiom.om.impl.builder.StAXBuilder getBuilder(java.io.InputStream inStream) throws javax.xml.stream.XMLStreamException
inStream
- InputStream for a XML message
javax.xml.stream.XMLStreamException
public static org.apache.axiom.om.impl.builder.StAXBuilder getBuilder(java.io.InputStream inStream, java.lang.String charSetEnc) throws javax.xml.stream.XMLStreamException
inStream
- InputStream for a XML messagecharSetEnc
- Character set encoding to be used
javax.xml.stream.XMLStreamException
public static org.apache.axiom.om.impl.builder.StAXBuilder getSOAPBuilder(java.io.InputStream inStream) throws javax.xml.stream.XMLStreamException
inStream
- InputStream for a SOAP message
javax.xml.stream.XMLStreamException
public static org.apache.axiom.om.impl.builder.StAXBuilder getSOAPBuilder(java.io.InputStream inStream, java.lang.String charSetEnc) throws javax.xml.stream.XMLStreamException
inStream
- InputStream for a SOAP messagecharSetEnc
- Character set encoding to be used
javax.xml.stream.XMLStreamException
public static org.apache.axiom.om.impl.builder.StAXBuilder getBuilder(org.apache.axiom.soap.SOAPFactory soapFactory, java.io.InputStream in, java.lang.String charSetEnc) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public static Builder getBuilderFromSelector(java.lang.String type, MessageContext msgContext) throws AxisFault
type
- msgContext
-
AxisFault
public static void validateSOAPVersion(java.lang.String soapNamespaceURIFromTransport, org.apache.axiom.soap.SOAPEnvelope envelope)
public static void validateCharSetEncoding(java.lang.String charsetEncodingFromTransport, java.lang.String charsetEncodingFromXML, java.lang.String soapNamespaceURI) throws AxisFault
AxisFault
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |