|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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,
InputStream inStream,
String contentTypeString,
boolean fileCacheForAttachments,
String attachmentRepoDir,
String attachmentSizeThreshold,
int contentLength)
|
protected static org.apache.axiom.attachments.Attachments |
createAttachmentsMap(MessageContext msgContext,
InputStream inStream,
String contentTypeString)
|
static org.apache.axiom.om.impl.builder.StAXBuilder |
getAttachmentsBuilder(MessageContext msgContext,
InputStream inStream,
String contentTypeString,
boolean isSOAP)
|
static org.apache.axiom.om.impl.builder.StAXBuilder |
getBuilder(InputStream inStream)
Creates an OMBuilder for a plain XML message. |
static org.apache.axiom.om.impl.builder.StAXBuilder |
getBuilder(InputStream inStream,
String charSetEnc)
Creates an OMBuilder for a plain XML message. |
static org.apache.axiom.om.impl.builder.StAXBuilder |
getBuilder(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,
InputStream in,
String charSetEnc)
|
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. |
static String |
getCharSetEncoding(PushbackInputStream is2,
String defaultEncoding)
Use the BOM Mark to identify the encoding to be used. |
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" |
static String |
getEnvelopeNamespace(String contentType)
|
static org.apache.axiom.om.impl.builder.StAXBuilder |
getPOXBuilder(InputStream inStream,
String charSetEnc)
|
static PushbackInputStream |
getPushbackInputStream(InputStream is)
Convenience method to get a PushbackInputStream so that we can read the BOM |
static Reader |
getReader(InputStream is,
String charSetEncoding)
Use the BOM Mark to identify the encoding to be used. |
static org.apache.axiom.om.impl.builder.StAXBuilder |
getSOAPBuilder(InputStream inStream)
Creates an OMBuilder for a SOAP message. |
static org.apache.axiom.om.impl.builder.StAXBuilder |
getSOAPBuilder(InputStream inStream,
String charSetEnc)
Creates an OMBuilder for a SOAP message. |
static boolean |
isAttachmentsCacheEnabled(MessageContext msgContext)
|
static void |
validateCharSetEncoding(String charsetEncodingFromTransport,
String charsetEncodingFromXML,
String soapNamespaceURI)
|
static void |
validateSOAPVersion(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(InputStream inStream, String charSetEnc) throws XMLStreamException
XMLStreamException
public static Reader getReader(InputStream is, String charSetEncoding) throws IOException
is
- the InputStream of a messagecharSetEncoding
- default character set encoding
IOException
public static PushbackInputStream getPushbackInputStream(InputStream is)
is
- a regular InputStream
public static String getCharSetEncoding(PushbackInputStream is2, String defaultEncoding) throws IOException
is2
- PushBackInputStream (it must be a pushback input stream so that we can
unread the BOM)defaultEncoding
- default encoding style if no BOM
IOException
public static String getEnvelopeNamespace(String contentType)
public static String getCharSetEncoding(String contentType)
contentType
- a content-type (from HTTP or MIME, for instance)
public static org.apache.axiom.om.impl.builder.StAXBuilder getAttachmentsBuilder(MessageContext msgContext, InputStream inStream, String contentTypeString, boolean isSOAP) throws org.apache.axiom.om.OMException, XMLStreamException, FactoryConfigurationError
org.apache.axiom.om.OMException
XMLStreamException
FactoryConfigurationError
protected static org.apache.axiom.attachments.Attachments createAttachmentsMap(MessageContext msgContext, InputStream inStream, String contentTypeString)
public static boolean isAttachmentsCacheEnabled(MessageContext msgContext)
public static org.apache.axiom.attachments.Attachments createAttachments(MessageContext msgContext, InputStream inStream, String contentTypeString, boolean fileCacheForAttachments, String attachmentRepoDir, String attachmentSizeThreshold, int contentLength)
public static org.apache.axiom.om.impl.builder.StAXBuilder getBuilder(Reader in) throws XMLStreamException
in
- an InputStream
XMLStreamException
public static org.apache.axiom.om.impl.builder.StAXBuilder getBuilder(InputStream inStream) throws XMLStreamException
inStream
- InputStream for a XML message
XMLStreamException
public static org.apache.axiom.om.impl.builder.StAXBuilder getBuilder(InputStream inStream, String charSetEnc) throws XMLStreamException
inStream
- InputStream for a XML messagecharSetEnc
- Character set encoding to be used
XMLStreamException
public static org.apache.axiom.om.impl.builder.StAXBuilder getSOAPBuilder(InputStream inStream) throws XMLStreamException
inStream
- InputStream for a SOAP message
XMLStreamException
public static org.apache.axiom.om.impl.builder.StAXBuilder getSOAPBuilder(InputStream inStream, String charSetEnc) throws XMLStreamException
inStream
- InputStream for a SOAP messagecharSetEnc
- Character set encoding to be used
XMLStreamException
public static org.apache.axiom.om.impl.builder.StAXBuilder getBuilder(org.apache.axiom.soap.SOAPFactory soapFactory, InputStream in, String charSetEnc) throws XMLStreamException
XMLStreamException
public static Builder getBuilderFromSelector(String type, MessageContext msgContext) throws AxisFault
type
- content-typemsgContext
- the active MessageContext
AxisFault
public static void validateSOAPVersion(String soapNamespaceURIFromTransport, org.apache.axiom.soap.SOAPEnvelope envelope)
public static void validateCharSetEncoding(String charsetEncodingFromTransport, String charsetEncodingFromXML, String soapNamespaceURI) throws AxisFault
AxisFault
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |