public class DefaultPac4jSAMLResponse extends java.lang.Object implements Pac4jSAMLResponse
ByteArrayOutputStream
in order opensaml can write
the saml messages. The content can be retrieved as a String from getOutgoingContent().Constructor and Description |
---|
DefaultPac4jSAMLResponse(WebContext response)
Constructs a response adaptor wrapping the given response.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOutgoingContent()
Gets outgoing content.
|
java.io.OutputStreamWriter |
getOutputStreamWriter()
Gets output stream writer.
|
java.lang.String |
getRedirectUrl()
Gets redirect url.
|
WebContext |
getWebContext()
Gets web context.
|
void |
init()
Initialize the response handling.
|
void |
setContentType(java.lang.String type)
Sets content type.
|
void |
setNoCacheHeaders() |
void |
setRedirectUrl(java.lang.String redirectUrl)
Sets redirect url.
|
public DefaultPac4jSAMLResponse(WebContext response)
response
- the responsejava.lang.IllegalArgumentException
- if the response is nullpublic final java.lang.String getOutgoingContent()
Pac4jSAMLResponse
getOutgoingContent
in interface Pac4jSAMLResponse
public WebContext getWebContext()
Pac4jSAMLResponse
getWebContext
in interface Pac4jSAMLResponse
public void init()
Pac4jSAMLResponse
init
in interface Pac4jSAMLResponse
public java.io.OutputStreamWriter getOutputStreamWriter()
Pac4jSAMLResponse
getOutputStreamWriter
in interface Pac4jSAMLResponse
public void setNoCacheHeaders()
public void setContentType(java.lang.String type)
Pac4jSAMLResponse
setContentType
in interface Pac4jSAMLResponse
type
- the typepublic final void setRedirectUrl(java.lang.String redirectUrl)
Pac4jSAMLResponse
setRedirectUrl
in interface Pac4jSAMLResponse
redirectUrl
- the urlpublic java.lang.String getRedirectUrl()
Pac4jSAMLResponse
getRedirectUrl
in interface Pac4jSAMLResponse
Copyright © 2018. All Rights Reserved.