|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.util.ObjectStateUtils
public class ObjectStateUtils
Utility to write, read and activate externalized Objects
Field Summary | |
---|---|
static java.lang.String |
NULL_OBJECT
|
static java.lang.String |
UNSUPPORTED_REVID
|
static java.lang.String |
UNSUPPORTED_SUID
|
Fields inherited from interface org.apache.axis2.context.externalize.ExternalizeConstants |
---|
ACTIVE_OBJECT, EMPTY_MARKER, EMPTY_OBJECT, LAST_ENTRY, OBJ_RESTORE_PROBLEM, OBJ_SAVE_PROBLEM |
Constructor Summary | |
---|---|
ObjectStateUtils()
|
Method Summary | |
---|---|
static java.lang.Object |
findHandler(java.util.ArrayList existingHandlers,
MetaDataEntry metaDataEntry)
Find the Handler object that matches the criteria |
static AxisMessage |
findMessage(AxisOperation op,
java.lang.String msgName,
java.lang.String msgElementName)
Find the AxisMessage object that matches the criteria |
static AxisOperation |
findOperation(AxisConfiguration axisConfig,
java.lang.String opClassName,
QName opQName)
Find the AxisOperation object that matches the criteria |
static AxisOperation |
findOperation(AxisService service,
java.lang.String opClassName,
QName opQName)
Find the AxisOperation object that matches the criteria |
static AxisService |
findService(AxisConfiguration axisConfig,
java.lang.String serviceClassName,
java.lang.String serviceName)
Find the AxisService object that matches the criteria |
static AxisServiceGroup |
findServiceGroup(AxisConfiguration axisConfig,
java.lang.String serviceGrpClassName,
java.lang.String serviceGrpName)
Find the AxisServiceGroup object that matches the criteria Note the saved service group meta information may not match up with any of the serviceGroups that are in the current AxisConfiguration object. |
static TransportListener |
findTransportListener(AxisConfiguration axisConfig,
java.lang.String listenerClassName)
Find the TransportListener object that matches the criteria Note the saved meta information may not match up with any of the objects that are in the current AxisConfiguration object. |
static boolean |
isEquivalent(java.util.ArrayList a1,
java.util.ArrayList a2,
boolean strict)
Compares the two collections to see if they are equivalent. |
static boolean |
isEquivalent(java.util.LinkedList l1,
java.util.LinkedList l2)
Compares the two collections to see if they are equivalent. |
static boolean |
isEquivalent(java.util.Map m1,
java.util.Map m2,
boolean strict)
Compares the two collections to see if they are equivalent. |
static java.util.ArrayList |
readArrayList(java.io.ObjectInput i,
java.lang.String desc)
Reads an array of objects from the specified input stream. |
static java.util.HashMap |
readHashMap(java.io.ObjectInput i,
java.lang.String desc)
Read a hashmap of objects from the specified input stream. |
static java.util.LinkedList |
readLinkedList(java.io.ObjectInput i,
java.lang.String desc)
Reads a linked list of objects from the specified input stream. |
static java.lang.Object |
readObject(java.io.ObjectInput i,
java.lang.String desc)
Read an object from the specified input stream. |
static java.lang.String |
readString(java.io.ObjectInput i,
java.lang.String desc)
Read a string from the specified input stream. |
static void |
writeArrayList(java.io.ObjectOutput o,
java.util.ArrayList al,
java.lang.String desc)
Write an array of objects to the specified output stream. |
static void |
writeHashMap(java.io.ObjectOutput o,
java.util.HashMap map,
java.lang.String desc)
Write a hashmap of objects to the specified output stream. |
static void |
writeLinkedList(java.io.ObjectOutput o,
java.util.LinkedList objlist,
java.lang.String desc)
Write a linked list of objects to the specified output stream. |
static void |
writeObject(java.io.ObjectOutput o,
java.lang.Object obj,
java.lang.String desc)
Write an object to the specified output stream. |
static void |
writeString(java.io.ObjectOutput o,
java.lang.String str,
java.lang.String desc)
Write a string to the specified output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String NULL_OBJECT
public static final java.lang.String UNSUPPORTED_SUID
public static final java.lang.String UNSUPPORTED_REVID
Constructor Detail |
---|
public ObjectStateUtils()
Method Detail |
---|
public static void writeString(java.io.ObjectOutput o, java.lang.String str, java.lang.String desc) throws java.io.IOException
o
- The output streamstr
- The string to writedesc
- A text description to use for logging
java.io.IOException
- Exceptionpublic static java.lang.String readString(java.io.ObjectInput i, java.lang.String desc) throws java.io.IOException, java.lang.ClassNotFoundException
i
- The input streamdesc
- A text description to use for logging
java.io.IOException
java.lang.ClassNotFoundException
public static void writeObject(java.io.ObjectOutput o, java.lang.Object obj, java.lang.String desc) throws java.io.IOException
o
- The output streamobj
- The object to writedesc
- A text description to use for logging
java.io.IOException
- Exceptionpublic static java.lang.Object readObject(java.io.ObjectInput i, java.lang.String desc) throws java.io.IOException, java.lang.ClassNotFoundException
i
- The input streamdesc
- A text description to use for logging
java.io.IOException
java.lang.ClassNotFoundException
public static void writeArrayList(java.io.ObjectOutput o, java.util.ArrayList al, java.lang.String desc) throws java.io.IOException
o
- The output streamal
- The ArrayList to writedesc
- A text description to use for logging
java.io.IOException
- Exceptionpublic static java.util.ArrayList readArrayList(java.io.ObjectInput i, java.lang.String desc) throws java.io.IOException
i
- The input streamdesc
- A text description to use for logging
java.io.IOException
java.lang.ClassNotFoundException
public static void writeHashMap(java.io.ObjectOutput o, java.util.HashMap map, java.lang.String desc) throws java.io.IOException
o
- The output streammap
- The HashMap to writedesc
- A text description to use for logging
java.io.IOException
- Exceptionpublic static java.util.HashMap readHashMap(java.io.ObjectInput i, java.lang.String desc) throws java.io.IOException
in
- The input streamdesc
- A text description to use for logging
java.io.IOException
java.lang.ClassNotFoundException
public static void writeLinkedList(java.io.ObjectOutput o, java.util.LinkedList objlist, java.lang.String desc) throws java.io.IOException
o
- The output streamlist
- The LinkedList to writedesc
- A text description to use for logging
java.io.IOException
- Exceptionpublic static java.util.LinkedList readLinkedList(java.io.ObjectInput i, java.lang.String desc) throws java.io.IOException
in
- The input streamdesc
- A text description to use for logging
java.io.IOException
java.lang.ClassNotFoundException
public static AxisOperation findOperation(AxisConfiguration axisConfig, java.lang.String opClassName, QName opQName)
axisConfig
- The AxisConfiguration objectopClassName
- the class name string for the target object (could be a derived class)opQName
- the name associated with the operation
public static AxisOperation findOperation(AxisService service, java.lang.String opClassName, QName opQName)
service
- The AxisService objectopClassName
- The class name string for the target object (could be a derived class)opQName
- the name associated with the operation
public static AxisService findService(AxisConfiguration axisConfig, java.lang.String serviceClassName, java.lang.String serviceName)
axisConfig
- The AxisConfiguration objectserviceClassName
- the class name string for the target object (could be a derived
class)serviceName
- the name associated with the service
public static AxisServiceGroup findServiceGroup(AxisConfiguration axisConfig, java.lang.String serviceGrpClassName, java.lang.String serviceGrpName)
axisConfig
- The AxisConfiguration objectserviceGrpClassName
- the class name string for the target object (could be a derived
class)serviceGrpName
- the name associated with the service group
public static AxisMessage findMessage(AxisOperation op, java.lang.String msgName, java.lang.String msgElementName)
op
- The AxisOperation objectmsgName
- The name associated with the messagemsgElementName
- The name associated with the message element
public static java.lang.Object findHandler(java.util.ArrayList existingHandlers, MetaDataEntry metaDataEntry)
existingHandlers
- The list of existing handlers and phaseshandlerClassName
- the class name string for the target object (could be a derived
class)
public static TransportListener findTransportListener(AxisConfiguration axisConfig, java.lang.String listenerClassName)
axisConfig
- The AxisConfiguration objectlistenerClassName
- the class name string for the target object (could be a derived
class)
public static boolean isEquivalent(java.util.ArrayList a1, java.util.ArrayList a2, boolean strict)
a1
- The first collectiona2
- The second collectionstrict
- Indicates whether strict checking is required. Strict checking means that the
two collections must have the same elements in the same order.
Non-strict checking means that the two collections must have the same elements,
but the order is not significant.
public static boolean isEquivalent(java.util.Map m1, java.util.Map m2, boolean strict)
m1
- The first collectionm2
- The second collectionstrict
- Indicates whether strict checking is required. Strict checking means that the
two collections must have the same mappings. Non-strict checking means that the two
collections must have the same keys. In both cases, the order is not significant.
public static boolean isEquivalent(java.util.LinkedList l1, java.util.LinkedList l2)
l1
- The first collectionl2
- The second collection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |