public class BaseServlet
extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
BaseServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
getByteContentFromPart(javax.servlet.http.Part p) |
protected java.lang.String |
getFullContent(javax.servlet.http.HttpServletRequest req) |
protected java.util.Map<java.lang.String,java.lang.Object> |
getParams(javax.servlet.http.HttpServletRequest req) |
protected rapture.common.CallingContext |
getSessionContext(javax.servlet.http.HttpServletRequest req) |
protected rapture.common.DispatchReturn |
handleUnexpectedException(java.lang.Exception e)
This should be called when we catch an exception after calling a dispatcher.
|
protected StandardCallInfo |
processFunctionalRequest(javax.servlet.http.HttpServletRequest req) |
protected void |
sendResponseAppropriately(rapture.common.CallingContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.String response) |
protected void |
validateContext(rapture.common.CallingContext context,
java.lang.String entPath,
rapture.common.RaptureEntitlementsContext entCtx)
Check this session is valid
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceprotected rapture.common.CallingContext getSessionContext(javax.servlet.http.HttpServletRequest req)
protected java.lang.String getFullContent(javax.servlet.http.HttpServletRequest req)
throws java.io.IOException
java.io.IOExceptionprotected java.util.Map<java.lang.String,java.lang.Object> getParams(javax.servlet.http.HttpServletRequest req)
throws java.io.UnsupportedEncodingException,
java.io.IOException,
javax.servlet.ServletException
java.io.UnsupportedEncodingExceptionjava.io.IOExceptionjavax.servlet.ServletExceptionprotected byte[] getByteContentFromPart(javax.servlet.http.Part p)
throws java.io.IOException
java.io.IOExceptionprotected StandardCallInfo processFunctionalRequest(javax.servlet.http.HttpServletRequest req) throws java.io.UnsupportedEncodingException, java.io.IOException, javax.servlet.ServletException
java.io.UnsupportedEncodingExceptionjava.io.IOExceptionjavax.servlet.ServletExceptionprotected void validateContext(rapture.common.CallingContext context,
java.lang.String entPath,
rapture.common.RaptureEntitlementsContext entCtx)
context - entPath - entCtx - protected void sendResponseAppropriately(rapture.common.CallingContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.String response)
throws java.io.IOException
java.io.IOExceptionprotected rapture.common.DispatchReturn handleUnexpectedException(java.lang.Exception e)
e -