Class ServerWebExchangeContext
java.lang.Object
org.apache.syncope.sra.security.pac4j.ServerWebExchangeContext
- All Implemented Interfaces:
org.pac4j.core.context.WebContext
-
Constructor Summary
ConstructorDescriptionServerWebExchangeContext
(ServerWebExchange exchange) Build a WebFlux context from the current exchange. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResponseCookie
(org.pac4j.core.context.Cookie cookie) Return the native exchange.getPath()
getRequestAttribute
(String name) Collection
<org.pac4j.core.context.Cookie> getRequestHeader
(String name) getRequestParameter
(String name) int
boolean
isSecure()
setForm
(MultiValueMap<String, String> form) 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
getRequestAttribute, getRequestURL
-
Constructor Details
-
ServerWebExchangeContext
Build a WebFlux context from the current exchange.- Parameters:
exchange
- the current exchange
-
-
Method Details
-
getRequestAttribute
- Specified by:
getRequestAttribute
in interfaceorg.pac4j.core.context.WebContext
-
setRequestAttribute
- Specified by:
setRequestAttribute
in interfaceorg.pac4j.core.context.WebContext
-
getRequestParameter
- Specified by:
getRequestParameter
in interfaceorg.pac4j.core.context.WebContext
-
setForm
-
getQueryString
- Specified by:
getQueryString
in interfaceorg.pac4j.core.context.WebContext
-
getRequestParameters
- Specified by:
getRequestParameters
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
-
getNative
Return the native exchange.- Returns:
- the native exchange
-
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
-
getProtocol
- Specified by:
getProtocol
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
-
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
-
setBody
-
getRequestContent
- Specified by:
getRequestContent
in interfaceorg.pac4j.core.context.WebContext
-