public class SparkWebContext extends Object implements org.pac4j.core.context.WebContext
Constructor and Description |
---|
SparkWebContext(spark.Request request,
spark.Response response) |
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 name) |
void |
setResponseHeader(String name,
String value) |
void |
setResponseStatus(int code) |
void |
setSessionAttribute(String name,
Object value) |
void |
writeResponseContent(String content) |
public SparkWebContext(spark.Request request, spark.Response response)
public String getRequestParameter(String name)
getRequestParameter
in interface org.pac4j.core.context.WebContext
public Map<String,String[]> getRequestParameters()
getRequestParameters
in interface org.pac4j.core.context.WebContext
public String getRequestHeader(String name)
getRequestHeader
in interface org.pac4j.core.context.WebContext
public void setSessionAttribute(String name, Object value)
setSessionAttribute
in interface org.pac4j.core.context.WebContext
public Object getSessionAttribute(String name)
getSessionAttribute
in interface org.pac4j.core.context.WebContext
public String getRequestMethod()
getRequestMethod
in interface org.pac4j.core.context.WebContext
public void writeResponseContent(String content)
writeResponseContent
in interface org.pac4j.core.context.WebContext
public void setResponseStatus(int code)
setResponseStatus
in interface org.pac4j.core.context.WebContext
public void setResponseHeader(String name, String value)
setResponseHeader
in interface org.pac4j.core.context.WebContext
public String getServerName()
getServerName
in interface org.pac4j.core.context.WebContext
public int getServerPort()
getServerPort
in interface org.pac4j.core.context.WebContext
public String getScheme()
getScheme
in interface org.pac4j.core.context.WebContext
public String getFullRequestURL()
getFullRequestURL
in interface org.pac4j.core.context.WebContext
Copyright © 2015. All rights reserved.