Package org.codice.proxy.http
Class HttpProxyServiceImpl
java.lang.Object
org.codice.proxy.http.HttpProxyServiceImpl
- All Implemented Interfaces:
HttpProxyService
Http Proxy service which creates a Camel based http proxy
- Author:
- ddf
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttpProxyServiceImpl(org.apache.camel.CamelContext camelContext) HttpProxyServiceImpl(org.apache.camel.CamelContext camelContext, String endpointType) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Creates and starts a proxy given only a target Uri.Creates and starts a proxy given an endpoint name and target Uri.voidStops and destroys the proxy.
-
Field Details
-
SERVLET_NAME
- See Also:
-
GENERIC_ENDPOINT_NAME
- See Also:
-
HTTP_PROXY_KEY
- See Also:
-
HTTPS_PROXY_KEY
- See Also:
-
HTTP_PROXY_HOST_KEY
- See Also:
-
HTTP_PROXY_PORT_KEY
- See Also:
-
HTTP_PROXY_AUTH_METHOD_KEY
- See Also:
-
HTTP_PROXY_AUTH_USERNAME_KEY
- See Also:
-
HTTP_PROXY_AUTH_PASSWORD_KEY
- See Also:
-
HTTP_PROXY_AUTH_DOMAIN_KEY
- See Also:
-
HTTP_PROXY_AUTH_HOST_KEY
- See Also:
-
-
Constructor Details
-
HttpProxyServiceImpl
public HttpProxyServiceImpl(org.apache.camel.CamelContext camelContext, String endpointType) throws IOException - Throws:
IOException
-
HttpProxyServiceImpl
public HttpProxyServiceImpl(org.apache.camel.CamelContext camelContext)
-
-
Method Details
-
start
Description copied from interface:HttpProxyServiceCreates and starts a proxy given only a target Uri. Generated Endpoint name will be returned.- Specified by:
startin interfaceHttpProxyService- Parameters:
targetUri-timeout- - in milliseconds- Returns:
- Throws:
Exception
-
start
Description copied from interface:HttpProxyServiceCreates and starts a proxy given an endpoint name and target Uri. Endpoint name will be returned.- Specified by:
startin interfaceHttpProxyService- Parameters:
endpointName-targetUri-timeout- - in milliseconds- Returns:
- Throws:
Exception
-
start
public String start(String endpointName, String targetUri, Integer timeout, boolean matchOnPrefix, Object bean) throws Exception - Throws:
Exception
-
stop
Description copied from interface:HttpProxyServiceStops and destroys the proxy.- Specified by:
stopin interfaceHttpProxyService- Parameters:
endpointName-- Throws:
Exception
-
destroy
public void destroy()
-