Serializable, Servlet, ServletConfigpublic class NetServlet extends HttpServlet
These servlet configuration parameters are understood by this servlet.
portNumber- Port number to use. The default is 1527.
startNetworkServerOnInit- Starts the Derby Network Server at servlet initialization if 'true'.
tracingDirectory- Directory for trace files
| Constructor | Description |
|---|---|
NetServlet() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
Get the form of NetServlet.
|
void |
doPost(HttpServletRequest request,
HttpServletResponse response) |
Get the form of NetServlet.
|
void |
init(ServletConfig config) |
Initialize the servlet.
|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logservicepublic void init(ServletConfig config) throws ServletException
portNumber- Port number
host- Host name
traceDirectory- location of trace directory
startNetworkServerOnInit- start the server on initialization
init in interface Servletinit in class GenericServletServletExceptionpublic void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
ServletExceptionIOExceptionpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
ServletExceptionIOExceptionApache Derby 10.14 API Documentation - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.