| javax.servlet.http.HttpServlet com.lutris.appserver.server.httpPresentation.servlet.HttpPresentationServlet
All known Subclasses: org.enhydra.Servlet,
HttpPresentationServlet | public class HttpPresentationServlet extends HttpServlet (Code) | | Presentation server implemented as a servlet. Translates servlet
requests into HttpPresentationManager requests. There is a one
to one correspondence between an instance of this servlet and
an Enhydra application. An instance of the application is created by
the servlet.
The servlet requires a single init parameter `configFile', that
contains the path to the application's configuration file. This
file must define the following fields:
-
server.classPath - The class path for the application,
as a comma separated list. This should not contain the class path
for the Java runtime classes or the Lutris classes.
-
server.appClass - The full class name of the application
class. This must implement
com.lutris.appserver.server.Application .
-
server.presentationPrefix - This is the path that is used as
a prefixed for all URL references within the application. It must use
a `/' separator (as with URLs).
-
server.autoReload - A flag to indicate whether or not
the application should be automatically reloaded when any class or
jar file changes in the application's classpath. NOTE: THIS IS
A DEBUGGING OPTION AND MAY SLOW DOWN THE APPLICATION!
-
This servlet also implements the ListenableServlet
interface. This allows other objects to register with this servlet and
be notified every time service is called. These remote
listeners may ignore the notification, examine the request, or even
replace the request and/or response with extended versions. This is
used by the debugging and monitoring servlets.
version: $Revision: 1.4 $ author: Mark Diekhans author: Damir Milovic author: Strahinja Videnovic author: Slobodan Vujasinovic since: 1.3 |
XMLC_DOM_STATS_LOG_LEVEL | final public static String XMLC_DOM_STATS_LOG_LEVEL(Code) | | Log level for DOM statistics.
|
autoReload | boolean autoReload(Code) | | |
cacheClasses | boolean cacheClasses(Code) | | |
cacheFiles | boolean cacheFiles(Code) | | |
HttpPresentationServlet | public HttpPresentationServlet()(Code) | | Create a new HttpPresentationServlet.
|
destroy | public synchronized void destroy()(Code) | | Destroys the servlet. Called by the servlet manager when the servlet
is shutdown.
|
ensureAppIsRunning | public void ensureAppIsRunning() throws ServletException(Code) | | This method is public for use by the ServletManager
to run the application startup() method after init().
exception: ServletException - If any error occurs on startup. |
getAppConfigInitParam | protected Config getAppConfigInitParam()(Code) | | Returns the application configuration init parameter.
|
getAppConfigInitParamName | protected String getAppConfigInitParamName()(Code) | | Returns the application configuration init parameter name.
|
getApplication | public Application getApplication()(Code) | | Returns the application being run by this instance of
the servlet.
|
getHttpPresentationRequest | protected HttpPresentationRequest getHttpPresentationRequest(HttpServletRequest req, HttpServletResponse resp)(Code) | | This method instantiates the HttpPresentationRequest
object that the presentation manager expects when
servicing a request.
Parameters: req - The servlet request object. Parameters: resp - The servlet response object. The HttpPresentationRequest object usedby the presentation manager. |
getHttpPresentationResponse | protected HttpPresentationResponse getHttpPresentationResponse(HttpServletRequest req, HttpServletResponse resp)(Code) | | This method instantiates the HttpPresentationResponse
object that the presentation manager expects when
servicing a request.
Parameters: req - The servlet request object. Parameters: resp - The servlet response object. The HttpPresentationResponse object usedby the presentation manager. |
getServletInfo | public String getServletInfo()(Code) | | Return information specific to this servlet.
|
getSession | public Session getSession(ServletRequest request)(Code) | | Looks up the session object (if any) that would be used to
process the request. This is will not used normally, because the
session is give to the application's preprocessor method and the
presentation objects. Also, it is not normal to have a raw
ServletRequest. The debugger uses this to examine the session data
before and after each request. Consider this an internal use only
method.
Parameters: request - The (raw) request that would be sent in to this application.The session object that would be associated with the request.Returns null if none is found; a new session is not created. |
service | public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code) | | Handle a service request. Use the first filter to wrap the request,
response, and servlet (this) objects. This will return new objects.
Then use the second filter to wrap those, again returning new
objects. Then use the fourth filter to wrap those etc....
Then finally call service() on the outermost results.
Parameters: request - The original servlet request object. Parameters: response - The original servlet response object. |
serviceDirect | public void serviceDirect(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code) | | This is an HTTP-specific version of the Servlet.service method
that translates that request into a request to a presentation
manager. This object is method is not synchronized, the thread
is used to handle to entire request.
As part of implementing the FiterableServlet interface, the real work
is done here in serviceDirect(), while calls to service() result in
filters being applied and called. The end of the filter chain is a
glue servlet that directly calls this method.
Parameters: req - encapsulates the request to the servlet Parameters: resp - encapsulates the response from the servlet exception: ServletException - if the request could not be handled exception: IOException - if detected when handling the request |
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|