Package org.pac4j.saml.transport
Class DefaultPac4jSAMLResponse
java.lang.Object
org.pac4j.saml.transport.DefaultPac4jSAMLResponse
- All Implemented Interfaces:
Pac4jSAMLResponse
Empty response adapter containing a
ByteArrayOutputStream
in order opensaml can write
the saml messages. The content can be retrieved as a String from getOutgoingContent().- Since:
- 1.8
- Author:
- Misagh Moayyed
-
Constructor Summary
ConstructorDescriptionDefaultPac4jSAMLResponse
(org.pac4j.core.context.WebContext response) Constructs a response adaptor wrapping the given response. -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Gets outgoing content.void
init()
Initialize the response handling.void
setContentType
(String type) Sets content type.void
setNoCacheHeaders.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.pac4j.saml.transport.Pac4jSAMLResponse
getOutputStreamWriter, getRedirectUrl, getWebContext, setRedirectUrl
-
Constructor Details
-
DefaultPac4jSAMLResponse
public DefaultPac4jSAMLResponse(org.pac4j.core.context.WebContext response) Constructs a response adaptor wrapping the given response.- Parameters:
response
- the response- Throws:
IllegalArgumentException
- if the response is null
-
-
Method Details
-
getOutgoingContent
Gets outgoing content.- Specified by:
getOutgoingContent
in interfacePac4jSAMLResponse
- Returns:
- the outgoing content
-
init
public void init()Initialize the response handling.- Specified by:
init
in interfacePac4jSAMLResponse
-
setNoCacheHeaders
public void setNoCacheHeaders()setNoCacheHeaders.
-
setContentType
Sets content type.- Specified by:
setContentType
in interfacePac4jSAMLResponse
- Parameters:
type
- the type
-