Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


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()
          Get a input stream for this connection
 java.io.OutputStream getOutputStream()
          Get a output stream for this connection
 java.net.Socket getSocket()
           
 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
Overrides:
connect in class Connection
Throws:
ProtocolException - if an error occurs

close

public void close()
Close this socket connection
Overrides:
close in class Connection

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Description copied from class: Connection
Get a input stream for this connection
Specified by:
getInputStream in class Connection
Returns:
the input stream for this socket
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Description copied from class: Connection
Get a output stream for this connection
Specified by:
getOutputStream in class Connection
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

getSocket

public java.net.Socket getSocket()
Returns:
the socket associated with this connection

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

Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


Copyright © 2008, 2011, Oracle and/or its affiliates. All rights reserved.