|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Abstract handler of incoming HTTP requests. The available handlers have their handleIn methods called in a configured order until a response is sent. Derived handlers may choose to ignore requests, modify them, or handle them.
Notes
While a handler is similar to a javax.servlet.http.HttpServlet,
it is passed com.mortbay.HTTP requests and responses, which
allow modifications and greater control over IO. HttpHandlers
are used when developing "ways" of dealing with requests. Servlets
should be used to handle specific requests where possible.
HttpServer
Method Summary | |
void |
destroy()
Destroy Handler. |
void |
handle(HttpRequest request,
HttpResponse response)
Constructor |
javax.servlet.Servlet |
servlet(java.lang.String name)
Return servlet by Name within this handler or null if no servlets |
java.util.Enumeration |
servletNames()
Return enumeration of servlet Names within this handler or null if no servlets |
void |
setProperties(java.util.Properties properties)
|
void |
setServer(HttpServer server)
Set server. |
java.lang.String |
translate(java.lang.String path)
Translate a path string. |
Method Detail |
public void setProperties(java.util.Properties properties) throws java.lang.IllegalStateException, java.io.IOException
public void handle(HttpRequest request, HttpResponse response) throws java.lang.Exception
request
- The HTTP requests to be handledresponse
- The HTTP response to be used.public java.lang.String translate(java.lang.String path)
public java.util.Enumeration servletNames()
public javax.servlet.Servlet servlet(java.lang.String name)
public void setServer(HttpServer server) throws java.lang.Exception
public void destroy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |