Package nxt.peer
Class PeerServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.eclipse.jetty.websocket.servlet.WebSocketServlet
-
- nxt.peer.PeerServlet
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public final class PeerServlet extends org.eclipse.jetty.websocket.servlet.WebSocketServlet
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PeerServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(org.eclipse.jetty.websocket.servlet.WebSocketServletFactory factory)
Configure the WebSocket factoryprotected void
doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
Process HTTP POST request-
Methods inherited from class org.eclipse.jetty.websocket.servlet.WebSocketServlet
destroy, init, service
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service
-
-
-
-
Method Detail
-
configure
public void configure(org.eclipse.jetty.websocket.servlet.WebSocketServletFactory factory)
Configure the WebSocket factory- Specified by:
configure
in classorg.eclipse.jetty.websocket.servlet.WebSocketServlet
- Parameters:
factory
- WebSocket factory
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
Process HTTP POST request- Overrides:
doPost
in classjavax.servlet.http.HttpServlet
- Parameters:
req
- HTTP requestresp
- HTTP response- Throws:
javax.servlet.ServletException
- Servlet processing errorjava.io.IOException
- I/O error
-
-