|
Oracle® WebCenter Content Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.stellent.wcm.client.RequestContext
oracle.stellent.wcm.javaee.ServletRequestContext
public class ServletRequestContext
Constructor Summary | |
---|---|
ServletRequestContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) |
|
ServletRequestContext(javax.servlet.jsp.JspContext jspContext) |
|
ServletRequestContext(javax.servlet.jsp.PageContext pageContext) |
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String name) Retrieve an attribute value |
java.util.Set<java.lang.String> |
getAttributeNames() Retrieve the attribute names for the given scope |
java.lang.String |
getContextPath() |
javax.servlet.jsp.PageContext |
getPageContext() |
java.util.Map<java.lang.String,java.lang.String> |
getParameters() |
javax.servlet.http.HttpServletRequest |
getRequest() |
java.lang.String |
getRequestPath() |
javax.servlet.http.HttpServletResponse |
getResponse() |
javax.servlet.ServletContext |
getServletContext() |
java.security.Principal |
getUserPrincipal() |
java.io.Writer |
getWriter() |
void |
include(javax.servlet.jsp.tagext.JspFragment fragment, java.util.Map<java.lang.String,java.lang.Object> objects) Include a fragment into the current request. |
protected void |
processImpl(java.lang.String path, boolean forward) Execute the path |
void |
sendRedirect(java.lang.String path) Send a redirect |
void |
setAttribute(java.lang.String name, java.lang.Object value) Set an attribute value by name |
void |
setHeader(java.lang.String name, java.lang.String value) Set a response header |
Methods inherited from class oracle.stellent.wcm.client.RequestContext |
---|
forward, getParameter, getSiteContext, include, process, setSiteContext, swapAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletRequestContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public ServletRequestContext(javax.servlet.jsp.JspContext jspContext)
public ServletRequestContext(javax.servlet.jsp.PageContext pageContext)
Method Detail |
---|
public javax.servlet.ServletContext getServletContext()
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public javax.servlet.jsp.PageContext getPageContext()
public java.io.Writer getWriter() throws java.io.IOException
getWriter
in class RequestContext
java.io.IOException
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in class RequestContext
name
- the namevalue
- the value (null to remove)public java.lang.Object getAttribute(java.lang.String name)
RequestContext
getAttribute
in class RequestContext
name
- the namepublic java.util.Set<java.lang.String> getAttributeNames()
getAttributeNames
in class RequestContext
public java.lang.String getContextPath()
getContextPath
in class RequestContext
HttpServletRequest.getContextPath()
public java.lang.String getRequestPath()
getRequestPath
in class RequestContext
public java.security.Principal getUserPrincipal()
getUserPrincipal
in class RequestContext
public void sendRedirect(java.lang.String path) throws java.io.IOException
sendRedirect
in class RequestContext
path
- the path to redirectjava.io.IOException
public void setHeader(java.lang.String name, java.lang.String value)
setHeader
in class RequestContext
name
- the namevalue
- the valuepublic java.util.Map<java.lang.String,java.lang.String> getParameters()
getParameters
in class RequestContext
public void include(javax.servlet.jsp.tagext.JspFragment fragment, java.util.Map<java.lang.String,java.lang.Object> objects) throws ApplicationException, java.io.IOException
fragment
- the jsp fragmentobjects
- the objects, may be nullScriptException
java.io.IOException
ApplicationException
protected void processImpl(java.lang.String path, boolean forward) throws java.lang.Exception
processImpl
in class RequestContext
path
- the web application pageforward
- true to forward, false to includejava.lang.Exception
|
Oracle® WebCenter Content Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |