|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.soa.esb.http.Configurator
public abstract class Configurator
HttpClient Configurator.
Configure some aspect of a HttpClient instance.
Constructor Summary | |
---|---|
Configurator()
|
Method Summary | |
---|---|
protected void |
assertPropertyIsInteger(java.lang.String propertyValue,
java.lang.String propertyName)
Assert that the property value is an Integer. |
protected void |
assertPropertySetAndNotBlank(java.lang.String propertyValue,
java.lang.String propertyName)
Assert that the property value is not null and not blank. |
abstract void |
configure(org.apache.commons.httpclient.HttpClient httpClient,
java.util.Properties properties)
|
protected java.net.URI |
getTargetURI(java.util.Properties properties,
boolean required)
Gets a URI for the HttpClientFactory.TARGET_HOST_URL property,
if set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Configurator()
Method Detail |
---|
public abstract void configure(org.apache.commons.httpclient.HttpClient httpClient, java.util.Properties properties) throws ConfigurationException
ConfigurationException
protected java.net.URI getTargetURI(java.util.Properties properties, boolean required) throws ConfigurationException
URI
for the HttpClientFactory.TARGET_HOST_URL
property,
if set.
properties
- Properties.required
- If the HttpClientFactory.TARGET_HOST_URL
property is required. An
exception is thrown if this is true and the property is not present.
HttpClientFactory.TARGET_HOST_URL
property, otherwise null
if not set.
ConfigurationException
- HttpClientFactory.TARGET_HOST_URL
property is not set
an required is true, or the configured URI is invalid.protected void assertPropertySetAndNotBlank(java.lang.String propertyValue, java.lang.String propertyName) throws ConfigurationException
propertyValue
- The value of the property.propertyName
- The name of the property.
ConfigurationException
protected void assertPropertyIsInteger(java.lang.String propertyValue, java.lang.String propertyName) throws ConfigurationException
propertyValue
- The value of the property.propertyName
- The name of the property.
ConfigurationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |