Java Reference
In-Depth Information
The
doOptions()
Method
protected void doOptions(HttpServletRequest request,
HttpServletResponse response)
throws ServletException
java.io.Exception
The
doOptions()
method services all
OPTIONS
requests for the servlet. The default implemen-
tation automatically determines what HTTP options are supported.
The
doTrace()
Method
protected void doTrace(HttpServletRequest request,
HttpServletResponse response)
throws ServletException
java.io.Exception
C
The
doTrace()
method services all
TRACE
requests for the servlet.
getLastModifiedTime()
Method
protected long getLastModifiedTime(HttpServletRequest request)
The
getLastModifiedTime()
method returns the last time the requested entity was modified.
The value returned is measured in milliseconds since January 1, 1970.
getLastModifiedTime()
throws no exceptions.
It has one parameter:
•
HttpServletRequest
It returns this value:
•
long
The
service(HttpServletRequest request, HttpServletResponse
response)
Method
protected void service(HttpServletRequest request,
HttpServletResponse response)
throws ServletException
java.io.Exception
This is an HTTP-specific implementation of the
Servlet.service()
method. It handles stan-
dard HTTP requests by dispatching them to the appropriately implemented methods. The
service()
method throws a
ServletException
if it cannot service the request and throws a
java.io.IOException
if there was an I/O error.
service()
returns no value.