php.java.bridge.http
Class SocketContextServer.Channel

java.lang.Object
  extended by php.java.bridge.http.AbstractChannel
      extended by php.java.bridge.http.PipeContextServer.Channel
          extended by php.java.bridge.http.SocketContextServer.Channel
Enclosing class:
SocketContextServer

protected class SocketContextServer.Channel
extends PipeContextServer.Channel


Field Summary
protected  java.net.Socket sock
           
 
Fields inherited from class php.java.bridge.http.PipeContextServer.Channel
in, out, runner
 
Constructor Summary
SocketContextServer.Channel(java.lang.String name, java.io.InputStream in, java.io.OutputStream out, java.net.Socket sock)
           
 
Method Summary
 java.io.InputStream getInputStream()
          Returns the channel's input stream.
 java.io.OutputStream getOuptutStream()
          Returns the channel's output stream.
 java.net.Socket getSocket()
           
 void shutdown()
          Shut down the channel, closes the in- and output stream and other resources.
protected  void shutdown(java.net.Socket sock)
           
 
Methods inherited from class php.java.bridge.http.PipeContextServer.Channel
getName, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sock

protected java.net.Socket sock
Constructor Detail

SocketContextServer.Channel

public SocketContextServer.Channel(java.lang.String name,
                                   java.io.InputStream in,
                                   java.io.OutputStream out,
                                   java.net.Socket sock)
Method Detail

getInputStream

public java.io.InputStream getInputStream()
Description copied from class: AbstractChannel
Returns the channel's input stream.

Overrides:
getInputStream in class PipeContextServer.Channel
Returns:
The InputStream

getOuptutStream

public java.io.OutputStream getOuptutStream()
Description copied from class: AbstractChannel
Returns the channel's output stream.

Overrides:
getOuptutStream in class PipeContextServer.Channel
Returns:
The OutputStream.

getSocket

public java.net.Socket getSocket()

shutdown

protected void shutdown(java.net.Socket sock)

shutdown

public void shutdown()
Description copied from class: AbstractChannel
Shut down the channel, closes the in- and output stream and other resources.

Overrides:
shutdown in class PipeContextServer.Channel