public class GraphServlet extends HttpServlet
RequestHandler
.Constructor and Description |
---|
GraphServlet() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
authenticate(HttpServletRequest req)
Return true if the request should be honoured, false otherwise.
|
void |
destroy() |
void |
doGet(HttpServletRequest req,
HttpServletResponse res) |
void |
doPost(HttpServletRequest req,
HttpServletResponse res) |
static String |
getServletPath(ServletContext sc,
HttpServletRequest req,
boolean relative)
Get the base path that should be used to request a file from this servlet
to retrieve a file.
|
void |
init() |
protected void |
process(HttpServletRequest req,
HttpServletResponse res,
String xmlstring)
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
public void init() throws ServletException
init
in class GenericServlet
ServletException
public void destroy()
destroy
in interface Servlet
destroy
in class GenericServlet
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
doGet
in class HttpServlet
ServletException
IOException
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
doPost
in class HttpServlet
ServletException
IOException
protected void process(HttpServletRequest req, HttpServletResponse res, String xmlstring) throws ServletException, IOException
req
- the HTTP requestres
- the HTTP responsexmlstring
- XML to use for the requestServletException
IOException
protected boolean authenticate(HttpServletRequest req)
headercheck.n
parameters
for patterns which will be matched against the supplied headers,
e.g. Referer:.*mywebsite.com/.*
req
- the request to validatepublic static String getServletPath(ServletContext sc, HttpServletRequest req, boolean relative)
sc
- the Servlet Contextreq
- the Request contextrelative
- whether the URL is to be relative (true) or include the servlet host and port (false)Copyright © 2001-2016 Big Faceless Organization