|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.systinet.wasp.webservice.Current
Current can be used for obtaining of current CallContext
if it's
during call, of ServiceClientContext
if it's on the client side,
of ServiceEndpointContext
or ServiceInstanceContext
if it's
on the server side. It can be used for determining of current processing
type also. This is useful f.e in a case, when there is only one implementation
of serializer for both, server and client side and it should behave in different
way depending on its location.
Field Summary | |
static int |
CLIENT_PROCESSING
It's in the client processing. |
static int |
NO_PROCESSING
It's in no processing. |
static int |
SERVER_PROCESSING
It's in the server processing. |
Method Summary | |
static CallContext |
getCallContext()
Returns current CallContext . |
static int |
getProcessingType()
Returns type of the current processing. |
static ServiceClientContext |
getServiceClientContext()
Returns current ServiceClientContext . |
static ServiceEndpointContext |
getServiceEndpointContext()
Returns current ServiceEndpointContext . |
static ServiceInstanceContext |
getServiceInstanceContext()
Returns current ServiceInstanceContext . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NO_PROCESSING
getProcessingType()
,
Constant Field Valuespublic static final int CLIENT_PROCESSING
getProcessingType()
,
Constant Field Valuespublic static final int SERVER_PROCESSING
getProcessingType()
,
Constant Field ValuesMethod Detail |
public static ServiceEndpointContext getServiceEndpointContext()
ServiceEndpointContext
. Useful for
webservice to get its context or configuration.
public static ServiceInstanceContext getServiceInstanceContext()
ServiceInstanceContext
. Useful for
webservice to get its context or configuration.
public static CallContext getCallContext()
CallContext
. Useful for
both client and webservice to access additional data.
public static ServiceClientContext getServiceClientContext()
ServiceClientContext
. Useful for
client to get its context or configuration.
public static int getProcessingType()
CLIENT_PROCESSING
when it's during an invocation on the client side. Returns
SERVER_PROCESSING
when it's during an invocation
on the server side. Returns NO_PROCESSING
when we aren't in the
processing.
CLIENT_PROCESSING
, SERVER_PROCESSING
or NO_PROCESSING
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |