org.opensaml.saml2.binding.encoding
Class HTTPPostEncoderBuilder

java.lang.Object
  extended by org.opensaml.saml2.binding.encoding.HTTPPostEncoderBuilder
All Implemented Interfaces:
MessageEncoderBuilder<HTTPMessageEncoder>

public class HTTPPostEncoderBuilder
extends java.lang.Object
implements MessageEncoderBuilder<HTTPMessageEncoder>

Builder of HTTPPostEncoders.


Constructor Summary
HTTPPostEncoderBuilder(org.apache.velocity.app.VelocityEngine engine, java.lang.String templatePath)
          Constructor.
 
Method Summary
 HTTPMessageEncoder buildEncoder()
          Creates a new instance of the message encoder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPPostEncoderBuilder

public HTTPPostEncoderBuilder(org.apache.velocity.app.VelocityEngine engine,
                              java.lang.String templatePath)
                       throws java.io.IOException
Constructor. Creates a builder that performs a FORM artifact encoding.

Parameters:
engine - velocity engine used during POST encoding
templatePath - classpath location of the POST encoding template
Throws:
java.io.IOException - thrown if the template can not be read from the classpath
Method Detail

buildEncoder

public HTTPMessageEncoder buildEncoder()
Creates a new instance of the message encoder.

Specified by:
buildEncoder in interface MessageEncoderBuilder<HTTPMessageEncoder>
Returns:
new instance of the message encoder