public class ScalaWebContext<C> extends Object implements org.pac4j.core.context.WebContext
| Constructor and Description |
|---|
ScalaWebContext(play.api.mvc.Request<C> request,
play.api.mvc.Session session) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFullRequestURL() |
String |
getRequestHeader(String name) |
String |
getRequestMethod() |
String |
getRequestParameter(String name) |
Map<String,String[]> |
getRequestParameters() |
String |
getScheme() |
String |
getServerName() |
int |
getServerPort() |
Object |
getSessionAttribute(String key) |
void |
setResponseHeader(String key,
String value) |
void |
setResponseStatus(int code) |
void |
setSessionAttribute(String key,
Object value) |
void |
writeResponseContent(String content) |
public ScalaWebContext(play.api.mvc.Request<C> request, play.api.mvc.Session session)
public String getRequestHeader(String name)
getRequestHeader in interface org.pac4j.core.context.WebContextpublic String getRequestMethod()
getRequestMethod in interface org.pac4j.core.context.WebContextpublic String getRequestParameter(String name)
getRequestParameter in interface org.pac4j.core.context.WebContextpublic Map<String,String[]> getRequestParameters()
getRequestParameters in interface org.pac4j.core.context.WebContextpublic Object getSessionAttribute(String key)
getSessionAttribute in interface org.pac4j.core.context.WebContextpublic void setResponseStatus(int code)
setResponseStatus in interface org.pac4j.core.context.WebContextpublic void setSessionAttribute(String key, Object value)
setSessionAttribute in interface org.pac4j.core.context.WebContextpublic void writeResponseContent(String content)
writeResponseContent in interface org.pac4j.core.context.WebContextpublic void setResponseHeader(String key, 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.WebContextCopyright © 2015. All Rights Reserved.