Class HTMLGatewayUtil


  • public final class HTMLGatewayUtil
    extends java.lang.Object
    The Class HTMLGatewayUtil encapsulates the HTML gateway handling.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.saperion.common.logging.Logger LOGGER
      The Constant LOGGER.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static HTMLGatewayUtil.GatewayDocument getDocument​(java.lang.String queryParams, com.saperion.connector.SaClassicConnector connector)
      Performs the HTML gateway functionality, returns the encapsulated GatewayDocument.
      static java.util.Map<java.lang.String,​java.lang.String> parse​(java.lang.String query)
      Parses the given URL query and builds a map with predefined keys to be processed on.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        public static final com.saperion.common.logging.Logger LOGGER
        The Constant LOGGER.
    • Method Detail

      • getDocument

        public static HTMLGatewayUtil.GatewayDocument getDocument​(java.lang.String queryParams,
                                                                  com.saperion.connector.SaClassicConnector connector)
                                                           throws java.lang.Exception
        Performs the HTML gateway functionality, returns the encapsulated GatewayDocument.
        Parameters:
        queryParams - The query parameters.
        connector - The SaClassicConnector connector.
        Returns:
        the gateway document
        Throws:
        java.lang.Exception - If an exception occurs.
      • parse

        public static java.util.Map<java.lang.String,​java.lang.String> parse​(java.lang.String query)
        Parses the given URL query and builds a map with predefined keys to be processed on. This parser works for the following pattern: [user:[password]@]/[/]/
        Parameters:
        query - the query
        Returns:
        the map