|
Oracle® Fusion Middleware Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-01 |
|||||||||
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.client.script.ScriptableRequestContext
public class ScriptableRequestContext
Request context for executing requests in memory
Constructor Summary | |
---|---|
ScriptableRequestContext(ScriptableClientApplication clientApplication, java.lang.String contextPath, java.lang.String uri, java.security.Principal principal, java.io.Writer writer) |
|
ScriptableRequestContext(ScriptableRequestContext parent, java.lang.String uri, java.io.Writer writer) |
Method Summary | |
---|---|
protected void |
executePath(java.lang.String path, boolean forward) Execute the path |
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 |
ScriptableClientApplication |
getClientApplication() |
java.lang.String |
getContextPath() |
java.util.Map<java.lang.String,java.lang.String> |
getParameters() |
java.lang.String |
getRequestPath() |
java.security.Principal |
getUserPrincipal() |
java.io.Writer |
getWriter() |
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 |
---|
exposeObjects, forward, getParameter, getSiteContext, include, include, process, restoreObjects, setSiteContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptableRequestContext(ScriptableClientApplication clientApplication, java.lang.String contextPath, java.lang.String uri, java.security.Principal principal, java.io.Writer writer) throws java.net.URISyntaxException
java.net.URISyntaxException
public ScriptableRequestContext(ScriptableRequestContext parent, java.lang.String uri, java.io.Writer writer) throws java.net.URISyntaxException
java.net.URISyntaxException
Method Detail |
---|
public ScriptableClientApplication getClientApplication()
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)
getAttribute
in class RequestContext
name
- the namepublic java.util.Set<java.lang.String> getAttributeNames()
getAttributeNames
in class RequestContext
public java.util.Map<java.lang.String,java.lang.String> getParameters()
getParameters
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 valueprotected void executePath(java.lang.String path, boolean forward) throws java.lang.Exception
executePath
in class RequestContext
path
- the web application pageforward
- true to forward, false to includejava.lang.Exception
|
Oracle® Fusion Middleware Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |