org.opensaml.ws.soap.client
Class HTTPSOAPTransportFactory

java.lang.Object
  extended by org.opensaml.ws.soap.client.HTTPSOAPTransportFactory
All Implemented Interfaces:
ClientTransportFactory

public class HTTPSOAPTransportFactory
extends Object
implements ClientTransportFactory

HTTP-based SOAP transport factory.


Constructor Summary
HTTPSOAPTransportFactory(MessageEncoder encoder, MessageDecoder decoder)
          Constructor.
 
Method Summary
 ClientTransport createTransport()
          Creates a new transport instance.
 int getConnectionTimeout()
          Gets the connection timeout in milliseconds.
 HTTPTransport.HTTP_VERSION getHttpVersion()
          Gets the HTTP version used when connecting to peers.
 MessageDecoder getMessageDecoder()
          Gets the decoder used to decode messages from the inbound transport.
 MessageEncoder getMessageEncoder()
          Gets the encoder used to encode messages to the outbound transport.
 int getSocketTimeout()
          Gets the socket connection timeout in milliseconds.
protected  void initializeHttpClient()
          Initializes the HttpClient that will be used by the created HTTPSOAPTransport built by this factory.
 void setConnectionTimeout(int timeout)
          Sets the connection timeout in milliseconds.
 void setHttpVersion(HTTPTransport.HTTP_VERSION version)
          Sets the HTTP version used when connecting to peers.
 void setSocketTimeout(int timeout)
          Sets the socket connection timeout in milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPSOAPTransportFactory

public HTTPSOAPTransportFactory(MessageEncoder encoder,
                                MessageDecoder decoder)
Constructor.

Parameters:
encoder - encoder used to encode messages onto the outgoing transport
decoder - decoder used to decode messages from inbound transport
Method Detail

getConnectionTimeout

public int getConnectionTimeout()
Gets the connection timeout in milliseconds.

Returns:
connection timeout in milliseconds

setConnectionTimeout

public void setConnectionTimeout(int timeout)
Sets the connection timeout in milliseconds.

Parameters:
timeout - connection timeout in milliseconds

getHttpVersion

public HTTPTransport.HTTP_VERSION getHttpVersion()
Gets the HTTP version used when connecting to peers.

Returns:
HTTP version used when connecting to peers

setHttpVersion

public void setHttpVersion(HTTPTransport.HTTP_VERSION version)
Sets the HTTP version used when connecting to peers.

Parameters:
version - HTTP version used when connecting to peers

getSocketTimeout

public int getSocketTimeout()
Gets the socket connection timeout in milliseconds.

Returns:
socket connection timeout in milliseconds

setSocketTimeout

public void setSocketTimeout(int timeout)
Sets the socket connection timeout in milliseconds.

Parameters:
timeout - socket connection timeout in milliseconds

getMessageDecoder

public MessageDecoder getMessageDecoder()
Gets the decoder used to decode messages from the inbound transport.

Returns:
decoder used to decode messages from the inbound transport

getMessageEncoder

public MessageEncoder getMessageEncoder()
Gets the encoder used to encode messages to the outbound transport.

Returns:
encoder used to encode messages to the outbound transport

createTransport

public ClientTransport createTransport()
Creates a new transport instance.

Specified by:
createTransport in interface ClientTransportFactory
Returns:
the newly created transport

initializeHttpClient

protected void initializeHttpClient()
Initializes the HttpClient that will be used by the created HTTPSOAPTransport built by this factory.



Copyright © 2006-2008 Internet2. All Rights Reserved.