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(java.lang.String realm,
java.lang.String userName,
java.lang.String password) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
handleRequest(HttpRequest httpRequest)
Forwards the HTTP requests it receives to
AbstractServlett.get(HttpRequest), AbstractServlett.head(HttpRequest), AbstractServlett.post(HttpRequest), AbstractServlett.put(HttpRequest), depending on the HTTP method. |
public HttpAuthenticationServlett(java.lang.String realm,
java.lang.String userName,
java.lang.String password)
@Nullable public HttpResponse handleRequest(HttpRequest httpRequest)
AbstractServlettAbstractServlett.get(HttpRequest), AbstractServlett.head(HttpRequest), AbstractServlett.post(HttpRequest), AbstractServlett.put(HttpRequest), depending on the HTTP method.handleRequest in interface ServletthandleRequest in class AbstractServlettnull iff this handler cannot handle the httpRequest