php.java.servlet
Class RemoteContext

java.lang.Object
  extended by php.java.bridge.http.Context
      extended by php.java.servlet.HttpContext
          extended by php.java.servlet.RemoteContext
All Implemented Interfaces:
IContext, IManaged, Invocable

public class RemoteContext
extends HttpContext

A custom context, used when remote PHP scripts access the servlet. In this case the HttpServletRequest, HttpServletResponse and ServletContext objects are not available. However, the session object is available through the RemoteHttpSession.

Author:
jostb

Field Summary
 
Fields inherited from interface php.java.bridge.http.IContext
ENGINE_SCOPE, GLOBAL_SCOPE, JAVA_BRIDGE, PHP_PROCEDURE, SERVLET, SERVLET_CONFIG, SERVLET_CONTEXT, SERVLET_REQUEST, SERVLET_RESPONSE
 
Method Summary
 java.lang.Object getHttpServletRequest()
          Return the request object
 java.lang.Object getHttpServletResponse()
          Return the response object
 java.lang.Object getServlet()
          Return the servlet
 java.lang.Object getServletConfig()
          Return the servlet config
 java.lang.Object getServletContext()
          Return the servlet context
 
Methods inherited from class php.java.servlet.HttpContext
getAttribute, getRealPath, getRealPathInternal, getRedirectString, getRedirectString, getSocketName, getWriter, handleManaged, init, onShutdown
 
Methods inherited from class php.java.bridge.http.Context
call, get, getAll, getAttribute, getAttributesScope, getManageable, getRealPathInternal, getRedirectURL, handleManaged, put, putAll, remove, removeAttribute, setAttribute
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHttpServletResponse

public java.lang.Object getHttpServletResponse()
Return the response object

Specified by:
getHttpServletResponse in interface IContext
Overrides:
getHttpServletResponse in class HttpContext
Returns:
The response

getHttpServletRequest

public java.lang.Object getHttpServletRequest()
Return the request object

Specified by:
getHttpServletRequest in interface IContext
Overrides:
getHttpServletRequest in class HttpContext
Returns:
The request

getServlet

public java.lang.Object getServlet()
Return the servlet

Specified by:
getServlet in interface IContext
Overrides:
getServlet in class HttpContext
Returns:
the servlet

getServletConfig

public java.lang.Object getServletConfig()
Return the servlet config

Specified by:
getServletConfig in interface IContext
Overrides:
getServletConfig in class HttpContext
Returns:
the servlet config

getServletContext

public java.lang.Object getServletContext()
Return the servlet context

Specified by:
getServletContext in interface IContext
Overrides:
getServletContext in class HttpContext
Returns:
the servlet context