oracle.stellent.ridc.protocol.intradoc.socket
Class SocketConnection
java.lang.Object
oracle.stellent.ridc.protocol.Connection
oracle.stellent.ridc.protocol.intradoc.socket.SocketConnection
- Direct Known Subclasses:
- SSLSocketConnection
public class SocketConnection
- extends Connection
Represents a socket connection to the Content Server
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 |
SocketConnection
public SocketConnection(IntradocClientConfig config)
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.