|
SAP NetWeaver 7.30 Enterprise Portal (SP03) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.JspContext
javax.servlet.jsp.PageContext
com.sapportals.portal.prt.servlets_jsp.server.page.PageContextImpl
public class PageContextImpl
Provides access to all the namespaces associated with a JSP page, provides access to several page attributes, as well as a layer above the implementation details.
| Field Summary | |
|---|---|
static String |
APPCONTEXT
Deprecated. name used to store ServletContext in PageContext name table |
protected Hashtable |
attributes
Deprecated. page scope attributes |
protected boolean |
autoFlush
Deprecated. if the buffer will be autoflushed |
protected int |
bufferSize
Deprecated. size of the buffer |
protected IPortalComponent |
component
Deprecated. a servlet instance of this jsp |
protected IPortalComponentRequest |
componentRequest
Deprecated. response invoked this jsp |
protected ServletConfig |
config
Deprecated. used to pass information to a servlet during initialization |
protected ServletContext |
context
Deprecated. a set of methods that a servlet uses to communicate with its servlet container |
protected String |
errorPageURL
Deprecated. if some error page is specified in jsp |
protected JspFactory |
factory
Deprecated. a number of factory methods available to a JSP page at runtime |
protected ServletRequest |
m_request
Deprecated. response invoked this jsp |
protected JSPResponse |
m_response
Deprecated. response that will be returned from this jsp |
protected IPortalComponentSession |
m_session
Deprecated. a session object for this jsp |
protected boolean |
needsSession
Deprecated. if a new session to be created if the page doesn't take a part at any |
protected JspWriter |
out
Deprecated. initial output stream |
| Fields inherited from class javax.servlet.jsp.PageContext |
|---|
APPLICATION, APPLICATION_SCOPE, CONFIG, EXCEPTION, OUT, PAGE, PAGE_SCOPE, PAGECONTEXT, REQUEST, REQUEST_SCOPE, RESPONSE, SESSION, SESSION_SCOPE |
| Constructor Summary | |
|---|---|
PageContextImpl()
Deprecated. Primary constructor for PageContext, requires subsequent call to initialize() in order to handle a Servlet request. |
|
| Method Summary | |
|---|---|
protected JspWriter |
_createOut(int buffer,
boolean flag)
Deprecated. Creates and returns a new JspWriter. |
Object |
backwardCompatibilityGetValue(String name)
Deprecated. |
Object |
findAttribute(String name)
Deprecated. Searches for the named attribute in page, request, session (if valid), and application scope(s) in order and returns the value associated or null. |
void |
forward(String jspFile)
Deprecated. This method is used to re-direct, or "forward" the current ServletRequest and ServletResponse to another active component in the application. |
Object |
getAttribute(String name)
Deprecated. Returns the object named . |
Object |
getAttribute(String name,
int scope)
Deprecated. Gets an attribute within the scope. |
Enumeration |
getAttributeNamesInScope(int scope)
Deprecated. Returns an enumeration of names (java.lang.String) of all the attributes the specified scope. |
int |
getAttributesScope(String name)
Deprecated. Returns the scope of the object associated with the name specified or 0. |
ELContext |
getELContext()
Deprecated. |
Enumeration |
getEnum(String[] ar)
Deprecated. Returns an Enumeration of the elements of the given array. |
Exception |
getException()
Deprecated. Returns any exception passed to this as an errorpage. |
ExpressionEvaluator |
getExpressionEvaluator()
Deprecated. |
JspWriter |
getOut()
Deprecated. Returns the HttpSession for this PageContext or null. |
Object |
getPage()
Deprecated. Returns the Page implementation class instance (Servlet) associated with this PageContext. |
ServletRequest |
getRequest()
Deprecated. Returns The ServletRequest for this PageContext. |
ServletResponse |
getResponse()
Deprecated. Returns the ServletResponse for this PageContext. |
ServletConfig |
getServletConfig()
Deprecated. Returns the ServletConfig for this PageContext. |
ServletContext |
getServletContext()
Deprecated. Returns the ServletContext for this PageContext. |
HttpSession |
getSession()
Deprecated. Returns the HttpSession for this PageContext or null. |
VariableResolver |
getVariableResolver()
Deprecated. |
void |
handlePageException(Exception exception)
Deprecated. This method is intended to process an unhandled "page" level exception by redirecting the exception to either the specified error page for this JSP, or if none was specified, to perform some implementation dependent action. |
void |
handlePageException(Throwable parm1)
Deprecated. |
void |
include(String jspFile)
Deprecated. Causes the resource specified to be processed as part of the current ServletRequest and ServletResponse being processed by the calling Thread. |
void |
include(String relativeUrlPath,
boolean flush)
Deprecated. |
void |
initialize(IPortalComponentRequest request,
JSPResponse response,
String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush)
Deprecated. Initiates the instance with servlet parameters. |
void |
initialize(Servlet servlet,
ServletRequest request,
ServletResponse response,
String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush)
Deprecated. Initiates the instance with servlet parameters. |
JspWriter |
popBody()
Deprecated. Returns the previous JspWriter "out" saved by the matching pushBody(), and update the value of the "out" attribute in the page scope attribute namespace of the PageConxtext. |
BodyContent |
pushBody()
Deprecated. Returns a new BodyContent object, save the current "out" JspWriter, and update the value of the "out" attribute in the page scope attribute namespace of the PageContext. |
void |
release()
Deprecated. This method shall "reset" the internal state of a PageContext, releasing all internal references, and preparing the PageContext for potential reuse by a later invocation of initialize(). |
void |
removeAttribute(String name)
Deprecated. Removes the object reference associated with the specified name. |
void |
removeAttribute(String name,
int scope)
Deprecated. Removes the object reference associated with the specified name |
void |
setAttribute(String name,
Object attribute)
Deprecated. Registers the name and object specified with page scope semantics |
void |
setAttribute(String name,
Object o,
int scope)
Deprecated. Register the name and object specified with appropriate scope semantics. |
| Methods inherited from class javax.servlet.jsp.PageContext |
|---|
getErrorData |
| Methods inherited from class javax.servlet.jsp.JspContext |
|---|
pushBody |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String APPCONTEXT
protected IPortalComponent component
protected ServletConfig config
protected ServletContext context
protected JspFactory factory
protected boolean needsSession
protected String errorPageURL
protected boolean autoFlush
protected int bufferSize
protected transient Hashtable attributes
protected transient IPortalComponentRequest componentRequest
protected transient ServletRequest m_request
protected transient JSPResponse m_response
protected transient IPortalComponentSession m_session
protected transient JspWriter out
| Constructor Detail |
|---|
public PageContextImpl()
throws IOException,
IllegalStateException,
IllegalArgumentException
IOException
IllegalStateException
IllegalArgumentException| Method Detail |
|---|
public void include(String jspFile)
throws ServletException,
IOException
include in class PageContextjspFile - jspFile to be included
ServletException - throws it
IOException - throws it
public void include(String relativeUrlPath,
boolean flush)
throws ServletException
include in class PageContextServletException
public void forward(String jspFile)
throws ServletException,
IOException
forward in class PageContextjspFile - jspFile to be forworded
ServletException - throws it
IOException - throws itpublic void handlePageException(Exception exception)
handlePageException in class PageContextexception - thrown exception to be handled
protected JspWriter _createOut(int buffer,
boolean flag)
throws IOException,
IllegalArgumentException
buffer - buffer of writerflag - autoflush
IOException - throws it
IllegalArgumentException - throws it
public void initialize(Servlet servlet,
ServletRequest request,
ServletResponse response,
String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush)
throws IOException,
IllegalStateException,
IllegalArgumentException
initialize in class PageContextservlet - A refference to this servletrequest - A refference to the request to this jspresponse - A refference to the responce that will be returned from jsperrorPageURL - If an error page is set in jspneedsSession - if a new session will be created if there isn't suchbufferSize - size of the bufferautoFlush - if buffer will be autoflushed
IOException
IllegalStateException
IllegalArgumentException
public void initialize(IPortalComponentRequest request,
JSPResponse response,
String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush)
throws IOException,
IllegalStateException,
IllegalArgumentException
request - A refference to the IPortalServletResquest to this jspresponse - A refference to the responce that will be returned from jsperrorPageURL - If an error page is set in jspneedsSession - if a new session will be created if there isn't suchbufferSize - size of the bufferautoFlush - if buffer will be autoflushed
IOException
IllegalStateException
IllegalArgumentExceptionpublic void release()
release in class PageContext
public void setAttribute(String name,
Object attribute)
setAttribute in class JspContextname - name of the attributeattribute - Object of the attribuete
public void setAttribute(String name,
Object o,
int scope)
setAttribute in class JspContextname - name of the attributeo - Object of the attribuetescope - scope of the attributepublic Object getAttribute(String name)
getAttribute in class JspContextname - name of the object
public Object getAttribute(String name,
int scope)
getAttribute in class JspContextname - name of attributescope - ID of the scope of the attribute
public Object backwardCompatibilityGetValue(String name)
name -
public void removeAttribute(String name)
removeAttribute in class JspContextname - name of the object
public void removeAttribute(String name,
int scope)
removeAttribute in class JspContextname - name of the objectscope - ID of the scope of the objectpublic int getAttributesScope(String name)
getAttributesScope in class JspContextname - name of the object
public Enumeration getEnum(String[] ar)
ar - an array of String
public Enumeration getAttributeNamesInScope(int scope)
getAttributeNamesInScope in class JspContextscope - ID of the scope
public BodyContent pushBody()
pushBody in class PageContextpublic JspWriter popBody()
popBody in class JspContextpublic JspWriter getOut()
getOut in class JspContextpublic HttpSession getSession()
getSession in class PageContextpublic ServletConfig getServletConfig()
getServletConfig in class PageContextpublic ServletContext getServletContext()
getServletContext in class PageContextpublic ServletRequest getRequest()
getRequest in class PageContextpublic ServletResponse getResponse()
getResponse in class PageContextpublic Exception getException()
getException in class PageContextpublic Object getPage()
getPage in class PageContextpublic Object findAttribute(String name)
findAttribute in class JspContextname - name of the attribute
public void handlePageException(Throwable parm1)
throws ServletException,
IOException
handlePageException in class PageContextServletException
IOExceptionpublic ExpressionEvaluator getExpressionEvaluator()
getExpressionEvaluator in class JspContextpublic VariableResolver getVariableResolver()
getVariableResolver in class JspContextpublic ELContext getELContext()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
|
SAP NetWeaver 7.30 Enterprise Portal (SP03) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||