org.opensaml.common.binding.decoding.impl
Class AbstractMessageDecoderBuilder<MessageDecoderType extends AbstractMessageDecoder>

java.lang.Object
  extended by org.opensaml.common.binding.decoding.impl.AbstractMessageDecoderBuilder<MessageDecoderType>
Type Parameters:
MessageDecoderType - type of decoder created by this builder
All Implemented Interfaces:
MessageDecoderBuilder<MessageDecoderType>
Direct Known Subclasses:
HTTPPostDecoderBuilder, HTTPPostDecoderBuilder, HTTPRedirectDeflateDecoderBuilder, HTTPSOAP11DecoderBuilder, HTTPSOAP11DecoderBuilder

public abstract class AbstractMessageDecoderBuilder<MessageDecoderType extends AbstractMessageDecoder>
extends java.lang.Object
implements MessageDecoderBuilder<MessageDecoderType>

Base class for message decoder builders.


Constructor Summary
AbstractMessageDecoderBuilder()
           
 
Method Summary
 MessageDecoderType buildDecoder()
          Creates a new instance of the message decoder.
protected abstract  MessageDecoderType doBuildEncoder()
          Builds the message decoder.
 MetadataProvider getMetadataProvider()
          Gets the metadata provider used to lookup information about the issuer.
 ParserPool getParser()
          Gets the parser pool used to parse messages.
 SecurityPolicyFactory getPolicyFactory()
          Gets the policy factory used to create security policy instances.
 TrustEngine getTrustEngine()
          Gets the trust engine used to evaluate message trustworthiness.
 void setMetadataProvider(MetadataProvider provider)
          Sets the metadata provider used to lookup information about the issuer.
 void setParser(ParserPool pool)
          Sets the parser pool used to parse messages.
 void setPolicyFactory(SecurityPolicyFactory factory)
          Sets the policy factory used to create security policy instances.
 void setTrustEngine(TrustEngine engine)
          Sets the trust engine used to evaluate message trustworthiness.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMessageDecoderBuilder

public AbstractMessageDecoderBuilder()
Method Detail

getMetadataProvider

public MetadataProvider getMetadataProvider()
Gets the metadata provider used to lookup information about the issuer.

Returns:
metadata provider used to lookup information about the issuer

setMetadataProvider

public void setMetadataProvider(MetadataProvider provider)
Sets the metadata provider used to lookup information about the issuer.

Parameters:
provider - metadata provider used to lookup information about the issuer

getParser

public ParserPool getParser()
Gets the parser pool used to parse messages.

Returns:
parser pool used to parse messages

setParser

public void setParser(ParserPool pool)
Sets the parser pool used to parse messages.

Parameters:
pool - parser pool used to parse messages

getPolicyFactory

public SecurityPolicyFactory getPolicyFactory()
Gets the policy factory used to create security policy instances.

Returns:
policy factory used to create security policy instances

setPolicyFactory

public void setPolicyFactory(SecurityPolicyFactory factory)
Sets the policy factory used to create security policy instances.

Parameters:
factory - policy factory used to create security policy instances

getTrustEngine

public TrustEngine getTrustEngine()
Gets the trust engine used to evaluate message trustworthiness.

Returns:
trust engine used to evaluate message trustworthiness

setTrustEngine

public void setTrustEngine(TrustEngine engine)
Sets the trust engine used to evaluate message trustworthiness.

Parameters:
engine - trust engine used to evaluate message trustworthiness

buildDecoder

public MessageDecoderType buildDecoder()
Creates a new instance of the message decoder.

Specified by:
buildDecoder in interface MessageDecoderBuilder<MessageDecoderType extends AbstractMessageDecoder>
Returns:
new instance of the message decoder

doBuildEncoder

protected abstract MessageDecoderType doBuildEncoder()
Builds the message decoder.

Returns:
the message decoder