Package org.faceless.graph2.tag
Class GraphServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.faceless.graph2.tag.GraphServlet
-
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
public class GraphServlet extends HttpServlet
This is the Servlet that processes web-service requests, and retrieves images and/or other files created by the Tag Library or a RequestHandler. Typically there will be no need to override this class - extending it can usually be done by creating a newRequestHandler
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GraphServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
-
Methods inherited from class javax.servlet.http.HttpServlet
service
-
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
-
-
-
Method Detail
-
init
public void init() throws ServletException
- Overrides:
init
in classGenericServlet
- Throws:
ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceServlet
- Overrides:
destroy
in classGenericServlet
-
doGet
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
- Throws:
ServletException
IOException
-
doPost
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
- Throws:
ServletException
IOException
-
getServletPath
public 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. The returned value should be appended with "pageid" and a "/" character to retrieve the graph.- Parameters:
sc
- the Servlet Contextreq
- the Request contextrelative
- whether the URL is to be relative (true) or include the servlet host and port (false)- Since:
- 2.4.1
-
-