Package ratpack.pac4j.internal
Class RatpackWebContext
java.lang.Object
ratpack.pac4j.internal.RatpackWebContext
- All Implemented Interfaces:
org.pac4j.core.context.WebContext
-
Constructor Summary
ConstructorDescriptionRatpackWebContext
(ratpack.handling.Context ctx, ratpack.http.TypedData body, ratpack.session.SessionData session) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResponseCookie
(org.pac4j.core.context.Cookie cookie) org.pac4j.core.context.CallContext
static ratpack.exec.Promise<RatpackWebContext>
from
(ratpack.handling.Context ctx, boolean bodyBacked) ratpack.handling.Context
Get the ratpack context.getPath()
org.pac4j.core.profile.ProfileManager
getRequestAttribute
(String name) Collection<org.pac4j.core.context.Cookie>
getRequestHeader
(String name) getRequestParameter
(String name) int
org.pac4j.core.context.session.SessionStore
boolean
isSecure()
void
sendResponse
(org.pac4j.core.exception.http.HttpAction action) void
sendStatusCode
(org.pac4j.core.exception.http.HttpAction action) void
setRequestAttribute
(String name, Object value) void
setResponseContentType
(String content) void
setResponseHeader
(String name, String value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.pac4j.core.context.WebContext
getQueryString, getRequestAttribute
-
Constructor Details
-
RatpackWebContext
public RatpackWebContext(ratpack.handling.Context ctx, ratpack.http.TypedData body, ratpack.session.SessionData session)
-
-
Method Details
-
getContext
public ratpack.handling.Context getContext()Get the ratpack context.- Returns:
- the ratpack context
-
from
public static ratpack.exec.Promise<RatpackWebContext> from(ratpack.handling.Context ctx, boolean bodyBacked) -
callContext
public org.pac4j.core.context.CallContext callContext() -
getSessionStore
public org.pac4j.core.context.session.SessionStore getSessionStore() -
getProfileManager
public org.pac4j.core.profile.ProfileManager getProfileManager() -
getRequestParameter
- Specified by:
getRequestParameter
in interfaceorg.pac4j.core.context.WebContext
-
getRequestParameters
- Specified by:
getRequestParameters
in interfaceorg.pac4j.core.context.WebContext
-
getRequestAttribute
- Specified by:
getRequestAttribute
in interfaceorg.pac4j.core.context.WebContext
-
setRequestAttribute
- Specified by:
setRequestAttribute
in interfaceorg.pac4j.core.context.WebContext
-
getRequestHeader
- Specified by:
getRequestHeader
in interfaceorg.pac4j.core.context.WebContext
-
getRequestMethod
- Specified by:
getRequestMethod
in interfaceorg.pac4j.core.context.WebContext
-
getRemoteAddr
- Specified by:
getRemoteAddr
in interfaceorg.pac4j.core.context.WebContext
-
setResponseHeader
- Specified by:
setResponseHeader
in interfaceorg.pac4j.core.context.WebContext
-
getResponseHeader
- Specified by:
getResponseHeader
in interfaceorg.pac4j.core.context.WebContext
-
setResponseContentType
- Specified by:
setResponseContentType
in interfaceorg.pac4j.core.context.WebContext
-
getServerName
- Specified by:
getServerName
in interfaceorg.pac4j.core.context.WebContext
-
getServerPort
public int getServerPort()- Specified by:
getServerPort
in interfaceorg.pac4j.core.context.WebContext
-
getScheme
- Specified by:
getScheme
in interfaceorg.pac4j.core.context.WebContext
-
isSecure
public boolean isSecure()- Specified by:
isSecure
in interfaceorg.pac4j.core.context.WebContext
-
getFullRequestURL
- Specified by:
getFullRequestURL
in interfaceorg.pac4j.core.context.WebContext
-
getRequestURL
- Specified by:
getRequestURL
in interfaceorg.pac4j.core.context.WebContext
-
sendResponse
public void sendResponse(org.pac4j.core.exception.http.HttpAction action) -
sendStatusCode
public void sendStatusCode(org.pac4j.core.exception.http.HttpAction action) -
getRequestCookies
- Specified by:
getRequestCookies
in interfaceorg.pac4j.core.context.WebContext
-
addResponseCookie
public void addResponseCookie(org.pac4j.core.context.Cookie cookie) - Specified by:
addResponseCookie
in interfaceorg.pac4j.core.context.WebContext
-
getPath
- Specified by:
getPath
in interfaceorg.pac4j.core.context.WebContext
-
getRequestContent
- Specified by:
getRequestContent
in interfaceorg.pac4j.core.context.WebContext
-
getProtocol
- Specified by:
getProtocol
in interfaceorg.pac4j.core.context.WebContext
-