- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.apache.derby.drda.NetServlet
-
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
public class NetServlet extends HttpServlet
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NetServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.-
Methods inherited from class javax.servlet.http.HttpServlet
service
-
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
-
-
-
Method Detail
-
init
public void init(ServletConfig config) throws ServletException
Initialize the servlet. Configuration parameters:portNumber
- Port numberhost
- Host nametraceDirectory
- location of trace directorystartNetworkServerOnInit
- start the server on initialization
- Specified by:
init
in interfaceServlet
- Overrides:
init
in 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:
ServletException
IOException
-
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:
ServletException
IOException
-
-