|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axiom.om.OMOutputFormat
public class OMOutputFormat
Formats options for OM Output.
Setting of all the properties in a OMOutputFormat should be done before calling the getContentType() method. It is advised to set all the properties at the creation time of the OMOutputFormat and not to change them later.
| Field Summary | |
|---|---|
static java.lang.String |
ACTION_PROPERTY
|
static java.lang.String |
DEFAULT_CHAR_SET_ENCODING
Field DEFAULT_CHAR_SET_ENCODING. |
static java.lang.String |
RESPECT_SWA_ATTACHMENT_ORDER
Deprecated. As of version 1.2.13, Axiom always respects the order of attachments. |
static java.lang.Boolean |
RESPECT_SWA_ATTACHMENT_ORDER_DEFAULT
Deprecated. As of version 1.2.13, Axiom always respects the order of attachments. |
static java.lang.String |
USE_CTE_BASE64_FOR_NON_TEXTUAL_ATTACHMENTS
|
| Constructor Summary | |
|---|---|
OMOutputFormat()
|
|
OMOutputFormat(OMOutputFormat format)
Constructs a new instance by copying the configuration from an existing instance. |
|
| Method Summary | |
|---|---|
boolean |
containsKey(java.lang.String key)
|
java.lang.String |
getCharSetEncoding()
Returns the character set encoding scheme. |
java.lang.String |
getContentType()
Return the content-type value that should be written with the message. |
java.lang.String |
getContentTypeForMTOM(java.lang.String SOAPContentType)
Generates a Content-Type value for MTOM messages. |
java.lang.String |
getContentTypeForSwA(java.lang.String SOAPContentType)
|
java.lang.String |
getMimeBoundary()
|
MultipartWriterFactory |
getMultipartWriterFactory()
Get the currently configured multipart writer factory. |
java.lang.String |
getNextContentId()
|
int |
getOptimizedThreshold()
|
java.lang.Object |
getProperty(java.lang.String key)
|
java.lang.String |
getRootContentId()
|
StAXWriterConfiguration |
getStAXWriterConfiguration()
Get the currently configured StAX writer configuration. |
XMLStreamWriterFilter |
getXmlStreamWriterFilter()
|
java.lang.String |
getXmlVersion()
|
boolean |
isAutoCloseWriter()
Deprecated. |
boolean |
isDoingSWA()
Indicates whether the document should be serialized using SwA. |
boolean |
isIgnoreXMLDeclaration()
|
boolean |
isOptimized()
Indicates whether the document should be serialized using MTOM. |
boolean |
isSOAP11()
|
void |
setAutoCloseWriter(boolean autoCloseWriter)
Deprecated. |
void |
setCharSetEncoding(java.lang.String charSetEncoding)
|
void |
setContentType(java.lang.String c)
Set a raw content-type (i.e. |
void |
setDoingSWA(boolean doingSWA)
Specifies that the document should be serialized using SwA (SOAP with Attachments). |
void |
setDoOptimize(boolean optimize)
Specifies that the document should be serialized using MTOM. |
void |
setIgnoreXMLDeclaration(boolean ignoreXMLDeclaration)
|
void |
setMimeBoundary(java.lang.String mimeBoundary)
|
void |
setMultipartWriterFactory(MultipartWriterFactory multipartWriterFactory)
Set the multipart writer factory. |
void |
setOptimizedThreshold(int optimizedThreshold)
|
java.lang.Object |
setProperty(java.lang.String key,
java.lang.Object value)
|
void |
setRootContentId(java.lang.String rootContentId)
|
void |
setSOAP11(boolean b)
|
void |
setStAXWriterConfiguration(StAXWriterConfiguration writerConfiguration)
Set the StAX writer configuration that will be used when requesting an XMLStreamWriter from StAXUtils. |
void |
setXmlStreamWriterFilter(XMLStreamWriterFilter xmlStreamWriterFilter)
|
void |
setXmlVersion(java.lang.String xmlVersion)
|
java.lang.String |
toString()
Use toString for logging state of the OMOutputFormat |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_CHAR_SET_ENCODING
public static final java.lang.String ACTION_PROPERTY
public static final java.lang.String USE_CTE_BASE64_FOR_NON_TEXTUAL_ATTACHMENTS
public static final java.lang.String RESPECT_SWA_ATTACHMENT_ORDER
public static final java.lang.Boolean RESPECT_SWA_ATTACHMENT_ORDER_DEFAULT
| Constructor Detail |
|---|
public OMOutputFormat()
public OMOutputFormat(OMOutputFormat format)
format - the existing instance| Method Detail |
|---|
public java.lang.Object getProperty(java.lang.String key)
key - String
public java.lang.Object setProperty(java.lang.String key,
java.lang.Object value)
key - Stringvalue - Object
public boolean containsKey(java.lang.String key)
key -
public boolean isOptimized()
true if the document should be serialized using MTOM; false
otherwise; the return value is always false if isDoingSWA()
returns truepublic java.lang.String getContentType()
public void setContentType(java.lang.String c)
c - public java.lang.String getMimeBoundary()
public java.lang.String getRootContentId()
public java.lang.String getNextContentId()
public java.lang.String getCharSetEncoding()
public void setCharSetEncoding(java.lang.String charSetEncoding)
public java.lang.String getXmlVersion()
public void setXmlVersion(java.lang.String xmlVersion)
public void setSOAP11(boolean b)
public boolean isSOAP11()
public boolean isIgnoreXMLDeclaration()
public void setIgnoreXMLDeclaration(boolean ignoreXMLDeclaration)
public void setDoOptimize(boolean optimize)
setDoingSWA(boolean).
optimize - true if the document should be serialized using MTOM;
false otherwisepublic boolean isDoingSWA()
true if the document should be serialized using SwA; false
otherwisepublic void setDoingSWA(boolean doingSWA)
setDoOptimize(boolean) is ignored.
doingSWA - true if the document should be serialized using SwA;
false otherwisepublic java.lang.String getContentTypeForMTOM(java.lang.String SOAPContentType)
SOAPContentType -
public java.lang.String getContentTypeForSwA(java.lang.String SOAPContentType)
public boolean isAutoCloseWriter()
public void setAutoCloseWriter(boolean autoCloseWriter)
public void setMimeBoundary(java.lang.String mimeBoundary)
public void setRootContentId(java.lang.String rootContentId)
public java.lang.String toString()
toString in class java.lang.Objectpublic void setOptimizedThreshold(int optimizedThreshold)
public int getOptimizedThreshold()
public XMLStreamWriterFilter getXmlStreamWriterFilter()
public void setXmlStreamWriterFilter(XMLStreamWriterFilter xmlStreamWriterFilter)
xmlStreamWriterFilter - the xmlStreamWriterFilter to setpublic StAXWriterConfiguration getStAXWriterConfiguration()
StAXWriterConfiguration.DEFAULT if none has been
set explicitlypublic void setStAXWriterConfiguration(StAXWriterConfiguration writerConfiguration)
XMLStreamWriter from StAXUtils.
writerConfiguration - the configurationpublic MultipartWriterFactory getMultipartWriterFactory()
AxiomMultipartWriterFactory instance is returnedpublic void setMultipartWriterFactory(MultipartWriterFactory multipartWriterFactory)
multipartWriterFactory - the factory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||