Package org.pac4j.sparkjava
Class SparkWebContext
- java.lang.Object
-
- org.pac4j.core.context.JEEContext
-
- org.pac4j.sparkjava.SparkWebContext
-
- All Implemented Interfaces:
org.pac4j.core.context.WebContext
public class SparkWebContext extends org.pac4j.core.context.JEEContext
Web context specific to Sparkjava.- Since:
- 1.0.0
- Author:
- Jerome Leleu
-
-
Constructor Summary
Constructors Constructor Description SparkWebContext(spark.Request request, spark.Response response)
SparkWebContext(spark.Request request, spark.Response response, org.pac4j.core.context.session.SessionStore sessionStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPath()
spark.Request
getSparkRequest()
spark.Response
getSparkResponse()
-
Methods inherited from class org.pac4j.core.context.JEEContext
addResponseCookie, getFullRequestURL, getNativeRequest, getNativeResponse, getProtocol, getRemoteAddr, getRequestAttribute, getRequestContent, getRequestCookies, getRequestHeader, getRequestMethod, getRequestParameter, getRequestParameters, getScheme, getServerName, getServerPort, getSessionStore, isSecure, setRequestAttribute, setResponseContentType, setResponseHeader
-
-
-
-
Method Detail
-
getSparkResponse
public spark.Response getSparkResponse()
-
getSparkRequest
public spark.Request getSparkRequest()
-
getPath
public String getPath()
- Specified by:
getPath
in interfaceorg.pac4j.core.context.WebContext
- Overrides:
getPath
in classorg.pac4j.core.context.JEEContext
-
-