public final class UndertowHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
appendHeader(Map<String,Object> headers,
String key,
Object value) |
static io.undertow.util.HttpString |
createMethod(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 URI |
createURI(org.apache.camel.Exchange exchange,
String url,
UndertowEndpoint endpoint)
Creates the URI to invoke.
|
static String |
createURL(org.apache.camel.Exchange exchange,
UndertowEndpoint endpoint)
Creates the URL to invoke.
|
static URI |
makeHttpURI(String httpURI) |
static URI |
makeHttpURI(URI httpURI) |
public static String createURL(org.apache.camel.Exchange exchange, UndertowEndpoint endpoint)
exchange
- the exchangeendpoint
- the endpointpublic static URI createURI(org.apache.camel.Exchange exchange, String url, UndertowEndpoint endpoint) throws URISyntaxException
exchange
- the exchangeurl
- the url to invokeendpoint
- the endpointURISyntaxException
public static io.undertow.util.HttpString createMethod(org.apache.camel.Exchange exchange, UndertowEndpoint endpoint, boolean hasPayload) throws URISyntaxException
URISyntaxException
Apache Camel