org.opensaml.ws.transport
Class OutputStreamOutTransportAdapter

java.lang.Object
  extended by org.opensaml.ws.transport.BaseTransport
      extended by org.opensaml.ws.transport.OutputStreamOutTransportAdapter
All Implemented Interfaces:
OutTransport, Transport

public class OutputStreamOutTransportAdapter
extends BaseTransport
implements OutTransport

Adapter that allows a raw OutputStream to be used as an OutTransport.


Constructor Summary
OutputStreamOutTransportAdapter(OutputStream stream)
          Constructor.
 
Method Summary
 OutputStream getOutgoingStream()
          Gets the outgoing data stream to the peer.
 void setAttribute(String name, Object value)
          Set an attribute value.
 void setCharacterEncoding(String encoding)
          Set the character encoding.
 
Methods inherited from class org.opensaml.ws.transport.BaseTransport
getAttribute, getCharacterEncoding, getLocalCredential, getPeerCredential, isAuthenticated, isConfidential, isIntegrityProtected, setAuthenticated, setConfidential, setIntegrityProtected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.ws.transport.Transport
getAttribute, getCharacterEncoding, getLocalCredential, getPeerCredential, isAuthenticated, isConfidential, isIntegrityProtected, setAuthenticated, setConfidential, setIntegrityProtected
 

Constructor Detail

OutputStreamOutTransportAdapter

public OutputStreamOutTransportAdapter(OutputStream stream)
Constructor.

Parameters:
stream - the output stream to adapt
Method Detail

getOutgoingStream

public OutputStream getOutgoingStream()
Gets the outgoing data stream to the peer.

Specified by:
getOutgoingStream in interface OutTransport
Returns:
outgoing data stream to the peer

setAttribute

public void setAttribute(String name,
                         Object value)
Set an attribute value.

Specified by:
setAttribute in interface OutTransport
Overrides:
setAttribute in class BaseTransport
Parameters:
name - attribute name
value - attribute value

setCharacterEncoding

public void setCharacterEncoding(String encoding)
Set the character encoding.

Specified by:
setCharacterEncoding in interface OutTransport
Overrides:
setCharacterEncoding in class BaseTransport
Parameters:
encoding - the character encoding


Copyright © 2006-2013 Internet2. All Rights Reserved.