public class HTTPPostEncoder extends BaseSAML1MessageEncoder
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TEMPLATE_ID
Default template ID.
|
Constructor and Description |
---|
HTTPPostEncoder()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doDestroy() |
protected void |
doEncode()
Performs the encoding logic.
|
protected void |
doInitialize() |
String |
getBindingURI()
Gets the SAML binding URI supported by this encoder.
|
org.apache.velocity.app.VelocityEngine |
getVelocityEngine()
Get the VelocityEngine instance.
|
String |
getVelocityTemplateId()
Get the Velocity template id.
|
protected void |
postEncode(MessageContext<SAMLObject> messageContext,
String endpointURL)
Base64 and POST encodes the outbound message and writes it to the outbound transport.
|
void |
setVelocityEngine(org.apache.velocity.app.VelocityEngine newVelocityEngine)
Set the VelocityEngine instance.
|
void |
setVelocityTemplateId(String newVelocityTemplateId)
Set the Velocity template id.
|
getEndpointURL
encode, getMessageToLog, logEncodedMessage, marshallMessage
getHttpServletResponse, setHttpServletResponse
getMessageContext, prepareContext, setMessageContext
destroy, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encode, prepareContext, setMessageContext
public static final String DEFAULT_TEMPLATE_ID
public String getBindingURI()
public org.apache.velocity.app.VelocityEngine getVelocityEngine()
public void setVelocityEngine(org.apache.velocity.app.VelocityEngine newVelocityEngine)
newVelocityEngine
- the new VelocityEngine instanepublic String getVelocityTemplateId()
Defaults to DEFAULT_TEMPLATE_ID
.
public void setVelocityTemplateId(String newVelocityTemplateId)
Defaults to DEFAULT_TEMPLATE_ID
.
newVelocityTemplateId
- the new Velocity template idprotected void doDestroy()
doDestroy
in class AbstractHttpServletResponseMessageEncoder<SAMLObject>
protected void doInitialize() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize
in class AbstractHttpServletResponseMessageEncoder<SAMLObject>
net.shibboleth.utilities.java.support.component.ComponentInitializationException
protected void doEncode() throws MessageEncodingException
doEncode
in class AbstractMessageEncoder<SAMLObject>
MessageEncodingException
- thrown if there is a problem encoding the messageprotected void postEncode(MessageContext<SAMLObject> messageContext, String endpointURL) throws MessageEncodingException
messageContext
- current message contextendpointURL
- endpoint URL to encode message toMessageEncodingException
- thrown if there is a problem encoding the messageCopyright © 2017. All rights reserved.