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