|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A requester factory is able to handle out new IWDRequester for a given base URL. Context information can be supplied when the connection to the remote URL requires Authorization.
For efficient reuse of requester, it is best to acquire the IWDContext objects through the factory interface. At the moment there is only support for user/password Authorization in this interface.
Copyright (c) SAP AG 2001-2002
| Method Summary | |
java.lang.String |
getAbsoluteURL(java.lang.String uri)
|
HttpUrl |
getBase()
|
IContext |
getContext(java.lang.Object key)
|
int |
getPort()
|
IRequester |
getRequester(IContext context)
|
int |
getSoTimeout()
Returns the timeout used for socket operations. |
void |
setBaseURL(java.lang.String url)
Set the base URL for this factory. |
void |
setMaxConnections(int max)
Set the maximum number of concurrent connections. |
void |
setProxyInfo(IProxyInfo info)
Sets the proxy information to use by this factory. |
void |
setSoTimeout(int ms)
Sets the timeout for socket operations. |
| Method Detail |
public HttpUrl getBase()
public int getPort()
public java.lang.String getAbsoluteURL(java.lang.String uri)
uri - TBD: Description of the incoming method parameterpublic IContext getContext(java.lang.Object key)
key - TBD: Description of the incoming method parameter
public void setBaseURL(java.lang.String url)
throws java.net.MalformedURLException
url - baseURL to be setjava.net.MalformedURLException - Exception raised in failure
situationpublic void setProxyInfo(IProxyInfo info)
info - proxyInfo to be set
public IRequester getRequester(IContext context)
throws WcmException
context - needed for authorized connections or null for
anonymous requestsWcmException - Exception raised in failure situationpublic int getSoTimeout()
public void setSoTimeout(int ms)
ms - soTimeout to be setpublic void setMaxConnections(int max)
max - maximum number of connections
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||