public class OMOutputFormat
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_PROPERTY |
private boolean |
autoCloseWriter |
private java.lang.String |
charSetEncoding |
private java.lang.String |
contentType |
private boolean |
contentTypeSet
Flag set if
contentType has been set explicitly through
setContentType(String). |
static java.lang.String |
DEFAULT_CHAR_SET_ENCODING
Field DEFAULT_CHAR_SET_ENCODING.
|
private boolean |
doingSWA |
private boolean |
doOptimize |
private boolean |
ignoreXMLDeclaration |
private boolean |
isSoap11 |
private static org.apache.commons.logging.Log |
log |
private java.util.HashMap |
map |
private java.lang.String |
mimeBoundary |
private MultipartWriterFactory |
multipartWriterFactory |
private int |
nextid |
private int |
optimizedThreshold |
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.
|
private java.lang.String |
rootContentId |
static java.lang.String |
USE_CTE_BASE64_FOR_NON_TEXTUAL_ATTACHMENTS |
private StAXWriterConfiguration |
writerConfiguration |
private XMLStreamWriterFilter |
xmlStreamWriterFilter |
private java.lang.String |
xmlVersion |
| Constructor and Description |
|---|
OMOutputFormat() |
OMOutputFormat(OMOutputFormat format)
Constructs a new instance by copying the configuration from an existing instance.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
private static final org.apache.commons.logging.Log log
private java.lang.String mimeBoundary
private java.lang.String rootContentId
private int nextid
private boolean doOptimize
private boolean doingSWA
private boolean isSoap11
private int optimizedThreshold
public static final java.lang.String DEFAULT_CHAR_SET_ENCODING
private java.lang.String charSetEncoding
private java.lang.String xmlVersion
private java.lang.String contentType
private boolean contentTypeSet
contentType has been set explicitly through
setContentType(String). If this attribute is false and
contentType is non null, then it was calculated by getContentType().private boolean ignoreXMLDeclaration
private boolean autoCloseWriter
public static final java.lang.String ACTION_PROPERTY
private XMLStreamWriterFilter xmlStreamWriterFilter
private StAXWriterConfiguration writerConfiguration
private MultipartWriterFactory multipartWriterFactory
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
private java.util.HashMap map
public OMOutputFormat()
public OMOutputFormat(OMOutputFormat format)
format - the existing instancepublic java.lang.Object getProperty(java.lang.String key)
key - Stringpublic java.lang.Object setProperty(java.lang.String key,
java.lang.Object value)
key - Stringvalue - Objectpublic 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