public class HTTPPostEncoder extends BaseSAML1MessageEncoder
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TEMPLATE_ID
Default template ID.
|
private org.slf4j.Logger |
log
Class logger.
|
private org.apache.velocity.app.VelocityEngine |
velocityEngine
Velocity engine used to evaluate the template when performing POST encoding.
|
private String |
velocityTemplateId
ID of the velocity template used when performing POST encoding.
|
Constructor and Description |
---|
HTTPPostEncoder()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doDestroy() |
protected void |
doEncode() |
protected void |
doInitialize() |
String |
getBindingURI() |
org.apache.velocity.app.VelocityEngine |
getVelocityEngine()
Get the VelocityEngine instance.
|
String |
getVelocityTemplateId()
Get the Velocity template id.
|
protected void |
postEncode(org.opensaml.messaging.context.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
private final org.slf4j.Logger log
private org.apache.velocity.app.VelocityEngine velocityEngine
private String velocityTemplateId
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 org.opensaml.messaging.encoder.servlet.AbstractHttpServletResponseMessageEncoder<SAMLObject>
protected void doInitialize() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize
in class org.opensaml.messaging.encoder.servlet.AbstractHttpServletResponseMessageEncoder<SAMLObject>
net.shibboleth.utilities.java.support.component.ComponentInitializationException
protected void doEncode() throws org.opensaml.messaging.encoder.MessageEncodingException
doEncode
in class org.opensaml.messaging.encoder.AbstractMessageEncoder<SAMLObject>
org.opensaml.messaging.encoder.MessageEncodingException
protected void postEncode(org.opensaml.messaging.context.MessageContext<SAMLObject> messageContext, String endpointURL) throws org.opensaml.messaging.encoder.MessageEncodingException
messageContext
- current message contextendpointURL
- endpoint URL to encode message toorg.opensaml.messaging.encoder.MessageEncodingException
- thrown if there is a problem encoding the messageCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.