org.locomotive.loco.servlet
Class UnknownServlet
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--org.locomotive.loco.servlet.LocoServlet
|
+--org.locomotive.loco.servlet.UnknownServlet
- public class UnknownServlet
- extends LocoServlet
This servlet is invoked when a url cannot be mapped to a Servlet by
the Locomotive. It returns the template
LOCO_TEMPLATE_ROOT_PATH/error/unknown_service_option.tmpl, or, if
that template is missing, a basic warning message
- See Also:
- Serialized Form
Fields inherited from class org.locomotive.loco.servlet.LocoServlet |
conn,
DEBUG,
ERROR,
form_data,
NORMAL,
req,
resp,
session,
steam_vars,
url_tokens,
user,
WARNING |
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Required to use locoServlet fields
public void service (HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
{
super.service(req, resp);
}
/**
this is the entry point for the server. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete,
doOptions,
doPut,
doTrace,
getLastModified,
service |
Methods inherited from class javax.servlet.GenericServlet |
destroy,
getInitParameter,
getInitParameterNames,
getServletConfig,
getServletContext,
getServletInfo,
init,
init,
log,
log |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
UnknownServlet
public UnknownServlet()
doGet
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
- Required to use locoServlet fields
public void service (HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
{
super.service(req, resp);
}
/**
this is the entry point for the server.
Uses the
LOCO_TEMPLATE_ROOT_PATH/error/unknown_service_option.tmpl template.
LOCO_TEMPLATE_ROOT_PATH is the template directory, as specified in
the Loco configuration file.
- Overrides:
- doGet in class javax.servlet.http.HttpServlet
doPost
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
- doPost in class javax.servlet.http.HttpServlet