public class AgreementUtil extends Object
Constructor and Description |
---|
AgreementUtil() |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
checkAuthentication(AgreementResponse response,
javax.servlet.http.HttpServletResponse servletresponse) |
static void |
checkBasicAuthentication(AgreementConfig config,
javax.servlet.http.HttpServletRequest servletrequest,
AgreementRequest request) |
static void |
checkCookies(AgreementConfig config,
javax.servlet.http.HttpServletRequest servletrequest,
AgreementRequest request) |
static boolean |
checkCookies(AgreementResponse response,
javax.servlet.http.HttpServletResponse servletresponse) |
static boolean |
checkError(AgreementResponse response,
javax.servlet.http.HttpServletResponse servletresponse) |
static boolean |
checkForAgreementsAbort(javax.servlet.jsp.PageContext pageContext,
Section section)
Check that a section actually supports agreements, and return
whether or not to skip the remainder of the page.
|
static boolean |
checkForAgreementsAbort(javax.servlet.ServletRequest pServletRequest,
javax.servlet.ServletResponse pServletResponse,
Section section) |
protected static boolean |
checkForward(AgreementResponse response,
javax.servlet.ServletRequest pServletRequest,
javax.servlet.ServletResponse pServletResponse) |
static void |
checkHeaders(AgreementConfig config,
javax.servlet.http.HttpServletRequest servletrequest,
AgreementRequest request) |
static boolean |
checkHeaders(AgreementResponse response,
javax.servlet.http.HttpServletResponse servletresponse) |
protected static boolean |
checkRedirect(AgreementResponse response,
javax.servlet.http.HttpServletResponse servletresponse) |
static void |
checkRequestAttributes(AgreementConfig config,
javax.servlet.http.HttpServletRequest servletrequest,
AgreementRequest request) |
static boolean |
checkRequestAttributes(AgreementResponse response,
javax.servlet.http.HttpServletRequest servletrequest) |
static void |
checkRequestParameters(AgreementConfig config,
javax.servlet.http.HttpServletRequest servletrequest,
AgreementRequest request) |
static void |
checkSessionAttributes(AgreementConfig config,
javax.servlet.http.HttpSession session,
AgreementRequest request) |
static boolean |
checkSessionAttributes(AgreementResponse response,
javax.servlet.http.HttpServletRequest servletrequest) |
static void |
checkStatusCode(AgreementResponse response,
javax.servlet.http.HttpServletResponse servletresponse) |
public static boolean checkForAgreementsAbort(javax.servlet.jsp.PageContext pageContext, Section section)
The method sets cookies, HTTP session attributes, request attributes, HTTP headers and so on, depending on the actual agreement.
This method is typically used by a tag in a JSP page which has control of the request, otherwise, it the javax.servlet method calls will typically throw InvalidStateException. return true if the content is to be stopped, or false if the content is to be showed.
public static boolean checkForAgreementsAbort(javax.servlet.ServletRequest pServletRequest, javax.servlet.ServletResponse pServletResponse, Section section)
public static void checkCookies(AgreementConfig config, javax.servlet.http.HttpServletRequest servletrequest, AgreementRequest request)
public static boolean checkCookies(AgreementResponse response, javax.servlet.http.HttpServletResponse servletresponse)
public static void checkHeaders(AgreementConfig config, javax.servlet.http.HttpServletRequest servletrequest, AgreementRequest request)
public static boolean checkHeaders(AgreementResponse response, javax.servlet.http.HttpServletResponse servletresponse)
public static void checkRequestParameters(AgreementConfig config, javax.servlet.http.HttpServletRequest servletrequest, AgreementRequest request)
public static void checkRequestAttributes(AgreementConfig config, javax.servlet.http.HttpServletRequest servletrequest, AgreementRequest request)
public static boolean checkRequestAttributes(AgreementResponse response, javax.servlet.http.HttpServletRequest servletrequest)
public static void checkSessionAttributes(AgreementConfig config, javax.servlet.http.HttpSession session, AgreementRequest request)
public static boolean checkSessionAttributes(AgreementResponse response, javax.servlet.http.HttpServletRequest servletrequest)
public static void checkStatusCode(AgreementResponse response, javax.servlet.http.HttpServletResponse servletresponse)
public static boolean checkError(AgreementResponse response, javax.servlet.http.HttpServletResponse servletresponse)
public static void checkBasicAuthentication(AgreementConfig config, javax.servlet.http.HttpServletRequest servletrequest, AgreementRequest request)
protected static boolean checkForward(AgreementResponse response, javax.servlet.ServletRequest pServletRequest, javax.servlet.ServletResponse pServletResponse)
protected static boolean checkRedirect(AgreementResponse response, javax.servlet.http.HttpServletResponse servletresponse)
protected static boolean checkAuthentication(AgreementResponse response, javax.servlet.http.HttpServletResponse servletresponse)
© 1998- 2018 Stibo DX