Class WebServiceProxyCall
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWebservice definition type, allows defining the argument values for a specific WS call -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefineWebService(String url, String serviceName, int returnType, int... argumentTypes) Creates a webservice definition object which can be used to invoke the webservice.static voidinvokeWebserviceASync(WebServiceProxyCall.WSDefinition def, Callback call, Object... arguments) Invokes a web asynchronously and calls the callback on completionstatic voidinvokeWebserviceASync(WebServiceProxyCall.WSDefinition def, SuccessCallback scall, FailureCallback fcall, Object... arguments) Invokes a web asynchronously and calls the callback on completionstatic ObjectinvokeWebserviceSync(WebServiceProxyCall.WSDefinition def, Object... arguments) Invokes a webservice synchronously and returns resultMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Field Details
-
TYPE_VOID
public static final int TYPE_VOIDWeb protocol argument/return type- See Also:
-
TYPE_BYTE
public static final int TYPE_BYTEWeb protocol argument/return type- See Also:
-
TYPE_CHAR
public static final int TYPE_CHARWeb protocol argument/return type- See Also:
-
TYPE_SHORT
public static final int TYPE_SHORTWeb protocol argument/return type- See Also:
-
TYPE_INT
public static final int TYPE_INTWeb protocol argument/return type- See Also:
-
TYPE_LONG
public static final int TYPE_LONGWeb protocol argument/return type- See Also:
-
TYPE_DOUBLE
public static final int TYPE_DOUBLEWeb protocol argument/return type- See Also:
-
TYPE_FLOAT
public static final int TYPE_FLOATWeb protocol argument/return type- See Also:
-
TYPE_BOOLEAN
public static final int TYPE_BOOLEANWeb protocol argument/return type- See Also:
-
TYPE_BYTE_OBJECT
public static final int TYPE_BYTE_OBJECTWeb protocol argument/return type- See Also:
-
TYPE_CHARACTER_OBJECT
public static final int TYPE_CHARACTER_OBJECTWeb protocol argument/return type- See Also:
-
TYPE_SHORT_OBJECT
public static final int TYPE_SHORT_OBJECTWeb protocol argument/return type- See Also:
-
TYPE_INTEGER_OBJECT
public static final int TYPE_INTEGER_OBJECTWeb protocol argument/return type- See Also:
-
TYPE_LONG_OBJECT
public static final int TYPE_LONG_OBJECTWeb protocol argument/return type- See Also:
-
TYPE_DOUBLE_OBJECT
public static final int TYPE_DOUBLE_OBJECTWeb protocol argument/return type- See Also:
-
TYPE_FLOAT_OBJECT
public static final int TYPE_FLOAT_OBJECTWeb protocol argument/return type- See Also:
-
TYPE_BOOLEAN_OBJECT
public static final int TYPE_BOOLEAN_OBJECTWeb protocol argument/return type- See Also:
-
TYPE_STRING
public static final int TYPE_STRINGWeb protocol argument/return type- See Also:
-
TYPE_BYTE_ARRAY
public static final int TYPE_BYTE_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_CHAR_ARRAY
public static final int TYPE_CHAR_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_SHORT_ARRAY
public static final int TYPE_SHORT_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_INT_ARRAY
public static final int TYPE_INT_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_LONG_ARRAY
public static final int TYPE_LONG_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_DOUBLE_ARRAY
public static final int TYPE_DOUBLE_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_FLOAT_ARRAY
public static final int TYPE_FLOAT_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_BOOLEAN_ARRAY
public static final int TYPE_BOOLEAN_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_STRING_ARRAY
public static final int TYPE_STRING_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_EXTERNALIABLE
public static final int TYPE_EXTERNALIABLEWeb protocol argument/return type- See Also:
-
-
Constructor Details
-
WebServiceProxyCall
public WebServiceProxyCall()
-
-
Method Details
-
invokeWebserviceSync
public static Object invokeWebserviceSync(WebServiceProxyCall.WSDefinition def, Object... arguments) throws IOException Invokes a webservice synchronously and returns result
Parameters
-
def: definition of the webservice request -
arguments: the arguments to the service
Returns
the value of the sync call
Throws
IOException: an exception in case of a webservice fail
- Throws:
IOException
-
-
invokeWebserviceASync
public static void invokeWebserviceASync(WebServiceProxyCall.WSDefinition def, SuccessCallback scall, FailureCallback fcall, Object... arguments) Invokes a web asynchronously and calls the callback on completion
Parameters
-
def: definition of the webservice request -
scall: the return value callback -
fcall: the error callback -
arguments: the arguments to the webservice
-
-
invokeWebserviceASync
public static void invokeWebserviceASync(WebServiceProxyCall.WSDefinition def, Callback call, Object... arguments) Invokes a web asynchronously and calls the callback on completion
Parameters
-
def: definition of the webservice request -
call: the return value containing an error callback or value -
arguments: the arguments to the webservice
-
-
defineWebService
public static WebServiceProxyCall.WSDefinition defineWebService(String url, String serviceName, int returnType, int... argumentTypes) Creates a webservice definition object which can be used to invoke the webservice.
Parameters
-
url: the url of the webservice -
serviceName: the name of the service method -
returnType: the return type for the webservice one of the TYPE_* constants -
argumentTypes: the arguments for the webservice using the TYPE_* constants
Returns
a WSDefinition object
-
-