Class DomainUtil


  • public class DomainUtil
    extends Object
    Utility methods used for HTTP based domain management.
    Author:
    Darran Lofthouse
    • Constructor Detail

      • DomainUtil

        public DomainUtil()
    • Method Detail

      • writeResponse

        public static void writeResponse​(io.undertow.server.HttpServerExchange exchange,
                                         int status,
                                         org.jboss.dmr.ModelNode response,
                                         OperationParameter operationParameter)
      • constructUrl

        public static String constructUrl​(io.undertow.server.HttpServerExchange exchange,
                                          String path)
        Based on the current request represented by the HttpExchange construct a complete URL for the supplied path.
        Parameters:
        exchange - - The current HttpExchange
        path - - The path to include in the constructed URL
        Returns:
        The constructed URL