Methods Summary |
---|
public java.lang.String | getDescription()Gets the description for html page
|
public java.lang.String | getHandledPath()Gets the virtual path in the HTTP server that ist handled in this HTTPRequestHandler.
So the root path handler will return "/" (without brackets) because it handles the path
"http://servername/" or a handler for "http://servername/somepath/" will return "/somepath/"
It is important to include the trailing "/" because all HTTPRequestHandler have to serve a path!
|
public java.lang.String | getTitle()Gets the title for html page
|
public boolean | handleRequest(java.lang.String request, java.io.Writer out)Handles the given request and writes the reply to the given out-stream. Every handler has to check
the request for the right path info.
|
public void | setDescription(java.lang.String description)Sets the description for html page
|
public void | setHandledPath(java.lang.String path)Sets the virtual path in the HTTP server that ist handled in this HTTPRequestHandler.
So set the path to "/" for the root path handler because it handles the path
"http://servername/" or set it to "/somepath/" for a handler for "http://servername/somepath/".
It is important to include the trailing "/" because all HTTPRequestHandler have to serve a path!
|
public void | setTitle(java.lang.String title)Sets the title for html page
|