Package com.saperion.util
Class HTMLGatewayUtil
- java.lang.Object
-
- com.saperion.util.HTMLGatewayUtil
-
public final class HTMLGatewayUtil extends java.lang.Object
The Class HTMLGatewayUtil encapsulates the HTML gateway handling.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HTMLGatewayUtil.GatewayDocument
The Class GatewayDocument.
-
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 encapsulatedGatewayDocument
.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.
-
-
-
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 encapsulatedGatewayDocument
.- 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
-
-