oracle.stellent.ridc.protocol.intradoc.socket
Class SocketConnection

java.lang.Object
  extended by oracle.stellent.ridc.protocol.Connection
      extended by oracle.stellent.ridc.protocol.intradoc.socket.SocketConnection
Direct Known Subclasses:
SSLSocketConnection

public class SocketConnection
extends Connection

Represents a socket connection to the Content Server


Constructor Summary
SocketConnection(IntradocClientConfig config)
           
 
Method Summary
 void close()
          Close this socket connection
 void connect()
          Connect this socket to the configured destination
protected  java.net.Socket createSocket()
          Create the socket to the configured host
 IntradocClientConfig getConfig()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 boolean isConnected()
           
 
Methods inherited from class oracle.stellent.ridc.protocol.Connection
reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketConnection

public SocketConnection(IntradocClientConfig config)
Method Detail

getConfig

public IntradocClientConfig getConfig()

connect

public void connect()
             throws ProtocolException
Connect this socket to the configured destination

Throws:
ProtocolException - if an error occurs

close

public void close()
Close this socket connection


getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Returns:
the input stream for this socket
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Returns:
the output stream for this socket
Throws:
java.io.IOException

isConnected

public boolean isConnected()
Specified by:
isConnected in class Connection
Returns:
true if this is connection is active

createSocket

protected java.net.Socket createSocket()
                                throws ProtocolException,
                                       java.io.IOException
Create the socket to the configured host

Returns:
the socket connection
Throws:
java.io.IOException
ProtocolException


Copyright © 2008-2009 Oracle Corporation. All Rights Reserved.