public class AuthContext extends Object implements org.pac4j.core.context.WebContext
| Constructor and Description |
|---|
AuthContext(Request req,
Response rsp) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResponseCookie(org.pac4j.core.context.Cookie cookie) |
String |
getFullRequestURL() |
String |
getPath() |
String |
getRemoteAddr() |
Object |
getRequestAttribute(String name) |
Collection<org.pac4j.core.context.Cookie> |
getRequestCookies() |
String |
getRequestHeader(String name) |
String |
getRequestMethod() |
String |
getRequestParameter(String name) |
Map<String,String[]> |
getRequestParameters() |
String |
getScheme() |
String |
getServerName() |
int |
getServerPort() |
Object |
getSessionAttribute(String name) |
Object |
getSessionIdentifier() |
boolean |
isSecure() |
void |
setRequestAttribute(String name,
Object value) |
void |
setResponseCharacterEncoding(String encoding) |
void |
setResponseContentType(String content) |
void |
setResponseHeader(String name,
String value) |
void |
setResponseStatus(int code) |
void |
setSessionAttribute(String name,
Object value) |
String |
toString() |
void |
writeResponseContent(String content) |
public String getRequestParameter(String name)
getRequestParameter in interface org.pac4j.core.context.WebContextpublic Map<String,String[]> getRequestParameters()
getRequestParameters in interface org.pac4j.core.context.WebContextpublic String getRequestHeader(String name)
getRequestHeader in interface org.pac4j.core.context.WebContextpublic void setSessionAttribute(String name, Object value)
setSessionAttribute in interface org.pac4j.core.context.WebContextpublic Object getSessionAttribute(String name)
getSessionAttribute in interface org.pac4j.core.context.WebContextpublic String getRequestMethod()
getRequestMethod in interface org.pac4j.core.context.WebContextpublic void writeResponseContent(String content)
writeResponseContent in interface org.pac4j.core.context.WebContextpublic void setResponseStatus(int code)
setResponseStatus in interface org.pac4j.core.context.WebContextpublic void setResponseHeader(String name, String value)
setResponseHeader in interface org.pac4j.core.context.WebContextpublic String getServerName()
getServerName in interface org.pac4j.core.context.WebContextpublic int getServerPort()
getServerPort in interface org.pac4j.core.context.WebContextpublic String getScheme()
getScheme in interface org.pac4j.core.context.WebContextpublic String getFullRequestURL()
getFullRequestURL in interface org.pac4j.core.context.WebContextpublic Object getRequestAttribute(String name)
getRequestAttribute in interface org.pac4j.core.context.WebContextpublic void setRequestAttribute(String name, Object value)
setRequestAttribute in interface org.pac4j.core.context.WebContextpublic Object getSessionIdentifier()
getSessionIdentifier in interface org.pac4j.core.context.WebContextpublic String getRemoteAddr()
getRemoteAddr in interface org.pac4j.core.context.WebContextpublic void setResponseCharacterEncoding(String encoding)
setResponseCharacterEncoding in interface org.pac4j.core.context.WebContextpublic void setResponseContentType(String content)
setResponseContentType in interface org.pac4j.core.context.WebContextpublic String getPath()
getPath in interface org.pac4j.core.context.WebContextpublic boolean isSecure()
isSecure in interface org.pac4j.core.context.WebContextpublic Collection<org.pac4j.core.context.Cookie> getRequestCookies()
getRequestCookies in interface org.pac4j.core.context.WebContextpublic void addResponseCookie(org.pac4j.core.context.Cookie cookie)
addResponseCookie in interface org.pac4j.core.context.WebContextCopyright © 2016. All rights reserved.