public class UserBoundedScriptPageServlet extends BaseServlet
| Constructor and Description |
|---|
UserBoundedScriptPageServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
GET method implementation.
|
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
POST method implementation.
|
protected java.lang.String |
getReflexScript(java.lang.String uri)
Helper method to get the script/endpoint from a script:// repo
|
void |
init()
Initializes the user bound servlet.
|
protected void |
runScriptWithUser(java.lang.String script,
java.util.Map<java.lang.String,java.lang.Object> parameterMap,
javax.servlet.http.HttpServletResponse resp)
Process the request that came either by POST or GET method
|
getByteContentFromPart, getFullContent, getParams, getSessionContext, handleUnexpectedException, processFunctionalRequest, sendResponseAppropriately, validateContextdoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic void init()
throws javax.servlet.ServletException
Loads config from web.xml and creates a CallingContext for user that the servlet is bound to.
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException,
javax.servlet.ServletException
Extract the Reflex URI and parameters out of request and run it using the Calling Context of user.
doPost in class javax.servlet.http.HttpServletreq - The HttpServletRequestresp - The HttpServletResponsejava.io.IOExceptionjavax.servlet.ServletExceptionpublic void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException
Extract the Reflex URI and parameters out of request and run it using the Calling Context of user.
doGet in class javax.servlet.http.HttpServletreq - The HttpServletRequestresp - The HttpServletResponsejava.io.IOExceptionprotected void runScriptWithUser(java.lang.String script,
java.util.Map<java.lang.String,java.lang.Object> parameterMap,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException
script - The actual script/endpoint to executeparameterMap - Parameters extracted from request and injected into the scriptresp - The HttpServletResponsejava.io.IOExceptionprotected java.lang.String getReflexScript(java.lang.String uri)
uri - The actual script/endpoint to execute