| java.lang.Object org.apache.axis2.util.ObjectStateUtils
ObjectStateUtils | public class ObjectStateUtils (Code) | | Provides functions for saving and restoring an object's state.
|
Method Summary | |
public static Object | findHandler(ArrayList existingHandlers, MetaDataEntry metaDataEntry) | public static AxisMessage | findMessage(AxisOperation op, String msgName, String msgElementName) | public static AxisOperation | findOperation(AxisConfiguration axisConfig, String opClassName, QName opQName) | public static AxisOperation | findOperation(AxisService service, String opClassName, QName opQName) | public static AxisService | findService(AxisConfiguration axisConfig, String serviceClassName, String serviceName) | public static AxisServiceGroup | findServiceGroup(AxisConfiguration axisConfig, String serviceGrpClassName, 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. | public static TransportListener | findTransportListener(AxisConfiguration axisConfig, 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. | public static boolean | isEquivalent(ArrayList a1, ArrayList a2, boolean strict) Compares the two collections to see if they are equivalent.
Parameters: a1 - The first collection Parameters: a2 - The second collection Parameters: strict - Indicates whether strict checking is required. | public static boolean | isEquivalent(Map m1, Map m2, boolean strict) Compares the two collections to see if they are equivalent.
Parameters: m1 - The first collection Parameters: m2 - The second collection Parameters: strict - Indicates whether strict checking is required. | public static boolean | isEquivalent(LinkedList l1, LinkedList l2) Compares the two collections to see if they are equivalent. | public static ArrayList | readArrayList(ObjectInput in, String desc) Reads an array of objects from the specified input stream. | public static HashMap | readHashMap(ObjectInput in, String desc) Read a hashmap of objects from the specified input stream. | public static LinkedList | readLinkedList(ObjectInput in, String desc) Reads a linked list of objects from the specified input stream. | public static Object | readObject(ObjectInput in, String desc) Read an object from the specified input stream. | public static String | readString(ObjectInput in, String desc) Read a string from the specified input stream. | public static void | traceNotSerializable(Object obj, NotSerializableException nse, String objDesc, String methodName, String desc) Trace the NotSerializable exception for the specified object if this is
the first time that the specified object has caused the exception. | public static void | writeArrayList(ObjectOutput out, ArrayList al, String desc) Write an array of objects to the specified output stream. | public static void | writeHashMap(ObjectOutput out, HashMap map, String desc) Write a hashmap of objects to the specified output stream. | public static void | writeLinkedList(ObjectOutput out, LinkedList objlist, String desc) Write a linked list of objects to the specified output stream. | public static void | writeObject(ObjectOutput out, Object obj, String desc) Write an object to the specified output stream. | public static void | writeString(ObjectOutput out, String str, String desc) Write a string to the specified output stream. |
ACTIVE_OBJECT | public static boolean ACTIVE_OBJECT(Code) | | |
EMPTY_OBJECT | public static boolean EMPTY_OBJECT(Code) | | |
OBJ_RESTORE_PROBLEM | final public static String OBJ_RESTORE_PROBLEM(Code) | | |
OBJ_SAVE_PROBLEM | final public static String OBJ_SAVE_PROBLEM(Code) | | |
UNSUPPORTED_REVID | final public static String UNSUPPORTED_REVID(Code) | | |
UNSUPPORTED_SUID | final public static String UNSUPPORTED_SUID(Code) | | |
findHandler | public static Object findHandler(ArrayList existingHandlers, MetaDataEntry metaDataEntry)(Code) | | Find the Handler object that matches the criteria
Parameters: existingHandlers - The list of existing handlers and phases Parameters: handlerClassName - the class name string for the target object (could be aderived class) the Handler object that matches the criteria |
findMessage | public static AxisMessage findMessage(AxisOperation op, String msgName, String msgElementName)(Code) | | Find the AxisMessage object that matches the criteria
Parameters: op - The AxisOperation object Parameters: msgName - The name associated with the message Parameters: msgElementName - The name associated with the message element the AxisMessage object that matches the given criteria |
findOperation | public static AxisOperation findOperation(AxisConfiguration axisConfig, String opClassName, QName opQName)(Code) | | Find the AxisOperation object that matches the criteria
Parameters: axisConfig - The AxisConfiguration object Parameters: opClassName - the class name string for the target object (could be aderived class) Parameters: opQName - the name associated with the operation the AxisOperation object that matches the given criteria |
findOperation | public static AxisOperation findOperation(AxisService service, String opClassName, QName opQName)(Code) | | Find the AxisOperation object that matches the criteria
Parameters: service - The AxisService object Parameters: opClassName - The class name string for the target object (could be aderived class) Parameters: opQName - the name associated with the operation the AxisOperation object that matches the given criteria |
findService | public static AxisService findService(AxisConfiguration axisConfig, String serviceClassName, String serviceName)(Code) | | Find the AxisService object that matches the criteria
Parameters: axisConfig - The AxisConfiguration object Parameters: serviceClassName - the class name string for the target object (could be aderived class) Parameters: serviceName - the name associated with the service the AxisService object that matches the criteria |
findServiceGroup | public static AxisServiceGroup findServiceGroup(AxisConfiguration axisConfig, String serviceGrpClassName, String serviceGrpName)(Code) | | 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.
Parameters: axisConfig - The AxisConfiguration object Parameters: serviceGrpClassName - the class name string for the target object (could be aderived class) Parameters: serviceGrpName - the name associated with the service group the AxisServiceGroup object that matches the criteria |
findTransportListener | public static TransportListener findTransportListener(AxisConfiguration axisConfig, String listenerClassName)(Code) | | 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.
Parameters: axisConfig - The AxisConfiguration object Parameters: listenerClassName - the class name string for the target object (could be aderived class) the TransportListener object that matches the criteria |
isEquivalent | public static boolean isEquivalent(ArrayList a1, ArrayList a2, boolean strict)(Code) | | Compares the two collections to see if they are equivalent.
Parameters: a1 - The first collection Parameters: a2 - The second collection Parameters: strict - Indicates whether strict checking is required. Strict checkingmeans that the two collections must have the same elements inthe same order. Non-strict checking means that the twocollections must have the same elements, but the order is notsignificant. TRUE if the two collections are equivalent FALSE, otherwise |
isEquivalent | public static boolean isEquivalent(Map m1, Map m2, boolean strict)(Code) | | Compares the two collections to see if they are equivalent.
Parameters: m1 - The first collection Parameters: m2 - The second collection Parameters: strict - Indicates whether strict checking is required. Strict checkingmeans that the two collections must have the same mappings.Non-strict checking means that the two collections must havethe same keys. In both cases, the order is not significant. TRUE if the two collections are equivalent FALSE, otherwise |
isEquivalent | public static boolean isEquivalent(LinkedList l1, LinkedList l2)(Code) | | Compares the two collections to see if they are equivalent.
Parameters: l1 - The first collection Parameters: l2 - The second collection TRUE if the two collections are equivalent FALSE, otherwise |
readArrayList | public static ArrayList readArrayList(ObjectInput in, String desc) throws IOException(Code) | | Reads an array of objects from the specified input stream. Returns null
if no array is available. The format of the information to be read
from the input stream should be
class name
active or empty
data NOTE: each object in the array should implement either
java.io.Serializable or java.io.Externalizable in order to be saved
Parameters: in - The input stream Parameters: desc - A text description to use for logging The ArrayList or null, if not available throws: IOException - throws: ClassNotFoundException - |
readHashMap | public static HashMap readHashMap(ObjectInput in, String desc) throws IOException(Code) | | Read a hashmap of objects from the specified input stream. Returns null
if no hashmap is available. The format of the information to be read
from the input stream should be
class name
active or empty
data NOTE: each object in the array should implement either
java.io.Serializable or java.io.Externalizable in order to be saved
Parameters: in - The input stream Parameters: desc - A text description to use for logging The HashMap or null, if not available throws: IOException - throws: ClassNotFoundException - |
readLinkedList | public static LinkedList readLinkedList(ObjectInput in, String desc) throws IOException(Code) | | Reads a linked list of objects from the specified input stream. Returns
null if no array is available. The format of the information to be
read from the input stream should be
class name
active or empty
data NOTE: each object in the list should implement either
java.io.Serializable or java.io.Externalizable in order to be saved
Parameters: in - The input stream Parameters: desc - A text description to use for logging The linked list or null, if not available throws: IOException - throws: ClassNotFoundException - |
readObject | public static Object readObject(ObjectInput in, String desc) throws IOException, ClassNotFoundException(Code) | | Read an object from the specified input stream. Returns null if no object
is available. The format of the information to be read from the
input stream should be Non-Null Object
UTF - class name string
boolean - active flag
object - object if no error
LAST_ENTRY marker Null Object
UTF - description
boolean - empty flag
Parameters: in - The input stream Parameters: desc - A text description to use for logging The object or null, if not available throws: IOException - throws: ClassNotFoundException - |
readString | public static String readString(ObjectInput in, String desc) throws IOException, ClassNotFoundException(Code) | | Read a string from the specified input stream. Returns null if no string
is available. The format of the information to be read from the
input stream should be Non-Null String
UTF - class name string
boolean - active flag
Object - string data Null String
UTF - description
boolean - empty flag
Parameters: in - The input stream Parameters: desc - A text description to use for logging The string or null, if not available throws: IOException - throws: ClassNotFoundException - |
traceNotSerializable | public static void traceNotSerializable(Object obj, NotSerializableException nse, String objDesc, String methodName, String desc)(Code) | | Trace the NotSerializable exception for the specified object if this is
the first time that the specified object has caused the exception.
Parameters: obj - The object being saved or restored Parameters: nse - The exception object with the details of the error Parameters: objDesc - The description of the object, eg, like the field name whereit is being used Parameters: methodName - The method name which encountered the exception Parameters: desc - Text to be used for tracing |
writeArrayList | public static void writeArrayList(ObjectOutput out, ArrayList al, String desc) throws IOException(Code) | | Write an array of objects to the specified output stream. The format
of the information written to the output stream is
class name of the array
active or empty
data NOTE: each object in the array should implement either
java.io.Serializable or java.io.Externalizable in order to be saved
Parameters: out - The output stream Parameters: al - The ArrayList to write Parameters: desc - A text description to use for logging throws: IOException - Exception |
writeHashMap | public static void writeHashMap(ObjectOutput out, HashMap map, String desc) throws IOException(Code) | | Write a hashmap of objects to the specified output stream. The
format of the information written to the output stream is
class name of the array
active or empty
data NOTE: each object in the map should implement either
java.io.Serializable or java.io.Externalizable in order to be saved
Parameters: out - The output stream Parameters: map - The HashMap to write Parameters: desc - A text description to use for logging throws: IOException - Exception |
writeLinkedList | public static void writeLinkedList(ObjectOutput out, LinkedList objlist, String desc) throws IOException(Code) | | Write a linked list of objects to the specified output stream. The
format of the information written to the output stream is
class name of the array
active or empty
data NOTE: each object in the array should implement either
java.io.Serializable or java.io.Externalizable in order to be saved
Parameters: out - The output stream Parameters: list - The LinkedList to write Parameters: desc - A text description to use for logging throws: IOException - Exception |
writeObject | public static void writeObject(ObjectOutput out, Object obj, String desc) throws IOException(Code) | | Write an object to the specified output stream. The format of the
information written to the output stream is Non-Null Object
UTF - class name string
boolean - active flag
object - object if no error in the form of int byte array
LAST_ENTRY marker in the form of int object Null Object
UTF - description
boolean - empty flag
Parameters: out - The output stream Parameters: obj - The object to write Parameters: desc - A text description to use for logging throws: IOException - Exception |
writeString | public static void writeString(ObjectOutput out, String str, String desc) throws IOException(Code) | | Write a string to the specified output stream. The format of the
information written to the output stream is: Non-Null String
UTF - class name string
boolean - active flag
Object - string data Null String
UTF - description
boolean - empty flag
Parameters: out - The output stream Parameters: str - The string to write Parameters: desc - A text description to use for logging throws: IOException - Exception |
|
|