public class HttpConfiguration extends java.lang.Object implements HttpConfigurationMBean
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_FILE |
static java.lang.String |
DEFAULT_JETTY_CONNECTOR_CLASS_NAME |
static java.lang.String |
MAPPING_DEFAULT |
| Constructor and Description |
|---|
HttpConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAuthenticationService()
Gets the authentication service being used.
|
java.lang.String |
getAuthenticationServiceName()
Gets the JNDI name of the authentication service object.
|
int |
getClientConnectTimeout()
Gets the number of milliseconds for soTimeout parameter of JettyClient when JettyClient instance is shared among http:provider endpoints.
|
java.lang.String |
getComponentName() |
int |
getConnectorMaxIdleTime()
Gets the amount of time, in milliseconds, that a connection will sit idle
before timing out.
|
int |
getConsumerProcessorSuspendTime()
Gets the number of milliseconds passed to the
susspend
method of the Jetty Continuation object used to process
requests. |
int |
getJettyClientThreadPoolSize()
Get the maximum number of threads in the client-side thread pool.
|
java.lang.String |
getJettyConnectorClassName()
Returns the name of the class implementing the Jetty connector used by an
HTTP endpoint.
|
int |
getJettyThreadPoolSize()
Gets the number of maximum number of threads in the server-side
threadpool.
|
java.lang.Object |
getKeystoreManager()
Gets the object used as the keystore manager.
|
java.lang.String |
getKeystoreManagerName()
Gets the JNDI name of the keystore manager object.
|
java.lang.String |
getMapping() |
int |
getMaxConnectionsPerAddress()
Gets the number of the maximum connections per address that JettyClient creates for each destination.
|
int |
getMaxConnectionsPerHost()
Gets the maximum number of concurent requests allowed from a particular
host.
|
int |
getMaxTotalConnections()
Gets the maximum number of concurent connections allowed to an endpoint.
|
int |
getProviderExpirationTime()
Gets the number of milliseconds that the provider will wait for a response before expiring.
|
java.lang.String |
getProxyHost() |
int |
getProxyPort() |
int |
getRetryCount()
Gets the number of times a request will be tried before an error is
created.
|
java.lang.String |
getRootDir() |
int |
getServerGracefulTimeout() |
int |
getSoLingerTime()
Gets the amount of connector soLingerTime, in milliseconds.
|
boolean |
isJettyClientPerProvider()
Determines if each HTTP provider endpoint uses its own Jetty client.
|
boolean |
isJettyManagement() |
boolean |
isManaged() |
boolean |
isPreemptiveAuthentication() |
boolean |
isStreamingEnabled()
Determines if client-side requests use HTTP streaming.
|
boolean |
isUseHostPortForAuthScope() |
boolean |
isWantHeadersFromHttpIntoExchange()
Determines if the HTTP provider processor copies the HTTP headers from
the HTTP response into the JBI exchange.
|
boolean |
load() |
void |
save() |
void |
setAuthenticationService(java.lang.Object authenticationService)
Directly sets the authenitcation service object to be used for
authentication.
|
void |
setAuthenticationServiceName(java.lang.String authenticationServiceName)
Sets the JNDI name of the authentication service object.
|
void |
setClientConnectTimeout(int clientConnectTimeout)
Sets the number of milliseconds for soTimeout parameter of JettyClient when JettyClient instance is shared among http:provider endpoints.
|
void |
setComponentName(java.lang.String componentName) |
void |
setConnectorMaxIdleTime(int connectorMaxIdleTime)
Sets the amount of time, in milliseconds, that a connection will sit idle
before timing out.
|
void |
setConsumerProcessorSuspendTime(int consumerProcessorSuspendTime)
Sets the number of milliseconds passed to the
susspend
method of the Jetty Continuation object used to process
requests. |
void |
setJettyClientPerProvider(boolean jettyClientPerProvider)
Specifies whether each HTTP provider endpoint uses its own Jetty client.
|
void |
setJettyClientThreadPoolSize(int jettyClientThreadPoolSize)
Sets the maximum number of threads in the client-side thread pool.
|
void |
setJettyConnectorClassName(java.lang.String jettyConnectorClassName)
Sets the classname of the Jetty connector used by an HTTP endpoint.
|
void |
setJettyManagement(boolean jettyManagement) |
void |
setJettyThreadPoolSize(int jettyThreadPoolSize)
Sets the maximum number of threads in the server-side thread pool.
|
void |
setKeystoreManager(java.lang.Object keystoreManager)
Directly sets the keystore manager object to be used for authentication.
|
void |
setKeystoreManagerName(java.lang.String keystoreManagerName)
Sets the JNDI name of the keystore manager object.
|
void |
setManaged(boolean managed) |
void |
setMapping(java.lang.String mapping) |
void |
setMaxConnectionsPerAddress(int maxConnectionsPerAddress)
Sets the number of the maximum connections per address that JettyClient creates for each destination.
|
void |
setMaxConnectionsPerHost(int maxConnectionsPerHost)
Sets the maximum number of connections allowed from a particular host.
|
void |
setMaxTotalConnections(int maxTotalConnections)
Sets the maximum number of total concurrent connections allowed to an
endpoint.
|
void |
setPreemptiveAuthentication(boolean preemptiveAuthentication)
Specifies of the httpclient uses preemptive authentication which can save performance.
|
protected void |
setProperty(java.lang.String name,
java.lang.String value) |
void |
setProviderExpirationTime(int providerExpirationTime)
Sets the number of milliseconds the provider will wait for a response (read timeout).
|
void |
setProxyHost(java.lang.String proxyHost) |
void |
setProxyPort(int proxyPort) |
void |
setRetryCount(int retryCount)
Sets the number of times a request will be tried before an error is
created.
|
void |
setRootDir(java.lang.String rootDir) |
void |
setServerGracefulTimeout(int serverGracefulTimeout) |
void |
setSoLingerTime(int soLingerTime)
Sets the amount of connector soLinger time, in milliseconds.
|
void |
setStreamingEnabled(boolean streamingEnabled)
Sets whether or not client-side requests use HTTP streaming.
|
void |
setUseHostPortForAuthScope(boolean useHostPortForAuthScope) |
void |
setWantHeadersFromHttpIntoExchange(boolean wantHeadersFromHttpIntoExchange)
Specifies if the HTTP provider processor copies the HTTP headers from the
HTTP response into the JBI exchange.
|
public static final java.lang.String DEFAULT_JETTY_CONNECTOR_CLASS_NAME
public static final java.lang.String MAPPING_DEFAULT
public static final java.lang.String CONFIG_FILE
public java.lang.String getRootDir()
public void setRootDir(java.lang.String rootDir)
rootDir - The rootDir to set.public java.lang.String getComponentName()
public void setComponentName(java.lang.String componentName)
componentName - The componentName to set.public java.lang.String getMapping()
public void setMapping(java.lang.String mapping)
mapping - the mapping to setpublic boolean isManaged()
public void setManaged(boolean managed)
managed - the managed to setpublic boolean isJettyManagement()
isJettyManagement in interface HttpConfigurationMBeanpublic void setJettyManagement(boolean jettyManagement)
setJettyManagement in interface HttpConfigurationMBeanjettyManagement - the jettyManagement to setpublic java.lang.Object getAuthenticationService()
public void setAuthenticationService(java.lang.Object authenticationService)
setAuthenticationServiceName.authenticationService - the authenticationService objectpublic java.lang.String getAuthenticationServiceName()
getAuthenticationServiceName in interface HttpConfigurationMBeanpublic void setAuthenticationServiceName(java.lang.String authenticationServiceName)
setAuthenticationServiceName in interface HttpConfigurationMBeanauthenticationServiceName - a string representing the JNDI name for
the authentication service object.public java.lang.Object getKeystoreManager()
public void setKeystoreManager(java.lang.Object keystoreManager)
setKeystoreManagerName.keystoreManager - the keystoreManager objectpublic java.lang.String getKeystoreManagerName()
getKeystoreManagerName in interface HttpConfigurationMBeanpublic void setKeystoreManagerName(java.lang.String keystoreManagerName)
setKeystoreManagerName in interface HttpConfigurationMBeankeystoreManagerName - a string representing the JNDI name for the
keystore manager object.public boolean isStreamingEnabled()
isStreamingEnabled in interface HttpConfigurationMBeanpublic void setStreamingEnabled(boolean streamingEnabled)
setStreamingEnabled in interface HttpConfigurationMBeanstreamingEnabled - Set to true to enable client-side HTTP streaming.public java.lang.String getJettyConnectorClassName()
getJettyConnectorClassName in interface HttpConfigurationMBeanpublic void setJettyConnectorClassName(java.lang.String jettyConnectorClassName)
setJettyConnectorClassName in interface HttpConfigurationMBeanjettyConnectorClassName - a String representing the classname of the
Jetty connector to use.public int getJettyThreadPoolSize()
getJettyThreadPoolSize in interface HttpConfigurationMBeanpublic void setJettyThreadPoolSize(int jettyThreadPoolSize)
setJettyThreadPoolSize in interface HttpConfigurationMBeanjettyThreadPoolSize - an integer representing the maximum number of
threads in the server-side thread poolpublic int getJettyClientThreadPoolSize()
getJettyClientThreadPoolSize in interface HttpConfigurationMBeanpublic void setJettyClientThreadPoolSize(int jettyClientThreadPoolSize)
setJettyClientThreadPoolSize in interface HttpConfigurationMBeanjettyClientThreadPoolSize - an int specifiying the maximum number of
threads available in the client-side thread poolpublic boolean isJettyClientPerProvider()
isJettyClientPerProvider in interface HttpConfigurationMBeanpublic void setJettyClientPerProvider(boolean jettyClientPerProvider)
setJettyClientPerProvider in interface HttpConfigurationMBeanjettyClientPerProvider - true if HTTP providers are to use
individual Jetty clientspublic int getMaxConnectionsPerHost()
getMaxConnectionsPerHost in interface HttpConfigurationMBeanpublic void setMaxConnectionsPerHost(int maxConnectionsPerHost)
setMaxConnectionsPerHost in interface HttpConfigurationMBeanmaxConnectionsPerHost - an int specifying the max number of
connecitonspublic int getMaxTotalConnections()
getMaxTotalConnections in interface HttpConfigurationMBeanpublic void setMaxTotalConnections(int maxTotalConnections)
setMaxTotalConnections in interface HttpConfigurationMBeanmaxTotalConnections - an int specifying the total number of
concurrent connections allowed to an endpointpublic int getConnectorMaxIdleTime()
getConnectorMaxIdleTime in interface HttpConfigurationMBeanpublic void setConnectorMaxIdleTime(int connectorMaxIdleTime)
setConnectorMaxIdleTime in interface HttpConfigurationMBeanconnectorMaxIdleTime - an int specifying the number of milliseconds
that a connection will sit idle before timing outpublic int getSoLingerTime()
getSoLingerTime in interface HttpConfigurationMBeanpublic void setSoLingerTime(int soLingerTime)
setSoLingerTime in interface HttpConfigurationMBeansoLingerTime - an int specifying the connector soLingerTime in millisecondspublic int getConsumerProcessorSuspendTime()
susspend
method of the Jetty Continuation object used to process
requests.getConsumerProcessorSuspendTime in interface HttpConfigurationMBeanContinuation object will susspend the processing of
the current requestpublic void setConsumerProcessorSuspendTime(int consumerProcessorSuspendTime)
susspend
method of the Jetty Continuation object used to process
requests. The Continuation object is used to optimize
connection resources when the endpoint is under heavy load. The default
is 60000.setConsumerProcessorSuspendTime in interface HttpConfigurationMBeanconsumerProcessorSuspendTime - an int representing the number of
milliseconds the Jetty Continuation object will
susspend the processing of the current requestpublic int getProviderExpirationTime()
getProviderExpirationTime in interface HttpConfigurationMBeanpublic void setProviderExpirationTime(int providerExpirationTime)
setProviderExpirationTime in interface HttpConfigurationMBeanproviderExpirationTime - an int representing the number of milliseconds the Jetty will wait for a response (read timeout).public int getClientConnectTimeout()
public void setClientConnectTimeout(int clientConnectTimeout)
clientConnectTimeout - an int representing the JettyClient soTimeout.public int getMaxConnectionsPerAddress()
public void setMaxConnectionsPerAddress(int maxConnectionsPerAddress)
maxConnectionsPerAddress - the maxConnectionsPerAddress to setpublic int getRetryCount()
getRetryCount in interface HttpConfigurationMBeanpublic void setRetryCount(int retryCount)
setRetryCount in interface HttpConfigurationMBeanretryCount - an int representing the number of times a request will
be attempted before an error is raisedpublic java.lang.String getProxyHost()
getProxyHost in interface HttpConfigurationMBeanpublic void setProxyHost(java.lang.String proxyHost)
setProxyHost in interface HttpConfigurationMBeanproxyHost - The proxyHost to set.public int getProxyPort()
getProxyPort in interface HttpConfigurationMBeanpublic void setProxyPort(int proxyPort)
setProxyPort in interface HttpConfigurationMBeanproxyPort - The proxyPort to set.public boolean isWantHeadersFromHttpIntoExchange()
isWantHeadersFromHttpIntoExchange in interface HttpConfigurationMBeantrue if the HTTP headers will be copied into the
exchangepublic void setWantHeadersFromHttpIntoExchange(boolean wantHeadersFromHttpIntoExchange)
true leads to an error.setWantHeadersFromHttpIntoExchange in interface HttpConfigurationMBeanwantHeadersFromHttpIntoExchange - true if the HTTP
headers will be copied into the exchangepublic boolean isPreemptiveAuthentication()
public void setPreemptiveAuthentication(boolean preemptiveAuthentication)
preemptiveAuthentication - the value which strategy should be usedpublic boolean isUseHostPortForAuthScope()
public void setUseHostPortForAuthScope(boolean useHostPortForAuthScope)
useHostPortForAuthScope - If true the AuthScope of the httpclient is bind to a special host and port from the url. The default is falsepublic int getServerGracefulTimeout()
public void setServerGracefulTimeout(int serverGracefulTimeout)
serverGracefulTimeout - The Jetty serverGracefulTimeout to set.public void save()
protected void setProperty(java.lang.String name,
java.lang.String value)
public boolean load()
Copyright © 2005-2014 FuseSource. All Rights Reserved.