|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet http.dhtml.systemInfo.SystemInfo
public class SystemInfo
A servlet demonstrating the browser callback framework, using a persistent http connection.
This servlets subscribes to messages in xmlBlaster, which are requested from the browser, currently 'cpuinfo' and 'meminfo' messages.
Field Summary | |
---|---|
private static java.util.logging.Logger |
log
|
private static java.lang.String |
ME
|
Constructor Summary | |
---|---|
SystemInfo()
|
Method Summary | |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Subscribes to xmlBlaster messages 'cpuinfo' and 'meminfo'. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
dummy |
void |
htmlOutput(java.lang.String htmlData,
javax.servlet.http.HttpServletResponse response)
Returns a HTML file to the Browser. |
void |
init(javax.servlet.ServletConfig conf)
This method is invoked only once when the servlet is started. |
void |
popupError(javax.servlet.http.HttpServletResponse response,
java.lang.String error)
Report an error to the browser, which displays it in an alert() message. |
void |
xmlOutput(java.lang.String xmlData,
javax.servlet.http.HttpServletResponse response)
Send XML-Data to browser. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String ME
private static java.util.logging.Logger log
Constructor Detail |
---|
public SystemInfo()
Method Detail |
---|
public void init(javax.servlet.ServletConfig conf) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
conf
- init parameter of the servlet
javax.servlet.ServletException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
doGet
in class javax.servlet.http.HttpServlet
request
- response
-
javax.servlet.ServletException
public void htmlOutput(java.lang.String htmlData, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
htmlData
- the complete HTML pageresponse
- the servlet response-object
javax.servlet.ServletException
HttpServletResponse
public void popupError(javax.servlet.http.HttpServletResponse response, java.lang.String error)
sessionId
- The browsererror
- The text to displaypublic void xmlOutput(java.lang.String xmlData, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
xmlData
- XML dataresponse
- servlet response
javax.servlet.ServletException
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |