public final class SlimRequesterFactory extends Object implements IRequesterFactory
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 and Description |
|---|
SlimRequesterFactory() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAbsoluteURL(String uri) |
HttpUrl |
getBase() |
IContext |
getContext(Object key) |
int |
getPort() |
HttpUrl |
getProxy() |
IRequester |
getRequester(IContext context) |
int |
getSoTimeout()
Returns the timeout used for socket operations.
|
void |
setBaseURL(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.
|
void |
shutdown()
Free up all resource used by this factory.
|
public String getAbsoluteURL(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 IRequesterFactorycontext - needed for authorized connections or null for
anonymous requestsWcmException - Exception raised in failure situationpublic IContext getContext(Object key)
getContext in interface IRequesterFactorykey - TBD: Description of the incoming method parameterpublic int getPort()
getPort in interface IRequesterFactorypublic void setBaseURL(String url) throws MalformedURLException
IRequesterFactorysetBaseURL in interface IRequesterFactoryurl - baseURL to be setMalformedURLException - Exception raised in failure
situationpublic HttpUrl getBase()
getBase in interface IRequesterFactorypublic void setProxyInfo(IProxyInfo info)
setProxyInfo in interface IRequesterFactoryinfo - proxyInfo to be setpublic void setSoTimeout(int ms)
IRequesterFactorysetSoTimeout in interface IRequesterFactoryms - soTimeout to be setpublic int getSoTimeout()
IRequesterFactorygetSoTimeout in interface IRequesterFactorypublic void setMaxConnections(int max)
IRequesterFactorysetMaxConnections in interface IRequesterFactorymax - maximum number of connectionspublic void shutdown()
IRequesterFactoryshutdown in interface IRequesterFactory| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice