php.java.script
Class HttpProxy

java.lang.Object
  extended by php.java.script.Continuation
      extended by php.java.script.CGIRunner
          extended by php.java.script.HttpProxy
All Implemented Interfaces:
java.lang.Runnable, IContinuation

public class HttpProxy
extends CGIRunner

Represents the script continuation. This class can be used to allocate php scripts on a HTTP server. Although this class accidentally inherits from CGIRunner it doesn't necessarily run CGI binaries. If you pass a URLReader, it calls its read method which opens a URLConnection to the remote server and holds the allocated remote script instance hostage until release is called.

Author:
jostb

Constructor Summary
HttpProxy(java.io.Reader reader, java.util.Map env, java.io.OutputStream out, java.io.OutputStream err, HeaderParser headerParser, ResultProxy resultProxy, ILogger logger)
          Create a HTTP proxy which can be used to allocate a php script from a HTTP server
 
Method Summary
 
Methods inherited from class php.java.script.Continuation
call, getPhpScript, release, run
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpProxy

public HttpProxy(java.io.Reader reader,
                 java.util.Map env,
                 java.io.OutputStream out,
                 java.io.OutputStream err,
                 HeaderParser headerParser,
                 ResultProxy resultProxy,
                 ILogger logger)
Create a HTTP proxy which can be used to allocate a php script from a HTTP server

Parameters:
reader - - The reader, for example a URLReader
env - - The environment, must contain values for X_JAVABRIDGE_CONTEXT. It may contain X_JAVABRIDGE_OVERRIDE_HOSTS.
out - - The OutputStream
err - The error stream
headerParser - The header parser
resultProxy - The return value proxy