Package org.pac4j.jee.context
Class JEEContext
java.lang.Object
org.pac4j.jee.context.JEEContext
- All Implemented Interfaces:
org.pac4j.core.context.WebContext
Deprecated.
This implementation uses the JEE
HttpServletRequest and HttpServletResponse.
You should upgrade to the new pac4j-jakartaee module.- Since:
- 1.4.0
- Author:
- Jerome Leleu
-
Constructor Summary
ConstructorsConstructorDescriptionJEEContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.Build a JEE context from the current HTTP request and response. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResponseCookie(org.pac4j.core.context.Cookie cookie) Deprecated.Deprecated.javax.servlet.http.HttpServletRequestDeprecated.Return the native HTTP request.javax.servlet.http.HttpServletResponseDeprecated.Return the native HTTP response.getPath()Deprecated.This is not implemented usingHttpServletRequest.getServletPath()orHttpServletRequest.getPathInfo()because they both have strange behaviours in different contexts (inside servlets, inside filters, various container implementation, etc)Deprecated.Deprecated.Deprecated.getRequestAttribute(String name) Deprecated.Deprecated.Collection<org.pac4j.core.context.Cookie> Deprecated.getRequestHeader(String name) Deprecated.Deprecated.getRequestParameter(String name) Deprecated.Deprecated.Deprecated.getResponseHeader(String name) Deprecated.Deprecated.Deprecated.intDeprecated.booleanisSecure()Deprecated.voidsetRequestAttribute(String name, Object value) Deprecated.voidsetResponseContentType(String content) Deprecated.voidsetResponseHeader(String name, String value) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.pac4j.core.context.WebContext
getRequestAttribute
-
Constructor Details
-
JEEContext
public JEEContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Deprecated.Build a JEE context from the current HTTP request and response.- Parameters:
request- the current requestresponse- the current response
-
-
Method Details
-
getRequestParameter
Deprecated.- Specified by:
getRequestParameterin interfaceorg.pac4j.core.context.WebContext
-
getRequestAttribute
Deprecated.- Specified by:
getRequestAttributein interfaceorg.pac4j.core.context.WebContext
-
setRequestAttribute
Deprecated.- Specified by:
setRequestAttributein interfaceorg.pac4j.core.context.WebContext
-
getRequestParameters
Deprecated.- Specified by:
getRequestParametersin interfaceorg.pac4j.core.context.WebContext
-
getRequestHeader
Deprecated.- Specified by:
getRequestHeaderin interfaceorg.pac4j.core.context.WebContext
-
getRequestMethod
Deprecated.- Specified by:
getRequestMethodin interfaceorg.pac4j.core.context.WebContext
-
getRemoteAddr
Deprecated.- Specified by:
getRemoteAddrin interfaceorg.pac4j.core.context.WebContext
-
getNativeRequest
public javax.servlet.http.HttpServletRequest getNativeRequest()Deprecated.Return the native HTTP request.- Returns:
- the native HTTP request
-
getNativeResponse
public javax.servlet.http.HttpServletResponse getNativeResponse()Deprecated.Return the native HTTP response.- Returns:
- the native HTTP response
-
setResponseHeader
Deprecated.- Specified by:
setResponseHeaderin interfaceorg.pac4j.core.context.WebContext
-
getResponseHeader
Deprecated.- Specified by:
getResponseHeaderin interfaceorg.pac4j.core.context.WebContext
-
setResponseContentType
Deprecated.- Specified by:
setResponseContentTypein interfaceorg.pac4j.core.context.WebContext
-
getServerName
Deprecated.- Specified by:
getServerNamein interfaceorg.pac4j.core.context.WebContext
-
getServerPort
public int getServerPort()Deprecated.- Specified by:
getServerPortin interfaceorg.pac4j.core.context.WebContext
-
getScheme
Deprecated.- Specified by:
getSchemein interfaceorg.pac4j.core.context.WebContext
-
isSecure
public boolean isSecure()Deprecated.- Specified by:
isSecurein interfaceorg.pac4j.core.context.WebContext
-
getRequestURL
Deprecated.- Specified by:
getRequestURLin interfaceorg.pac4j.core.context.WebContext
-
getFullRequestURL
Deprecated.- Specified by:
getFullRequestURLin interfaceorg.pac4j.core.context.WebContext
-
getRequestCookies
Deprecated.- Specified by:
getRequestCookiesin interfaceorg.pac4j.core.context.WebContext
-
addResponseCookie
public void addResponseCookie(org.pac4j.core.context.Cookie cookie) Deprecated.- Specified by:
addResponseCookiein interfaceorg.pac4j.core.context.WebContext
-
getPath
Deprecated.This is not implemented usingHttpServletRequest.getServletPath()orHttpServletRequest.getPathInfo()because they both have strange behaviours in different contexts (inside servlets, inside filters, various container implementation, etc)- Specified by:
getPathin interfaceorg.pac4j.core.context.WebContext
-
getRequestContent
Deprecated.- Specified by:
getRequestContentin interfaceorg.pac4j.core.context.WebContext
-
getProtocol
Deprecated.- Specified by:
getProtocolin interfaceorg.pac4j.core.context.WebContext
-
getQueryString
Deprecated.- Specified by:
getQueryStringin interfaceorg.pac4j.core.context.WebContext
-