public class CatalogueResolver
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
static String |
DIRECT_CATALOGUE_LINK_PARAM |
static String |
ENC_CATALOGUE_LINK_PARAM |
static String |
ENV_SCOPE |
static String |
PARAMETER_PATH |
static String |
UTF_8 |
| Constructor and Description |
|---|
CatalogueResolver() |
| Modifier and Type | Method and Description |
|---|---|
static String |
base64DecodeString(String s)
Base64 decode string.
|
static String |
base64EncodeStringURLSafe(String s)
Base64 encode string url safe.
|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
String |
getServerURL(javax.servlet.http.HttpServletRequest req)
Gets the server url.
|
static String |
getValueOfParameter(String parameter,
String httpQueryString)
Gets the value of parameter in the passed query string, null otherwise
|
void |
init() |
protected static void |
sendError(javax.servlet.http.HttpServletResponse response,
int status,
String message)
Send error.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String UTF_8
public static final String ENC_CATALOGUE_LINK_PARAM
public static final String DIRECT_CATALOGUE_LINK_PARAM
public static final String PARAMETER_PATH
public static final String ENV_SCOPE
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected static void sendError(javax.servlet.http.HttpServletResponse response,
int status,
String message)
throws IOException
response - the responsestatus - the statusmessage - the messageIOException - Signals that an I/O exception has occurred.public String getServerURL(javax.servlet.http.HttpServletRequest req)
req - the reqpublic static String getValueOfParameter(String parameter, String httpQueryString)
parameter - the parameterhttpQueryString - the http query stringpublic static String base64EncodeStringURLSafe(String s)
s - the sCopyright © 2017. All Rights Reserved.