|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.federation.FederationHelper
FederationHelper provides client invokable methods to federation services.
These methods are executed on the client side. It also provides access
to the methods of the FederationService interface.
Supported API: true
Extendable: false
Nested Class Summary | |
private class |
FederationHelper.InputStreamUploader
|
private class |
FederationHelper.OutputStreamDownloader
|
private class |
FederationHelper.RMIInputStream
|
Field Summary | |
private static char[] |
base64Chars
|
private static int |
CHUNK_SIZE
|
private static String |
CLASSNAME
|
private static String |
CRLF
|
private static String |
DASH2
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static FederationHelper |
instance
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static String |
SERVER_CLASS
|
static FederationService |
service
Supported API: false |
Constructor Summary | |
FederationHelper()
|
Method Summary | |
static void |
appendNewElements(QueryResult qr1,
QueryResult qr2)
Appends new elements from one QueryResult to another QueryResult. |
static Group |
doAction(String action,
Object[][] argv)
Executes one or more Info*Engine tasks selected by a specific logical action name, and the types and physical locations of a specific set of objects passed as parameters. |
static Group |
doAction(String action,
Object[][] argv,
FeedbackSpec feedbackSpec)
Executes one or more Info*Engine tasks selected by a specific logical action name, and the types and physical locations of a specific set of objects passed as parameters. |
static String |
encodeBase64(byte[] octets)
Returns a Base64 encoding of the specified array of octets. |
static String |
getActionURL(FederatedService service,
String key,
Hashtable arguments)
Substitutes arguments into the URL template of the specified service and returns the resulting URL string. |
static boolean |
haveSameSource(Object object1,
Object object2)
Returns true if two objects are proxies referencing the same source object. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(FederationHelper thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
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 CLASSNAME
public static final FederationService service
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static int CHUNK_SIZE
private static final char[] base64Chars
private static final String SERVER_CLASS
private static final String CRLF
private static final String DASH2
private static FederationHelper instance
Constructor Detail |
public FederationHelper()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(FederationHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static void appendNewElements(QueryResult qr1, QueryResult qr2) throws FederationServicesException
qr1
- the query result to append another query result to.qr2
- the query result to be appended.
FederationServicesException
public static Group doAction(String action, Object[][] argv) throws WTException
action
- Required. The name of the action to perform on the input object(s).argv
- Required. Variable argument list. The format is an array of arrays, each containing a Name, Value pair. The Name is the argument name and must be a String type. The Value is the argument value. Values can be of type:
At least one argument name, value pair must be specified and at least one argument value must be of type TypeInstance (or TypeInstance[]), Element (or Element[]), or Group.
An example of three input values would look like:
Object[][] argv = { {"arg1Name", arg1Value}, {"arg2Name", arg2Value}, {"arg3Name", arg3Value} };
WTException
public static Group doAction(String action, Object[][] argv, FeedbackSpec feedbackSpec) throws WTException
action
- Required. The name of the action to perform on the input object(s).argv
- Required. Variable argument list. The format is an array of arrays, each containing a Name, Value pair. The Name is the argument name and must be a String type. The Value is the argument value. Values can be of type:
At least one argument name, value pair must be specified and at least one argument value must be of type TypeInstance (or TypeInstance[]), Element (or Element[]), or Group.
An example of three input values would look like:
Object[][] argv = { {"arg1Name", arg1Value}, {"arg2Name", arg2Value}, {"arg3Name", arg3Value} };
feedbackSpec
- The feedback specification object. If there is no feedback specification, specify null.
WTException
public static String encodeBase64(byte[] octets)
octets
- array of octets to encode.
public static String getActionURL(FederatedService service, String key, Hashtable arguments)
service
- the FederatedService object.key
- the URL template key.arguments
- the arguments to be substituted into the template.
public static boolean haveSameSource(Object object1, Object object2) throws FederationServicesException
object1
- the first object.object2
- the second object.
FederationServicesException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |