php.java.bridge.http
Class FCGIIOFactory

java.lang.Object
  extended by php.java.bridge.http.FCGIIOFactory

public abstract class FCGIIOFactory
extends java.lang.Object

FastCGI In-/OutputStream factory. Override this class if you want to use your own streams.

Author:
jostb

Constructor Summary
FCGIIOFactory()
           
 
Method Summary
abstract  FCGIConnection connect(FCGIConnectionFactory name)
          Create a new socket and connect it to the given host/port
 java.io.InputStream createInputStream()
          Create a new InputStream.
 java.io.OutputStream createOutputStream()
          Create a new OutputStream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FCGIIOFactory

public FCGIIOFactory()
Method Detail

connect

public abstract FCGIConnection connect(FCGIConnectionFactory name)
                                throws FCGIConnectException
Create a new socket and connect it to the given host/port

Parameters:
name - The channel name.
Returns:
The socket
Throws:
FCGIConnectException

createInputStream

public java.io.InputStream createInputStream()
                                      throws FCGIConnectionException
Create a new InputStream.

Returns:
The input stream.
Throws:
FCGIConnectionException

createOutputStream

public java.io.OutputStream createOutputStream()
                                        throws FCGIConnectionException
Create a new OutputStream.

Returns:
The output stream.
Throws:
FCGIConnectionException