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
 
Constructor Summary
RemoteContext(javax.servlet.ServletContext kontext, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 
Method Summary
 java.lang.Object getHttpServletRequest()
          Use java_context()->getAttribute(...) instead
 java.lang.Object getHttpServletResponse()
          Use java_context()->getAttribute(...) instead
 java.lang.Object getServlet()
          Use java_context()->getAttribute(...) instead
 java.lang.Object getServletConfig()
          Use java_context()->getAttribute(...) instead
 java.lang.Object getServletContext()
          Use java_context()->getAttribute(...) instead
 
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
 

Constructor Detail

RemoteContext

public RemoteContext(javax.servlet.ServletContext kontext,
                     javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse res)
Method Detail

getHttpServletResponse

public java.lang.Object getHttpServletResponse()
Use java_context()->getAttribute(...) instead

Overrides:
getHttpServletResponse in class Context

getHttpServletRequest

public java.lang.Object getHttpServletRequest()
Use java_context()->getAttribute(...) instead

Overrides:
getHttpServletRequest in class Context

getServlet

public java.lang.Object getServlet()
Use java_context()->getAttribute(...) instead

Overrides:
getServlet in class Context

getServletConfig

public java.lang.Object getServletConfig()
Use java_context()->getAttribute(...) instead

Overrides:
getServletConfig in class Context

getServletContext

public java.lang.Object getServletContext()
Use java_context()->getAttribute(...) instead

Overrides:
getServletContext in class Context