|
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 org.xmlBlaster.protocol.http.BlasterHttpProxyServlet
public class BlasterHttpProxyServlet
This servlet doesn't leave the doGet() method after an invocation keeping a permanent http connection.
With the doGet() method you may login/logout to xmlBlaster, and receive your instant callbacks.
Field Summary | |
---|---|
static java.lang.String |
ENCODING
|
private Global |
glob
|
private java.lang.String |
header
|
private static java.util.logging.Logger |
log
|
private static boolean |
propertyRead
|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
BlasterHttpProxyServlet()
|
Method Summary | |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
GET request from the browser, usually to do an initial login. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
POST request from the browser. |
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 startet. |
static void |
initSystemProperties(javax.servlet.ServletConfig conf)
Setting the system properties. |
void |
log(java.util.logging.LogRecord record)
Event fired by Logger.java through interface I_LogListener. |
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 long serialVersionUID
private static boolean propertyRead
private final java.lang.String header
private Global glob
private static java.util.logging.Logger log
public static final java.lang.String ENCODING
Constructor Detail |
---|
public BlasterHttpProxyServlet()
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 doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException
index.html?ActionType=login&xmlBlaster.loginName=karl&xmlBlaster.passwd=secret
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException
This method is called through a SUBMIT of a HTML FORM,
the TARGET should be set to "requestFrame".
The parameter ActionType must be set to one of the above methods.
For an explanation of these methods see the file xmlBlaster.idl
?ActionType=subscribe&key.oid=cpuinfoand complete key XML strings like
?ActionType=subscribe&key=<key oid='hello'></key>as well.
doPost
in class javax.servlet.http.HttpServlet
req
- Data from browserres
- Response of the servlet
javax.servlet.ServletException
java.io.IOException
public static final void initSystemProperties(javax.servlet.ServletConfig conf)
public void log(java.util.logging.LogRecord record)
log
in interface I_LogListener
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 |