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
ConstructorsConstructorDescriptionDefaultPac4jSAMLResponse(org.pac4j.core.context.WebContext response) Constructs a response adaptor wrapping the given response. -
Method Summary
Modifier and TypeMethodDescriptionfinal StringGets outgoing content.voidinit()Initialize the response handling.voidsetContentType(String type) Sets content type.voidsetNoCacheHeaders.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getOutgoingContentin interfacePac4jSAMLResponse- Returns:
- the outgoing content
-
init
public void init()Initialize the response handling.- Specified by:
initin interfacePac4jSAMLResponse
-
setNoCacheHeaders
public void setNoCacheHeaders()setNoCacheHeaders.
-
setContentType
Sets content type.- Specified by:
setContentTypein interfacePac4jSAMLResponse- Parameters:
type- the type
-