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 TypeMethodDescriptionvoid
addResponseCookie
(org.pac4j.core.context.Cookie cookie) Deprecated.Deprecated.javax.servlet.http.HttpServletRequest
Deprecated.Return the native HTTP request.javax.servlet.http.HttpServletResponse
Deprecated.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.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.int
Deprecated.boolean
isSecure()
Deprecated.void
setRequestAttribute
(String name, Object value) Deprecated.void
setResponseContentType
(String content) Deprecated.void
setResponseHeader
(String name, String value) Deprecated.
-
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:
getRequestParameter
in interfaceorg.pac4j.core.context.WebContext
-
getRequestAttribute
Deprecated.- Specified by:
getRequestAttribute
in interfaceorg.pac4j.core.context.WebContext
-
setRequestAttribute
Deprecated.- Specified by:
setRequestAttribute
in interfaceorg.pac4j.core.context.WebContext
-
getRequestParameters
Deprecated.- Specified by:
getRequestParameters
in interfaceorg.pac4j.core.context.WebContext
-
getRequestHeader
Deprecated.- Specified by:
getRequestHeader
in interfaceorg.pac4j.core.context.WebContext
-
getRequestMethod
Deprecated.- Specified by:
getRequestMethod
in interfaceorg.pac4j.core.context.WebContext
-
getRemoteAddr
Deprecated.- Specified by:
getRemoteAddr
in 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:
setResponseHeader
in interfaceorg.pac4j.core.context.WebContext
-
getResponseHeader
Deprecated.- Specified by:
getResponseHeader
in interfaceorg.pac4j.core.context.WebContext
-
setResponseContentType
Deprecated.- Specified by:
setResponseContentType
in interfaceorg.pac4j.core.context.WebContext
-
getServerName
Deprecated.- Specified by:
getServerName
in interfaceorg.pac4j.core.context.WebContext
-
getServerPort
public int getServerPort()Deprecated.- Specified by:
getServerPort
in interfaceorg.pac4j.core.context.WebContext
-
getScheme
Deprecated.- Specified by:
getScheme
in interfaceorg.pac4j.core.context.WebContext
-
isSecure
public boolean isSecure()Deprecated.- Specified by:
isSecure
in interfaceorg.pac4j.core.context.WebContext
-
getRequestURL
Deprecated.- Specified by:
getRequestURL
in interfaceorg.pac4j.core.context.WebContext
-
getFullRequestURL
Deprecated.- Specified by:
getFullRequestURL
in interfaceorg.pac4j.core.context.WebContext
-
getRequestCookies
Deprecated.- Specified by:
getRequestCookies
in interfaceorg.pac4j.core.context.WebContext
-
addResponseCookie
public void addResponseCookie(org.pac4j.core.context.Cookie cookie) Deprecated.- Specified by:
addResponseCookie
in 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:
getPath
in interfaceorg.pac4j.core.context.WebContext
-
getRequestContent
Deprecated.- Specified by:
getRequestContent
in interfaceorg.pac4j.core.context.WebContext
-
getProtocol
Deprecated.- Specified by:
getProtocol
in interfaceorg.pac4j.core.context.WebContext
-