All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.webmacro.servlet.CGI_Impersonator

java.lang.Object
   |
   +----org.webmacro.servlet.CGI_Impersonator

public final class CGI_Impersonator
extends Object
Provided to mimic the CGI environment within the WebMacro script language via introspection. The data in this class duplicates information already available in request, but makes it available in a familiar form.

From the WebMacro script language you can refer to the properties contained in this class with names that exactly duplicate the names familiar to CGI programmers. eg: REQUEST_METHOD, PATH_INFO, etc.


Method Index

 o getAUTH_TYPE()
Type of authorization for this request
 o getCONTENT_LENGTH()
Get the content length submitted to this request
 o getCONTENT_TYPE()
Get the content type submitted to this request
 o getDOCUMENT_ROOT()
What is the root of documents served by this servlet
 o getHTTP_ACCEPT()
What type of data is accepted by the client
 o getHTTP_REFERER()
Get the URL that the request claims to have visited prior to this one
 o getHTTP_USER_AGENT()
Get the user agent (browser) connected to this request
 o getPATH_INFO()
What portion of the URL appeared as additional path beyond the SCRIPT_NAME portion? Return that as a string.
 o getPATH_TRANSLATED()
Same as PATH_INFO but translated to a real path
 o getQUERY_STRING()
In a GET request, return the query string that was submitted, if any
 o getREMOTE_ADDR()
Return the remove address connected to this servlet
 o getREMOTE_HOST()
Return the remote host connected to this request
 o getREMOTE_USER()
Name of the remote user if it was supplied with the HTTP request
 o getREQUEST_METHOD()
Return what type of REQUEST this was: GET, POST, etc.
 o getSCRIPT_NAME()
What portion of the URL represented the servlet being run? Return that as a string.
 o getSERVER_NAME()
Return the name of the server
 o getSERVER_PORT()
Return the server port
 o getSERVER_PROTOCOL()
Return the server protocol

Methods

 o getSERVER_NAME
 public final String getSERVER_NAME()
Return the name of the server

 o getSERVER_PROTOCOL
 public final String getSERVER_PROTOCOL()
Return the server protocol

 o getSERVER_PORT
 public final Integer getSERVER_PORT()
Return the server port

 o getREQUEST_METHOD
 public final String getREQUEST_METHOD()
Return what type of REQUEST this was: GET, POST, etc.

 o getPATH_INFO
 public final String getPATH_INFO()
What portion of the URL appeared as additional path beyond the SCRIPT_NAME portion? Return that as a string.

 o getPATH_TRANSLATED
 public final String getPATH_TRANSLATED()
Same as PATH_INFO but translated to a real path

 o getSCRIPT_NAME
 public final String getSCRIPT_NAME()
What portion of the URL represented the servlet being run? Return that as a string.

 o getDOCUMENT_ROOT
 public final String getDOCUMENT_ROOT()
What is the root of documents served by this servlet

 o getQUERY_STRING
 public final String getQUERY_STRING()
In a GET request, return the query string that was submitted, if any

 o getREMOTE_HOST
 public final String getREMOTE_HOST()
Return the remote host connected to this request

 o getREMOTE_ADDR
 public final String getREMOTE_ADDR()
Return the remove address connected to this servlet

 o getAUTH_TYPE
 public final String getAUTH_TYPE()
Type of authorization for this request

 o getREMOTE_USER
 public final String getREMOTE_USER()
Name of the remote user if it was supplied with the HTTP request

 o getCONTENT_TYPE
 public final String getCONTENT_TYPE()
Get the content type submitted to this request

 o getCONTENT_LENGTH
 public final Integer getCONTENT_LENGTH()
Get the content length submitted to this request

 o getHTTP_ACCEPT
 public final String getHTTP_ACCEPT()
What type of data is accepted by the client

 o getHTTP_USER_AGENT
 public final String getHTTP_USER_AGENT()
Get the user agent (browser) connected to this request

 o getHTTP_REFERER
 public final String getHTTP_REFERER()
Get the URL that the request claims to have visited prior to this one


All Packages  Class Hierarchy  This Package  Previous  Next  Index