org.eclipse.smila.http.server
Interface HttpHandler
- All Known Subinterfaces:
- RequestHandler
- All Known Implementing Classes:
- ARequestHandler, RequestDispatcher
public interface HttpHandler
A handler invoked to process a request.
getRootContextPath
java.lang.String getRootContextPath()
- Returns:
- the URI path this handler is invoked for.
handle
void handle(HttpExchange exchange)
throws java.io.IOException
- Handles a HttpExchange containing a HttpRequest.
- Parameters:
exchange - the HttpExchange object
- Throws:
java.io.IOException - handling the request (e.g. a org.eclipse.jetty.http.HttpException)