public class ViewServerInfo
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
protected static java.text.DecimalFormat |
FMT_TIME
The formatter for a request's elapsed time.
|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
ViewServerInfo() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles HTTP GET requests.
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles HTTP POST requests.
|
private java.lang.String |
getSelectedContent(java.lang.String viewname)
Returns an html formatted string for the selected view's content.
|
private java.lang.String |
getServerProperties()
Returns an html formatted string of the current server properties.
|
private java.lang.String |
getStyleSheet(java.lang.String fontsize)
Returns an html formatted string of the style sheet directives used to
format the page's output.
|
private java.lang.String |
getSystemProperties()
Returns an html formatted string of the current system properties.
|
private java.lang.String |
getViewNameSelects(java.lang.String viewname)
Returns an html formatted string of the view name select and option tags
for the allowed view selections (properties or the files contained in the
configured log file folder.
|
void |
init()
Handles servlet initialization.
|
private void |
writePage(javax.servlet.http.HttpServletResponse response,
java.lang.String viewname)
Writes the view server info page to the response output stream.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
private static final long serialVersionUID
protected static final java.text.DecimalFormat FMT_TIME
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
- - if an error occurs while
processing the initialization.public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doGet
in class javax.servlet.http.HttpServlet
request
- (HttpServletRequest) The servlet's incoming request.response
- (HttpServletResponse) The servlet's outgoing response.java.io.IOException
- - if an error occurs while processing the
request or response.javax.servlet.ServletException
- - if an error occurs while
processing the request or response.public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doPost
in class javax.servlet.http.HttpServlet
request
- (HttpServletRequest) The servlet's incoming request.response
- (HttpServletResponse) The servlet's outgoing response.java.io.IOException
- - if an error occurs while processing the
request or response.javax.servlet.ServletException
- - if an error occurs while
processing the request or response.private void writePage(javax.servlet.http.HttpServletResponse response, java.lang.String viewname) throws java.io.IOException
response
- (HttpServletResponse) The servlet's outgoing response.viewname
- (String) The submitted view name.java.io.IOException
- - if an error occurs while processing the
response.private java.lang.String getViewNameSelects(java.lang.String viewname)
viewname
- (String) The submitted view name.private java.lang.String getSelectedContent(java.lang.String viewname)
viewname
- (String) The submitted view name.private java.lang.String getStyleSheet(java.lang.String fontsize)
fontsize
- (String) The font size to use.private java.lang.String getServerProperties()
private java.lang.String getSystemProperties()