|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.util.http.slim.SlimRequesterFactory
Implementation of IWDRequesterFactory for the slim package.
SlimRequesterFactory is caching IWDRequester objects per IWDContext. There is a maximum number of cached (not constructed) objects per context. Requester objects time out after a while and are removed. There is not limit on the number of IWDRequester per context, however when requester are released, only a certain number is kept for further use.
See SlimRequester for information about open connections.
Copyright (c) SAP AG 2001-2003
| Constructor Summary | |
SlimRequesterFactory()
|
|
| Method Summary | |
java.lang.String |
getAbsoluteURL(java.lang.String uri)
|
HttpUrl |
getBase()
|
IContext |
getContext(java.lang.Object key)
|
int |
getPort()
|
HttpUrl |
getProxy()
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SlimRequesterFactory()
| Method Detail |
public java.lang.String getAbsoluteURL(java.lang.String uri)
getAbsoluteURL in interface IRequesterFactoryuri - TBD: Description of the incoming method parameterpublic HttpUrl getProxy()
public IRequester getRequester(IContext context)
throws WcmException
getRequester in interface IRequesterFactorycom.sapportals.wcm.util.http.IRequesterFactorycontext - needed for authorized connections or null for
anonymous requestsWcmException - Exception raised in failure situationpublic IContext getContext(java.lang.Object key)
getContext in interface IRequesterFactorycom.sapportals.wcm.util.http.IRequesterFactorykey - TBD: Description of the incoming method parameterpublic int getPort()
getPort in interface IRequesterFactory
public void setBaseURL(java.lang.String url)
throws java.net.MalformedURLException
IRequesterFactorysetBaseURL in interface IRequesterFactorycom.sapportals.wcm.util.http.IRequesterFactoryurl - baseURL to be setjava.net.MalformedURLException - Exception raised in failure
situationpublic HttpUrl getBase()
getBase in interface IRequesterFactorycom.sapportals.wcm.util.http.IRequesterFactorypublic void setProxyInfo(IProxyInfo info)
setProxyInfo in interface IRequesterFactoryinfo - proxyInfo to be setpublic void setSoTimeout(int ms)
IRequesterFactorysetSoTimeout in interface IRequesterFactorycom.sapportals.wcm.util.http.IRequesterFactoryms - soTimeout to be setpublic int getSoTimeout()
IRequesterFactorygetSoTimeout in interface IRequesterFactorycom.sapportals.wcm.util.http.IRequesterFactorypublic void setMaxConnections(int max)
IRequesterFactorysetMaxConnections in interface IRequesterFactorycom.sapportals.wcm.util.http.IRequesterFactorymax - maximum number of connections
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||