@Singleton public class HttpHandlerImpl extends Object implements HttpHandler
Constructor and Description |
---|
HttpHandlerImpl(com.google.inject.Injector injector,
RequestScope requestScope,
Set<Route.Definition> routes,
Set<WebSocket.Definition> sockets,
String path,
Set<Err.Handler> err) |
Modifier and Type | Method and Description |
---|---|
void |
handle(NativeRequest request,
NativeResponse response)
Handle an incoming HTTP request.
|
@Inject public HttpHandlerImpl(com.google.inject.Injector injector, RequestScope requestScope, Set<Route.Definition> routes, Set<WebSocket.Definition> sockets, @Named(value="application.path") String path, Set<Err.Handler> err)
public void handle(NativeRequest request, NativeResponse response) throws Exception
HttpHandler
handle
in interface HttpHandler
request
- HTTP request.response
- HTTP response.Exception
- If execution resulted in exception.Copyright © 2015. All rights reserved.