php.java.bridge.http
Class FCGIUtil

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

public class FCGIUtil
extends java.lang.Object

Constants and common procedures for FastCGI

Author:
jostb

Field Summary
static int FCGI_ABORT_REQUEST
          Values for type component of FCGI_Header
static int FCGI_AUTHORIZER
          Values for role component of FCGI_BeginRequestBody
static int FCGI_BEGIN_REQUEST
          Values for type component of FCGI_Header
static int FCGI_BUF_SIZE
          IO buffer size
static int FCGI_DATA
          Values for type component of FCGI_Header
static byte[] FCGI_EMPTY_RECORD
          Values for type component of FCGI_Header
static int FCGI_END_REQUEST
          Values for type component of FCGI_Header
static int FCGI_FILTER
          Values for role component of FCGI_BeginRequestBody
static int FCGI_GET_VALUES
          Values for type component of FCGI_Header
static int FCGI_GET_VALUES_RESULT
          Values for type component of FCGI_Header
static int FCGI_HEADER_LEN
          header length
static int FCGI_KEEP_CONN
          Mask for flags component of FCGI_BeginRequestBody
static int FCGI_PARAMS
          Values for type component of FCGI_Header
static java.lang.String FCGI_PIPE
          The default channel name on Windows
static int FCGI_PORT
          The Fast CGI default port
static int FCGI_RESPONDER
          Values for role component of FCGI_BeginRequestBody
static int FCGI_STDERR
          Values for type component of FCGI_Header
static int FCGI_STDIN
          Values for type component of FCGI_Header
static int FCGI_STDOUT
          Values for type component of FCGI_Header
static int FCGI_UNKNOWN_TYPE
          Values for type component of FCGI_Header
static java.lang.String PHP_FCGI_CONNECTION_POOL_SIZE
          This controls how many child processes the PHP process spawns.
static java.lang.String PHP_FCGI_CONNECTION_POOL_TIMEOUT
          This controls how long the pool waits for a PHP script to terminate.
static java.lang.String PHP_FCGI_MAX_REQUESTS
          This controls how many requests each child process will handle before exitting.
 
Constructor Summary
FCGIUtil()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FCGI_BUF_SIZE

public static final int FCGI_BUF_SIZE
IO buffer size

See Also:
Constant Field Values

FCGI_HEADER_LEN

public static final int FCGI_HEADER_LEN
header length

See Also:
Constant Field Values

FCGI_BEGIN_REQUEST

public static final int FCGI_BEGIN_REQUEST
Values for type component of FCGI_Header

See Also:
Constant Field Values

FCGI_ABORT_REQUEST

public static final int FCGI_ABORT_REQUEST
Values for type component of FCGI_Header

See Also:
Constant Field Values

FCGI_END_REQUEST

public static final int FCGI_END_REQUEST
Values for type component of FCGI_Header

See Also:
Constant Field Values

FCGI_PARAMS

public static final int FCGI_PARAMS
Values for type component of FCGI_Header

See Also:
Constant Field Values

FCGI_STDIN

public static final int FCGI_STDIN
Values for type component of FCGI_Header

See Also:
Constant Field Values

FCGI_STDOUT

public static final int FCGI_STDOUT
Values for type component of FCGI_Header

See Also:
Constant Field Values

FCGI_STDERR

public static final int FCGI_STDERR
Values for type component of FCGI_Header

See Also:
Constant Field Values

FCGI_DATA

public static final int FCGI_DATA
Values for type component of FCGI_Header

See Also:
Constant Field Values

FCGI_GET_VALUES

public static final int FCGI_GET_VALUES
Values for type component of FCGI_Header

See Also:
Constant Field Values

FCGI_GET_VALUES_RESULT

public static final int FCGI_GET_VALUES_RESULT
Values for type component of FCGI_Header

See Also:
Constant Field Values

FCGI_UNKNOWN_TYPE

public static final int FCGI_UNKNOWN_TYPE
Values for type component of FCGI_Header

See Also:
Constant Field Values

FCGI_EMPTY_RECORD

public static final byte[] FCGI_EMPTY_RECORD
Values for type component of FCGI_Header


FCGI_KEEP_CONN

public static final int FCGI_KEEP_CONN
Mask for flags component of FCGI_BeginRequestBody

See Also:
Constant Field Values

FCGI_RESPONDER

public static final int FCGI_RESPONDER
Values for role component of FCGI_BeginRequestBody

See Also:
Constant Field Values

FCGI_AUTHORIZER

public static final int FCGI_AUTHORIZER
Values for role component of FCGI_BeginRequestBody

See Also:
Constant Field Values

FCGI_FILTER

public static final int FCGI_FILTER
Values for role component of FCGI_BeginRequestBody

See Also:
Constant Field Values

FCGI_PORT

public static final int FCGI_PORT
The Fast CGI default port

See Also:
Constant Field Values

PHP_FCGI_CONNECTION_POOL_SIZE

public static final java.lang.String PHP_FCGI_CONNECTION_POOL_SIZE
This controls how many child processes the PHP process spawns. Default is 5. The value should be less than THREAD_POOL_MAX_SIZE

See Also:
Util.THREAD_POOL_MAX_SIZE, Constant Field Values

PHP_FCGI_CONNECTION_POOL_TIMEOUT

public static final java.lang.String PHP_FCGI_CONNECTION_POOL_TIMEOUT
This controls how long the pool waits for a PHP script to terminate. Default is -1, which means: "wait forever".

See Also:
Constant Field Values

PHP_FCGI_MAX_REQUESTS

public static final java.lang.String PHP_FCGI_MAX_REQUESTS
This controls how many requests each child process will handle before exitting. When one process exits, another will be created. Default is 5000.

See Also:
Constant Field Values

FCGI_PIPE

public static final java.lang.String FCGI_PIPE
The default channel name on Windows

See Also:
Constant Field Values
Constructor Detail

FCGIUtil

public FCGIUtil()