|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.soap.util.IESOAPUtils
IMPORTANT: this should be the only class within the com.infoengine.soap.util package that has Info*Engine dependancies.
Nested Class Summary | |
(package private) class |
IESOAPUtils.MaxInputStream
InputStream class that will return eof when a specified number of bytes have been read This is necessary when connection pooling is used to avoid hangs when SAAJ classes attempt to read beyond Content-Length bytes. |
Field Summary | |
private static String |
RESOURCE
|
private static IESOAPUtils |
SINGLETON
|
private static String |
xmlHeader
|
Constructor Summary | |
IESOAPUtils()
|
Method Summary | |
private static Object |
_generateIEReturn(IeCollection vdb,
int sType,
String subsStr)
Handles the INFOENGINE_* response types. |
static javax.xml.soap.SOAPMessage |
_generateResponse(String methodName,
IeCollection vdb,
boolean renderMeta,
OutputStream attachmentOS,
OutputStream stream)
|
private static Object |
_generateReturn(IeCollection vdb,
String retType,
String subsStr,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message)
Generate the SOAP return value from a vdb. |
private static void |
addLightweightValue(Attribute att,
Object o)
Adds a value to an attribute. |
static void |
addMeta(IeObject ieobj,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message)
If available adds meta information to a parent SOAP element. |
static void |
attributeToElement(Att att,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message)
Turns an I*E attribute into a SOAPElement. |
static void |
attributeToElement(Att att,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message,
String eName,
boolean type,
boolean qualify)
Turns an I*E attribute into a SOAPElement. |
private static void |
badSubstitution(String subsStr)
Convenience method that just throws an IEFatalException with the input. |
private static String |
checkPolymorphic(javax.xml.soap.SOAPElement[] elms,
String retType)
Searches a list of SOAP elements to see if they are of mixed type. |
static void |
collectionToElement(IeCollection col,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message)
Turns an I*E collection into a SOAPElement. |
static void |
collectionToElement(IeCollection col,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message,
String eName,
boolean type,
boolean qualify)
Turns an I*E collection into a SOAPElement. |
static Object |
deserialize(javax.xml.soap.SOAPMessage message)
Deserialize a SOAPMessage into an appropriate java Object. |
static Att |
elementToAttribute(javax.xml.soap.SOAPElement elm,
javax.xml.soap.SOAPMessage message)
Turns a SOAPElement representing an I*E attribute back into a attribute. |
static IeCollection |
elementToCollection(javax.xml.soap.SOAPElement elm,
javax.xml.soap.SOAPMessage message)
Turns a SOAPElement representing an I*E collection back into a collection. |
static void |
elementToElement(Element elem,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message)
Turns an I*E element into a SOAPElement. |
static void |
elementToElement(Element elem,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message,
String eName,
boolean type,
boolean qualify)
Turns an I*E element into a SOAPElement. |
static Element |
elementToElement(javax.xml.soap.SOAPElement elm,
javax.xml.soap.SOAPMessage message)
Turns a SOAPElement representing an I*E element back into a element. |
static Group |
elementToGroup(javax.xml.soap.SOAPElement elm,
javax.xml.soap.SOAPMessage message)
Turns a SOAPElement representing an I*E group back into a group. |
static Object |
elementToObject(javax.xml.soap.SOAPElement element,
javax.xml.soap.SOAPMessage message)
Turns a SOAPElement back into a java object. |
(package private) static Object |
elementToObject(javax.xml.soap.SOAPElement element,
javax.xml.soap.SOAPMessage message,
SOAPUtils.ArrayHandler arrayHandler)
Same as public elementToObject method except passes a long an ArrayHandler. |
static IeRequest |
elementToRequest(javax.xml.soap.SOAPElement elm,
javax.xml.soap.SOAPMessage message)
Turns a SOAPElement representing an I*E request back into a request. |
static int |
fault(int httpR,
Throwable t,
OutputStream out)
Generates a SOAP fault and serializes it to an output stream. |
private static javax.xml.soap.SOAPMessage |
fault(Throwable t,
int httpR)
Generates a SOAP fault from an exception and an HTTP response code. |
static int |
fault(Throwable t,
OutputStream out)
Generates a SOAP fault and serializes the resulting SOAP message to an output stream. |
private static String |
faultCode(int httpResp)
Turns an HTTP response code into a SOAP fault code string. |
static javax.xml.soap.SOAPMessage |
generateRequest(Hashtable headers,
InputStream is)
Generates a SOAPMessage from a set of MIME headers and an InputStream. |
static javax.xml.soap.SOAPMessage |
generateRequest(javax.xml.soap.MimeHeaders headers,
InputStream in)
Generates a SOAPMessage from a set of MIME headers and an InputStream. |
static javax.xml.soap.SOAPMessage |
generateResponse(String methodName,
IeCollection vdb,
boolean renderMeta,
OutputStream attachmentOS)
Generates a SOAP response based on some I*E stuff. |
static Hashtable |
generateResponse(String methodName,
IeCollection vdb,
boolean renderMeta,
OutputStream attachment,
OutputStream out)
Generates a SOAP response based on input and serializes it to an output stream. |
static Object |
generateReturn(IeCollection vdb,
String retType,
String subsStr,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message)
Generate the SOAP return value from a vdb. |
static javax.xml.soap.SOAPMessage |
generateSAXRequest(Hashtable headers,
InputStream is)
Generates a SOAPMessage from a set of MIME headers and an InputStream using SAX. |
static void |
getMeta(IeObject ieobj,
javax.xml.soap.SOAPElement elm,
javax.xml.soap.SOAPMessage message)
Repopulates meta data on an I*E object from a SOAP element. |
private static Object |
getReturn(int type,
String retType,
Object o,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message,
boolean arry)
Performs actual recasting of object types from I*E data. |
static void |
groupToElement(Group g,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message)
Turns an I*E group into a SOAPElement. |
static void |
groupToElement(Group g,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message,
String eName,
boolean type,
boolean qualify)
Turns an I*E group into a SOAPElement. |
static int |
httpResponse(Throwable t)
Gets an HTTP response code equivalent to a specific exception. |
static Attribute |
lightweight(Att a)
Turns a heavy I*E attribute into a lightweight one. |
static Element |
lightweight(Element e)
Turns a heavy I*E element into a lightweight one. |
static Group |
lightweight(Group g)
Turns a heavy I*E group into a lightweight one. |
static Collection |
lightweight(IeCollection col)
Turns a heavy I*E collection into a lightweight one. |
private static void |
lightweightMeta(Data d,
IeObject o)
Copies meta from a heavy I*E data structure into its lightweight counterpart. |
static void |
lookForVME(Throwable t)
|
static void |
objectToElement(String eName,
Object object,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message)
Turns a java object into a SOAP element. |
private static Object |
populateBean(String beanClass,
Element elem,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message)
Populates a java bean object from an I*E element. |
static void |
requestToElement(IeRequest request,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message)
Turns an I*E request into a SOAPElement. |
private static javax.xml.soap.SOAPElement |
serializeIEDataArray(String eName,
int type,
Object[] objects,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message,
String arrayMemberName)
Used internally to serialize arrays of I*E data structure objects. |
static Throwable |
unwrap(Throwable t)
Unwraps nested throwables from within a throwable to get to the root of the problem. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String xmlHeader
private static IESOAPUtils SINGLETON
Constructor Detail |
public IESOAPUtils()
Method Detail |
public static Throwable unwrap(Throwable t)
t
- The throwable to unwrap.
private static String faultCode(int httpResp)
httpResp
- The HTTP response code.
public static int httpResponse(Throwable t)
t
- The throwable object to examine.
private static javax.xml.soap.SOAPMessage fault(Throwable t, int httpR) throws javax.xml.soap.SOAPException
t
- The throwable.httpR
- The HTTP response code.
javax.xml.soap.SOAPException
public static int fault(Throwable t, OutputStream out)
t
- The exception.out
- The OutputStream to stream generated SOAPFault to.
public static int fault(int httpR, Throwable t, OutputStream out)
httpR
- The HTTP response code.t
- The exception.out
- The OutputStream to stream generated SOAPFault to.
public static javax.xml.soap.SOAPMessage generateRequest(Hashtable headers, InputStream is) throws IOException, javax.xml.soap.SOAPException
headers
- The MIME headers, key=header name, value=header value.is
- The input stream contain the SOAP.
IOException
javax.xml.soap.SOAPException
public static javax.xml.soap.SOAPMessage generateSAXRequest(Hashtable headers, InputStream is) throws IOException, javax.xml.soap.SOAPException
headers
- The MIME headers, key=header name, value=header value.is
- The input stream contain the SOAP.
IOException
javax.xml.soap.SOAPException
public static javax.xml.soap.SOAPMessage generateRequest(javax.xml.soap.MimeHeaders headers, InputStream in) throws IOException, javax.xml.soap.SOAPException
headers
- The MIME headers.
IOException
javax.xml.soap.SOAPException
public static Hashtable generateResponse(String methodName, IeCollection vdb, boolean renderMeta, OutputStream attachment, OutputStream out)
methodName
- The method name that was invoked.vdb
- The I*E collection result.renderMeta
- Should I*E meta info be generated when the result is tunnelled I*E XML.attachment
- An optional attachment (causes empty response).out
- The output stream to serialize the response to.
private static String checkPolymorphic(javax.xml.soap.SOAPElement[] elms, String retType)
elms
- The list of elements to search.
public static javax.xml.soap.SOAPMessage generateResponse(String methodName, IeCollection vdb, boolean renderMeta, OutputStream attachmentOS) throws ClassNotFoundException, InstantiationException, IllegalAccessException, NotSerializableException, IllegalArgumentException, IntrospectionException, InvocationTargetException, javax.xml.soap.SOAPException, IOException, IEException
methodName
- The method name that was invoked.vdb
- The I*E collection result.renderMeta
- Should I*E meta info be generated when the result is tunnelled I*E XML.attachmentOS
- An optional SOAP attachment.
ClassNotFoundException
InstantiationException
IllegalAccessException
NotSerializableException
IllegalArgumentException
IntrospectionException
InvocationTargetException
javax.xml.soap.SOAPException
IOException
IEException
public static javax.xml.soap.SOAPMessage _generateResponse(String methodName, IeCollection vdb, boolean renderMeta, OutputStream attachmentOS, OutputStream stream) throws ClassNotFoundException, InstantiationException, IllegalAccessException, NotSerializableException, IllegalArgumentException, IntrospectionException, InvocationTargetException, javax.xml.soap.SOAPException, IOException, IEException
ClassNotFoundException
InstantiationException
IllegalAccessException
NotSerializableException
IllegalArgumentException
IntrospectionException
InvocationTargetException
javax.xml.soap.SOAPException
IOException
IEException
private static void badSubstitution(String subsStr) throws IEFatalException
subsStr
- The substitution string.
IEFatalException
- (always)public static Object generateReturn(IeCollection vdb, String retType, String subsStr, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message) throws ClassNotFoundException, InstantiationException, IllegalAccessException, NotSerializableException, IllegalArgumentException, IntrospectionException, InvocationTargetException, javax.xml.soap.SOAPException, IEException
vdb
- The VDB following task executionretType
- The string representation of the return type (primitive or bean)
ClassNotFoundException
InstantiationException
IllegalAccessException
NotSerializableException
IllegalArgumentException
IntrospectionException
InvocationTargetException
javax.xml.soap.SOAPException
IEException
private static Object _generateIEReturn(IeCollection vdb, int sType, String subsStr) throws IEFatalException
vdb
- The I*E VDB.sType
- The SOAP type (must be INFOENGINE_* type).
IEFatalException
private static Object _generateReturn(IeCollection vdb, String retType, String subsStr, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message) throws ClassNotFoundException, InstantiationException, IllegalAccessException, NotSerializableException, IllegalArgumentException, IntrospectionException, InvocationTargetException, javax.xml.soap.SOAPException, IEException
vdb
- The VDB following task executionretType
- The string representation of the return type (primitive or bean)message
- The associated SOAP message.
ClassNotFoundException
InstantiationException
IllegalAccessException
NotSerializableException
IllegalArgumentException
IntrospectionException
InvocationTargetException
javax.xml.soap.SOAPException
IEException
private static Object getReturn(int type, String retType, Object o, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message, boolean arry) throws ClassNotFoundException, InstantiationException, IllegalAccessException, NotSerializableException, IllegalArgumentException, IntrospectionException, InvocationTargetException, IEException, javax.xml.soap.SOAPException
type
- The object type.retType
- The return type string.o
- The resolved object.message
- The associated SOAP message.arry
- Is this call part of array construction?
ClassNotFoundException
InstantiationException
IllegalAccessException
NotSerializableException
IllegalArgumentException
IntrospectionException
InvocationTargetException
IEException
javax.xml.soap.SOAPException
private static Object populateBean(String beanClass, Element elem, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message) throws ClassNotFoundException, InstantiationException, IllegalAccessException, NotSerializableException, IntrospectionException, InvocationTargetException, IEException, javax.xml.soap.SOAPException
beanClass
- The class name of the bean to populate.elem
- The I*E element object to populate from.message
- The associated SOAP message.
ClassNotFoundException
InstantiationException
IllegalAccessException
NotSerializableException
IntrospectionException
InvocationTargetException
IEException
javax.xml.soap.SOAPException
public static void requestToElement(IeRequest request, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException, ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NotSerializableException, IntrospectionException
request
- The request.parent
- The parent element to add the collection to.message
- The associated SOAP message.
javax.xml.soap.SOAPException
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NotSerializableException
IntrospectionException
public static void collectionToElement(IeCollection col, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException, ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NotSerializableException, IntrospectionException
col
- The collection.parent
- The parent element to add the collection to.message
- The associated SOAP message.
javax.xml.soap.SOAPException
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NotSerializableException
IntrospectionException
public static void collectionToElement(IeCollection col, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message, String eName, boolean type, boolean qualify) throws javax.xml.soap.SOAPException, ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NotSerializableException, IntrospectionException
col
- The collection.parent
- The parent element to add the collection to.message
- The associated SOAP message.eName
- The element name to create.type
- Should the element be typed?qualify
- Should the element be qualified?
javax.xml.soap.SOAPException
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NotSerializableException
IntrospectionException
public static void groupToElement(Group g, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException, ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NotSerializableException, IntrospectionException
g
- The Group.parent
- The parent element to add the group to.message
- The associated SOAP message.
javax.xml.soap.SOAPException
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NotSerializableException
IntrospectionException
public static void groupToElement(Group g, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message, String eName, boolean type, boolean qualify) throws javax.xml.soap.SOAPException, ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NotSerializableException, IntrospectionException
g
- The Group.parent
- The parent element to add the group to.message
- The associated SOAP message.eName
- The element name to create.type
- Should the element be typed?qualify
- Should the element be qualified?
javax.xml.soap.SOAPException
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NotSerializableException
IntrospectionException
public static void elementToElement(Element elem, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException, ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NotSerializableException, IntrospectionException
elem
- The element.parent
- The parent element to add the element to.message
- The associated SOAP message.
javax.xml.soap.SOAPException
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NotSerializableException
IntrospectionException
public static void elementToElement(Element elem, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message, String eName, boolean type, boolean qualify) throws javax.xml.soap.SOAPException, ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NotSerializableException, IntrospectionException
elem
- The element.parent
- The parent element to add the element to.message
- The associated SOAP message.eName
- The element name to create.type
- Should the element be typed?qualify
- Should the element be qualified?
javax.xml.soap.SOAPException
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NotSerializableException
IntrospectionException
public static void attributeToElement(Att att, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException, ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NotSerializableException, IntrospectionException
att
- The attribute.parent
- The parent element to add the attribute to.message
- The associated SOAP message.
javax.xml.soap.SOAPException
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NotSerializableException
IntrospectionException
public static void attributeToElement(Att att, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message, String eName, boolean type, boolean qualify) throws javax.xml.soap.SOAPException, ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NotSerializableException, IntrospectionException
att
- The attribute.parent
- The parent element to add the attribute to.message
- The associated SOAP message.eName
- The element name to create.type
- Should the element be typed?qualify
- Should the element be qualified?
javax.xml.soap.SOAPException
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NotSerializableException
IntrospectionException
public static void addMeta(IeObject ieobj, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException, ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NotSerializableException, IntrospectionException
ieobj
- The I*E object.parent
- The parent SOAP element.message
- The associated SOAP message.
javax.xml.soap.SOAPException
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NotSerializableException
IntrospectionException
public static IeRequest elementToRequest(javax.xml.soap.SOAPElement elm, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException, ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NotSerializableException, IntrospectionException
elm
- The SOAP element.message
- The associated SOAP message.
javax.xml.soap.SOAPException
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NotSerializableException
IntrospectionException
public static IeCollection elementToCollection(javax.xml.soap.SOAPElement elm, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException, ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NotSerializableException, IntrospectionException
elm
- The SOAP element.message
- The associated SOAP message.
javax.xml.soap.SOAPException
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NotSerializableException
IntrospectionException
public static Group elementToGroup(javax.xml.soap.SOAPElement elm, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException, ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NotSerializableException, IntrospectionException
elm
- The SOAP element.message
- The associated SOAP message.
javax.xml.soap.SOAPException
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NotSerializableException
IntrospectionException
public static Element elementToElement(javax.xml.soap.SOAPElement elm, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException, ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NotSerializableException, IntrospectionException
elm
- The SOAP element.message
- The associated SOAP message.
javax.xml.soap.SOAPException
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NotSerializableException
IntrospectionException
public static Att elementToAttribute(javax.xml.soap.SOAPElement elm, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException, ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NotSerializableException, IntrospectionException
elm
- The SOAP element.message
- The associated SOAP message.
javax.xml.soap.SOAPException
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NotSerializableException
IntrospectionException
public static void getMeta(IeObject ieobj, javax.xml.soap.SOAPElement elm, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException, ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NotSerializableException, IntrospectionException
ieobj
- The I*E data object to put meta back into.elm
- The SOAP element.message
- The associated SOAP message.
javax.xml.soap.SOAPException
ClassNotFoundException
IllegalAccessException
InstantiationException
InvocationTargetException
NotSerializableException
IntrospectionException
public static Collection lightweight(IeCollection col)
col
- The heavy collection.
public static Group lightweight(Group g)
g
- The heavy group.
public static Element lightweight(Element e)
e
- The heavy element.
public static Attribute lightweight(Att a)
a
- The heavy attribute.
private static void addLightweightValue(Attribute att, Object o)
att
- The lightweight att to add the value to.o
- The object.private static void lightweightMeta(Data d, IeObject o)
d
- The lightweight structure.o
- The heavy structure.public static Object deserialize(javax.xml.soap.SOAPMessage message) throws ClassNotFoundException, InstantiationException, IllegalAccessException, NotSerializableException, IllegalArgumentException, IntrospectionException, InvocationTargetException, javax.xml.soap.SOAPException
message
- The SOAPMessage to deserialize.
javax.xml.soap.SOAPException
- if the message contains a Fault.
ClassNotFoundException
InstantiationException
IllegalAccessException
NotSerializableException
IllegalArgumentException
IntrospectionException
InvocationTargetException
public static Object elementToObject(javax.xml.soap.SOAPElement element, javax.xml.soap.SOAPMessage message) throws ClassNotFoundException, InstantiationException, IllegalAccessException, NotSerializableException, IllegalArgumentException, IntrospectionException, InvocationTargetException, javax.xml.soap.SOAPException
element
- - the element to return to a java objectmessage
- The associated SOAP message.
ClassNotFoundException
InstantiationException
IllegalAccessException
NotSerializableException
IllegalArgumentException
IntrospectionException
InvocationTargetException
javax.xml.soap.SOAPException
static Object elementToObject(javax.xml.soap.SOAPElement element, javax.xml.soap.SOAPMessage message, SOAPUtils.ArrayHandler arrayHandler) throws ClassNotFoundException, InstantiationException, IllegalAccessException, NotSerializableException, IllegalArgumentException, IntrospectionException, InvocationTargetException, javax.xml.soap.SOAPException
ClassNotFoundException
InstantiationException
IllegalAccessException
NotSerializableException
IllegalArgumentException
IntrospectionException
InvocationTargetException
javax.xml.soap.SOAPException
public static void objectToElement(String eName, Object object, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException, ClassNotFoundException, InstantiationException, IllegalAccessException, NotSerializableException, IntrospectionException, InvocationTargetException
eName
- The element name to create.object
- The object to serialize.parent
- The parent element to add the new element to.message
- The associated SOAP message.
javax.xml.soap.SOAPException
ClassNotFoundException
InstantiationException
IllegalAccessException
NotSerializableException
IntrospectionException
InvocationTargetException
private static javax.xml.soap.SOAPElement serializeIEDataArray(String eName, int type, Object[] objects, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message, String arrayMemberName) throws javax.xml.soap.SOAPException, ClassNotFoundException, InstantiationException, IllegalAccessException, NotSerializableException, IntrospectionException, InvocationTargetException
eName
- The array element name to create.type
- The type of object (must be one of SOAPUtils.TYPE_IE*).objects
- The array of objects.parent
- The parent element.message
- The SOAP message.arrayMemberName
- The name to use when creating array members.
javax.xml.soap.SOAPException
ClassNotFoundException
InstantiationException
IllegalAccessException
NotSerializableException
IntrospectionException
InvocationTargetException
public static void lookForVME(Throwable t)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |