public class ReportServletUtils
extends java.lang.Object
Constructor and Description |
---|
ReportServletUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
authenticate(javax.servlet.http.HttpServletRequest request,
java.lang.String mxToken,
java.lang.String userId,
java.lang.String tenantCode)
Authenticate the request.
|
static boolean |
authenticate(javax.servlet.http.HttpServletRequest request,
java.lang.String mxToken,
java.lang.String userId,
java.lang.String tenantCode,
boolean isDirectPrint)
Authenticate the request.
|
static java.lang.String[] |
convertSafeToOriginalValue(java.lang.String[] paramValues) |
static void |
encodeForSecureAttachment(java.util.Vector attVec,
java.util.Vector securedAttachFlags,
WebClientSession clientSession,
java.lang.String tenantCode) |
static void |
encodeForSecureAttachment(java.util.Vector attVec,
java.util.Vector securedAttachFlags,
WebClientSession clientSession,
java.lang.String tenantCode,
javax.servlet.http.HttpServletRequest requ) |
static java.lang.String |
getRequestParameterValue(javax.servlet.http.HttpServletRequest request,
java.lang.String paramName) |
static java.lang.String[] |
getRequestParameterValues(javax.servlet.http.HttpServletRequest request,
java.lang.String paramName) |
static java.lang.String[] |
getRequestParameterValues(javax.servlet.http.HttpServletRequest request,
java.lang.String paramName,
boolean convertToUft8) |
static boolean |
isAuthenticatedSession(javax.servlet.http.HttpServletRequest request) |
public static boolean authenticate(javax.servlet.http.HttpServletRequest request, java.lang.String mxToken, java.lang.String userId, java.lang.String tenantCode)
request
- the http requestmxToken
- mxtokenuserId
- useridtenantCode
- tenantCodepublic static boolean authenticate(javax.servlet.http.HttpServletRequest request, java.lang.String mxToken, java.lang.String userId, java.lang.String tenantCode, boolean isDirectPrint)
request
- the http requestmxToken
- mxtokenuserId
- useridtenantCode
- tenantCodeisDirectPrint
- is direct printpublic static boolean isAuthenticatedSession(javax.servlet.http.HttpServletRequest request)
public static void encodeForSecureAttachment(java.util.Vector attVec, java.util.Vector securedAttachFlags, WebClientSession clientSession, java.lang.String tenantCode) throws MXException, java.rmi.RemoteException
attVec
- The vector to be encrypted for secured attachmentsecuredAttachFlags
- This tells if a corresponding element in attVec has to be encrypted. If this is null then all elements are encrypted.clientSession
- WebClientSessionMXException
java.rmi.RemoteException
public static void encodeForSecureAttachment(java.util.Vector attVec, java.util.Vector securedAttachFlags, WebClientSession clientSession, java.lang.String tenantCode, javax.servlet.http.HttpServletRequest requ) throws MXException, java.rmi.RemoteException
attVec
- The vector to be encrypted for secured attachmentsecuredAttachFlags
- This tells if a corresponding element in attVec has to be encrypted. If this is null then all elements are encrypted.clientSession
- WebClientSessionrequ
- The HttpServletRequest so that the session attributes can be retrieved.MXException
java.rmi.RemoteException
public static java.lang.String getRequestParameterValue(javax.servlet.http.HttpServletRequest request, java.lang.String paramName)
public static java.lang.String[] getRequestParameterValues(javax.servlet.http.HttpServletRequest request, java.lang.String paramName)
public static java.lang.String[] getRequestParameterValues(javax.servlet.http.HttpServletRequest request, java.lang.String paramName, boolean convertToUft8)
public static java.lang.String[] convertSafeToOriginalValue(java.lang.String[] paramValues)