|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.idoox.webservice.client.WebServiceHelper
This class enables access to the WebService
service methods of a stub.
Constructor Summary | |
WebServiceHelper()
Deprecated. |
Method Summary | |
static CallContext |
getCallContext(java.lang.Object stub)
Deprecated. Use ServiceClient . |
static Credentials[] |
getCredentials(java.lang.Object stub)
Deprecated. |
static java.lang.String |
getSecurityProvider(java.lang.Object stub)
Deprecated. since WASP4.5 |
static java.util.Map |
getStubContext(java.lang.Object stub)
Deprecated. Use ServiceClient . |
static WebService |
getWebService(java.lang.Object stub)
Deprecated. Use Current instead of WebService |
static int |
select(AsyncReceipt[] receipts,
long timeout)
Deprecated. use AsyncConversation |
static int |
select(java.util.List receipts,
long timeout)
Deprecated. use AsyncConversation |
static void |
setCredentials(java.lang.Object stub,
Credentials[] creds)
Deprecated. since WASP4.5 |
static void |
setSecurityProvider(java.lang.Object stub,
java.lang.String providerName)
Deprecated. since WASP4.5 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WebServiceHelper()
Method Detail |
public static WebService getWebService(java.lang.Object stub)
Current
instead of WebService
WebService
interface instance for given
web service stub.
stub
- web service stub for which the
WebService
interface has to be
returned
WebService
interface instance for
given web service stubpublic static CallContext getCallContext(java.lang.Object stub)
ServiceClient
.
stub
- web service stub for which the call context
should be returned
CallContext
instance associated with
given web service stub.public static java.util.Map getStubContext(java.lang.Object stub)
ServiceClient
.
stub
- web service stub for which the stub context
should be returned
Map
instance representing the stub
context associated with given web service stubpublic static Credentials[] getCredentials(java.lang.Object stub)
WaspSecurity.getInstance().getCredentials()
method instead.
stub
- Web Service stub to be used
public static void setCredentials(java.lang.Object stub, Credentials[] creds)
WaspSecurity.getInstance().setCredentials(Object,Credentials[]
method instead.
stub
- Web Service stub to be usedcreds
- array of Credentials to be set for given stubpublic static void setSecurityProvider(java.lang.Object stub, java.lang.String providerName) throws java.security.NoSuchProviderException
WaspSecurity.setInitiatingProvider(Object,String)
method instead.
stub
- Web Service stub to be set the security provider onproviderName
- name of the provider to be activated on given stub,
can be null
to deactivate authentication security
java.security.NoSuchProviderException
public static java.lang.String getSecurityProvider(java.lang.Object stub)
WaspSecurity.getInitiatingProvider(Object)
method instead.
stub
- Web Service stub to be used
public static int select(AsyncReceipt[] receipts, long timeout) throws java.lang.InterruptedException
AsyncConversation
isFinished()
) or
after the timeout in milliseconds. In case any of the provided receipts
is already finished, the method will return immediately.
receipts
- an array of receipts for which the call should waittimeout
- the timeout in milliseconds, can be zero which signifies
no timeout.
java.lang.InterruptedException
- when the waiting is interruptedpublic static int select(java.util.List receipts, long timeout) throws java.lang.InterruptedException
AsyncConversation
isFinished()
) or
after the timeout in milliseconds. In case any of the provided receipts
is already finished, the method will return immediately.
receipts
- a list of receipts for which the call should waittimeout
- the timeout in milliseconds, can be zero which signifies
no timeout.
java.lang.InterruptedException
- when the waiting is interrupted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |