java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.derby.drda.NetServlet
- All Implemented Interfaces:
Serializable,Servlet,ServletConfig
This servlet can be used to start Derby Network Server from a remote location.
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
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGet(HttpServletRequest request, HttpServletResponse response) Get the form of NetServlet.voiddoPost(HttpServletRequest request, HttpServletResponse response) Get the form of NetServlet.voidinit(ServletConfig config) Initialize the servlet.Methods inherited from class javax.servlet.http.HttpServlet
serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
NetServlet
public NetServlet()
-
-
Method Details
-
init
Initialize the servlet. Configuration parameters:portNumber
- Port numberhost
- Host nametraceDirectory
- location of trace directorystartNetworkServerOnInit
- start the server on initialization
- Specified by:
initin interfaceServlet- Overrides:
initin classGenericServlet- Throws:
ServletException
-
doGet
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException Get the form of NetServlet. Provides buttons and forms to control the Network server.- Throws:
ServletExceptionIOException
-
doPost
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException Get the form of NetServlet. Provides a buttons and form to control the Network server- Throws:
ServletExceptionIOException
-