php.java.servlet
Class RemoteContext

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

public class RemoteContext
extends Context

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 class php.java.servlet.Context
APPLICATION_SCOPE, REQUEST_SCOPE, SESSION_SCOPE
 
Fields inherited from interface php.java.bridge.http.IContext
ENGINE_SCOPE, GLOBAL_SCOPE, JAVA_BRIDGE, 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.Context
getAttribute, getAttribute, getRealPath, getRealPathInternal, getWriter, handleManaged, init, onShutdown
 
Methods inherited from class php.java.bridge.http.Context
call, getAttributesScope, getManageable, getRealPathInternal, handleManaged, 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 Context
Returns:
The response

getHttpServletRequest

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

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

getServlet

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

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

getServletConfig

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

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

getServletContext

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

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