Class UndertowHelper


  • public final class UndertowHelper
    extends Object
    Helper class for useful methods used all over the component
    • Method Detail

      • createURL

        public static String createURL​(org.apache.camel.Exchange exchange,
                                       UndertowEndpoint endpoint)
        Creates the URL to invoke.
        Parameters:
        exchange - the exchange
        endpoint - 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 exchange
        url - the url to invoke
        endpoint - the endpoint
        Returns:
        the URI to invoke
        Throws:
        URISyntaxException
      • 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

        public static URI makeHttpURI​(String httpURI)
      • makeHttpURI

        public static URI makeHttpURI​(URI httpURI)