public class JeevesUpSince
extends javax.servlet.http.HttpServlet
When accessed, the JeevesUpSince servlet sends once a UpSincePdu request to the configured host to get the uptime of the host. It will hold the connection until it has received the information. Then it will print the information to your webpage.
It supports the GET action. The following parameter should be sent in the URL:
http:<servlet URL>?host=localhost
It will use port 161 and community name public.
Some general information about servlets.UpSincePdu,
Serialized Form| Constructor and Description |
|---|
JeevesUpSince() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
java.lang.String |
getServletInfo() |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceprotected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionpublic java.lang.String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class javax.servlet.GenericServlet