public abstract class DaemonHttpServlet
extends javax.servlet.http.HttpServlet
RemoteDaemonHttpServlet,
序列化表格| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
DEFAULT_PORT
The default listening port (1313)
|
| 构造器和说明 |
|---|
DaemonHttpServlet() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
Halts the thread listening for socket connections.
|
protected int |
getSocketPort()
Returns the socket port on which the servlet will listen.
|
abstract void |
handleClient(Socket client)
Handles a new socket connection.
|
void |
init(javax.servlet.ServletConfig config)
Begins a thread listening for socket connections.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init 在接口中 javax.servlet.Servletinit 在类中 javax.servlet.GenericServletconfig - the servlet configjavax.servlet.ServletException - if a servlet exception occursprotected int getSocketPort()
public abstract void handleClient(Socket client)
client - the client socketpublic void destroy()
destroy 在接口中 javax.servlet.Servletdestroy 在类中 javax.servlet.GenericServletCopyright © 2022. All rights reserved.