public class HttpAuthenticationServlett extends AbstractServlett
Servlett that processes the AUTHENTICATION information in the HTTp request, and passes control to the
next servlett iff authentication is successfully completed.| Constructor and Description |
|---|
HttpAuthenticationServlett(String realm,
String userName,
String password) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
handleRequest(HttpRequest httpRequest,
ConsumerWhichThrows<HttpResponse,IOException> sendProvisionalResponse)
Forwards the HTTP requests it receives to one of
AbstractServlett.get(HttpRequest, ConsumerWhichThrows)
AbstractServlett.head(HttpRequest, ConsumerWhichThrows)
AbstractServlett.post(HttpRequest, ConsumerWhichThrows)
AbstractServlett.put(HttpRequest, ConsumerWhichThrows)
, depending on the HTTP method. |
@Nullable public HttpResponse handleRequest(HttpRequest httpRequest, ConsumerWhichThrows<HttpResponse,IOException> sendProvisionalResponse)
AbstractServletthandleRequest in interface ServletthandleRequest in class AbstractServletthttpRequest - The request to processsendProvisionalResponse - Consumes any provisional responses, see
RFC 2616: 10 Status
Code Definitions: 10.1 Informational 1xxnull iff this handler cannot handle the
requestCopyright © 2016 Arno Unkrig. All rights reserved.