Package org.pac4j.undertow.context
Class UndertowWebContext
java.lang.Object
org.pac4j.undertow.context.UndertowWebContext
- All Implemented Interfaces:
org.pac4j.core.context.WebContext
The webcontext implementation for Undertow.
- Since:
- 1.0.0
- Author:
- Jerome Leleu, Michael Remond, Igor Lobanov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResponseCookie(org.pac4j.core.context.Cookie cookie) io.undertow.server.HttpServerExchangegetPath()getRequestAttribute(String name) Collection<org.pac4j.core.context.Cookie>getRequestHeader(String name) getRequestParameter(String name) getResponseHeader(String name) intbooleanisSecure()voidsetRequestAttribute(String name, Object value) voidsetResponseContentType(String content) voidsetResponseHeader(String name, String value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.pac4j.core.context.WebContext
getProtocol, getQueryString, getRequestAttribute, getRequestContent, getRequestURL
-
Constructor Details
-
UndertowWebContext
public UndertowWebContext(io.undertow.server.HttpServerExchange exchange)
-
-
Method Details
-
getExchange
public io.undertow.server.HttpServerExchange getExchange() -
getRequestParameter
- Specified by:
getRequestParameterin interfaceorg.pac4j.core.context.WebContext
-
getRequestParameters
- Specified by:
getRequestParametersin interfaceorg.pac4j.core.context.WebContext
-
getRequestHeader
- Specified by:
getRequestHeaderin interfaceorg.pac4j.core.context.WebContext
-
getRequestMethod
- Specified by:
getRequestMethodin interfaceorg.pac4j.core.context.WebContext
-
getResponseHeader
- Specified by:
getResponseHeaderin interfaceorg.pac4j.core.context.WebContext
-
setResponseHeader
- Specified by:
setResponseHeaderin interfaceorg.pac4j.core.context.WebContext
-
getServerName
- Specified by:
getServerNamein interfaceorg.pac4j.core.context.WebContext
-
getServerPort
public int getServerPort()- Specified by:
getServerPortin interfaceorg.pac4j.core.context.WebContext
-
getScheme
- Specified by:
getSchemein interfaceorg.pac4j.core.context.WebContext
-
getFullRequestURL
- Specified by:
getFullRequestURLin interfaceorg.pac4j.core.context.WebContext
-
getRemoteAddr
- Specified by:
getRemoteAddrin interfaceorg.pac4j.core.context.WebContext
-
addResponseCookie
public void addResponseCookie(org.pac4j.core.context.Cookie cookie) - Specified by:
addResponseCookiein interfaceorg.pac4j.core.context.WebContext
-
setRequestAttribute
- Specified by:
setRequestAttributein interfaceorg.pac4j.core.context.WebContext
-
getPath
- Specified by:
getPathin interfaceorg.pac4j.core.context.WebContext
-
setResponseContentType
- Specified by:
setResponseContentTypein interfaceorg.pac4j.core.context.WebContext
-
getRequestCookies
- Specified by:
getRequestCookiesin interfaceorg.pac4j.core.context.WebContext
-
getRequestAttribute
- Specified by:
getRequestAttributein interfaceorg.pac4j.core.context.WebContext
-
isSecure
public boolean isSecure()- Specified by:
isSecurein interfaceorg.pac4j.core.context.WebContext
-