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, 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, getWriter
 
Methods inherited from class php.java.bridge.http.Context
call, getAttributesScope, 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

Overrides:
getHttpServletResponse in class Context
Returns:
The response

getHttpServletRequest

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

Overrides:
getHttpServletRequest in class Context
Returns:
The request

getServlet

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

Overrides:
getServlet in class Context
Returns:
the servlet

getServletConfig

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

Overrides:
getServletConfig in class Context
Returns:
the servlet config

getServletContext

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

Overrides:
getServletContext in class Context
Returns:
the servlet context