public class StAXUtil extends java.lang.Object implements MosConstants
ACTION, ACTIONADD, ACTIONADDUPDATE, ACTIONDELETE, ACTIONREPLACE, ACTIONUPDATE, ADAPTER_INSTALL, ADD, ADDATEND, BASELANGUAGE, BYPASS, COMPANYSETID_NAME, COMPLETE, CONFIGFILENAME, CREATIONDATETIME, DELETEFORINSERT, DEPLOYMENT_MANAGER, ENTERPRISE_SERVICE, ERRORTAG, ESCAPECHAR, EVENT, FILTERMBOKEY, INVOKE_CHANNEL, ITEMSETID_NAME, MAXIMO_NS_PREFIX, MAXIMOVERSION, MESSAGEID, MESSAGETYPE_CREATE, MESSAGETYPE_DELETE, MESSAGETYPE_INITIATE, MESSAGETYPE_INVOKE, MESSAGETYPE_MERGE, MESSAGETYPE_PATCH, MESSAGETYPE_PROCESS, MESSAGETYPE_PUBLISH, MESSAGETYPE_QUERY, MESSAGETYPE_RESPONSE, MESSAGETYPE_SYNC, MESSAGETYPE_UPDATE, MESSAGETYPE_WAKEUP, OBJECT_STRUCTURE_SERVICE, ORGID_NAME, OVERRIDEALWAYS, OVERRIDENULLONLY, PROCESS, SITEID_NAME, SKIP, SKIPMBO, SKIPMBOKEY, STANDARD_SERVICE, TRANSLANGUAGE, UPDATE, XSI_NS, XSI_NS_PREFIX
Constructor and Description |
---|
StAXUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
createEmptyResponse(java.lang.String top,
UserInfo uinfo)
Creates tail element
|
static void |
createHeaderElements(javax.xml.stream.XMLStreamWriter writer,
java.lang.String wrapperName)
Creates header element
|
static void |
createTailElements(javax.xml.stream.XMLStreamWriter writer,
boolean hasWrapper)
Creates tail element
|
static javax.xml.stream.XMLStreamWriter |
initalizeStAX(java.io.ByteArrayOutputStream bo)
Initilize StAX parset with ByteArrayOutputStream.
|
static void |
setCommonContentAttributes(javax.xml.stream.XMLStreamWriter writer,
java.lang.String transLanguage) |
static void |
setCommonContentAttributes(javax.xml.stream.XMLStreamWriter writer,
UserInfo userInfo)
Creates common content
|
static void |
setDefaultNS(javax.xml.stream.XMLStreamWriter writer)
Set default namespaces to the writer.
|
static void |
setXSINS(javax.xml.stream.XMLStreamWriter writer)
Set prefix and namespace parameters to a writer
|
static void |
writeDefaultNS(javax.xml.stream.XMLStreamWriter writer)
Writes default namespaces to the writer.
|
static void |
writeXSINS(javax.xml.stream.XMLStreamWriter writer)
Writes prefix and namespace parameters to a writer
|
public static javax.xml.stream.XMLStreamWriter initalizeStAX(java.io.ByteArrayOutputStream bo) throws javax.xml.stream.XMLStreamException
bo
- Give ByteArrayOutputStream to set to parserjavax.xml.stream.XMLStreamException
- XMLStream exceptionpublic static void setDefaultNS(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException, java.rmi.RemoteException
writer
- Instance of XMLStreamWriterjavax.xml.stream.XMLStreamException
- XMLStream exceptionjava.rmi.RemoteException
public static void writeDefaultNS(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException, java.rmi.RemoteException
writer
- Instance of XMLStreamWriterjavax.xml.stream.XMLStreamException
- XMLStream exceptionjava.rmi.RemoteException
public static void setXSINS(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
writer
- Instance of XMLStreamWriterjavax.xml.stream.XMLStreamException
- XMLStream exceptionpublic static void writeXSINS(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
writer
- Instance of XMLStreamWriterjavax.xml.stream.XMLStreamException
- XMLStream exceptionpublic static void createHeaderElements(javax.xml.stream.XMLStreamWriter writer, java.lang.String wrapperName) throws javax.xml.stream.XMLStreamException, java.rmi.RemoteException
writer
- Instance of XMLStreamWriterwrapperName
- Wrapper Namejavax.xml.stream.XMLStreamException
- XMLStream exceptionjava.rmi.RemoteException
public static void setCommonContentAttributes(javax.xml.stream.XMLStreamWriter writer, UserInfo userInfo) throws MXException, java.rmi.RemoteException, javax.xml.stream.XMLStreamException
writer
- Instance of XMLStreamWriteruser
- info
User Info objectjavax.xml.stream.XMLStreamException
- XMLStream exceptionMXException
java.rmi.RemoteException
public static void setCommonContentAttributes(javax.xml.stream.XMLStreamWriter writer, java.lang.String transLanguage) throws MXException, java.rmi.RemoteException, javax.xml.stream.XMLStreamException
MXException
java.rmi.RemoteException
javax.xml.stream.XMLStreamException
public static void createTailElements(javax.xml.stream.XMLStreamWriter writer, boolean hasWrapper) throws javax.xml.stream.XMLStreamException
writer
- Instance of XMLStreamWriterhasWrapper
- has Wrapperjavax.xml.stream.XMLStreamException
- XMLStream exceptionpublic static byte[] createEmptyResponse(java.lang.String top, UserInfo uinfo) throws MXException
writer
- Instance of XMLStreamWriterhasWrapper
- has Wrapperjavax.xml.stream.XMLStreamException
- XMLStream exceptionMXException