php.java.bridge.http
Class PipeContextServer.Channel

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

protected static class PipeContextServer.Channel
extends AbstractChannel


Field Summary
protected  java.io.InputStream in
           
protected  java.io.OutputStream out
           
protected  ContextRunner runner
           
 
Constructor Summary
protected PipeContextServer.Channel(java.lang.String channelName)
           
protected PipeContextServer.Channel(java.lang.String channelName, java.io.InputStream in, java.io.OutputStream out)
           
 
Method Summary
 java.io.InputStream getInputStream()
          Returns the channel's input stream.
 java.lang.String getName()
          Returns the name of the channel, for example the socket # or the pipe name.
 java.io.OutputStream getOuptutStream()
          Returns the channel's output stream.
 void shutdown()
          Shut down the channel, closes the in- and output stream and other resources.
protected static void shutdown(java.io.InputStream in, java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected java.io.InputStream in

out

protected java.io.OutputStream out

runner

protected ContextRunner runner
Constructor Detail

PipeContextServer.Channel

protected PipeContextServer.Channel(java.lang.String channelName,
                                    java.io.InputStream in,
                                    java.io.OutputStream out)

PipeContextServer.Channel

protected PipeContextServer.Channel(java.lang.String channelName)
Method Detail

getInputStream

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

Specified by:
getInputStream in class AbstractChannel
Returns:
The InputStream
Throws:
java.io.FileNotFoundException

getOuptutStream

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

Specified by:
getOuptutStream in class AbstractChannel
Returns:
The OutputStream.
Throws:
java.io.FileNotFoundException

shutdown

protected static void shutdown(java.io.InputStream in,
                               java.io.OutputStream out)

shutdown

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

Specified by:
shutdown in class AbstractChannel

getName

public java.lang.String getName()
Description copied from class: AbstractChannel
Returns the name of the channel, for example the socket # or the pipe name.

Specified by:
getName in class AbstractChannel
Returns:
the name of the channel.
See Also:
AbstractChannelName.getName()