Class UndertowHelper
java.lang.Object
org.apache.camel.component.undertow.UndertowHelper
Helper class for useful methods used all over the component
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic io.undertow.util.HttpStringcreateMethod(org.apache.camel.Exchange exchange, UndertowEndpoint endpoint, boolean hasPayload) Creates the HttpMethod to use to call the remote server, often either its GET or POST.static URIcreateURI(org.apache.camel.Exchange exchange, String url, UndertowEndpoint endpoint) Creates the URI to invoke.static StringcreateURL(org.apache.camel.Exchange exchange, UndertowEndpoint endpoint) Creates the URL to invoke.static URImakeHttpURI(String httpURI) static URImakeHttpURI(URI httpURI)
-
Method Details
-
createURL
Creates the URL to invoke.- Parameters:
exchange- the exchangeendpoint- the endpoint- Returns:
- the URL to invoke
-
createURI
public static URI createURI(org.apache.camel.Exchange exchange, String url, UndertowEndpoint endpoint) throws URISyntaxException Creates the URI to invoke.- Parameters:
exchange- the exchangeurl- the url to invokeendpoint- the endpoint- Returns:
- the URI to invoke
- Throws:
URISyntaxException
-
appendHeader
-
createMethod
public static io.undertow.util.HttpString createMethod(org.apache.camel.Exchange exchange, UndertowEndpoint endpoint, boolean hasPayload) throws URISyntaxException Creates the HttpMethod to use to call the remote server, often either its GET or POST.- Throws:
URISyntaxException
-
makeHttpURI
-
makeHttpURI
-