org.iperg.part.servlet
Class IpServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.iperg.part.servlet.IpServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class IpServlet
- extends javax.servlet.http.HttpServlet
The IpServlet
class is a PART specific servlet class
that can be used to accept incoming connections via the HTTP
protocol. I.e., if the servlet is instantiated and run inside a a
servlet runner like Tomcat, other PART processes can set up
connections to the servlet via HTTP.
When started, the PART servlet will can a helper class which
implements the IpServletHelper
interface. The class to
load can be specified via the servlet init parameter 'helperClass'.
- See Also:
- Serialized Form
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Respond to a GET request for the content produced by
this servlet. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Respond to a POST request for the content produced by this
servlet. |
IpNetworkEvent |
getEvent(java.io.InputStream in)
Read an event from the input stream of an http request |
void |
init(javax.servlet.ServletConfig cfg)
|
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 |
IpServlet
public IpServlet()
init
public void init(javax.servlet.ServletConfig cfg)
- Specified by:
init
in interface javax.servlet.Servlet
- Overrides:
init
in class javax.servlet.GenericServlet
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Respond to a GET request for the content produced by
this servlet.
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Parameters:
request
- The servlet request we are processingresponse
- The servlet response we are producing
- Throws:
java.io.IOException
- if an input/output error occurs
javax.servlet.ServletException
- if a servlet error occurs
getEvent
public IpNetworkEvent getEvent(java.io.InputStream in)
- Read an event from the input stream of an http request
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Respond to a POST request for the content produced by this
servlet.
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Parameters:
request
- The servlet request we are processingresponse
- The servlet response we are producing
- Throws:
java.io.IOException
- if an input/output error occurs
javax.servlet.ServletException
- if a servlet error occurs