public final class BasicAuthServerHandler extends HttpServerHandler
| Constructor and Description |
|---|
BasicAuthServerHandler(String username,
String password,
HttpServerHandler httpServerHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(HttpRequest request,
HttpResponse response)
执行当前处理器逻辑。
|
void |
onClose(Request request) |
void |
onHeaderComplete(Request request) |
onBodyStreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlepublic BasicAuthServerHandler(String username, String password, HttpServerHandler httpServerHandler)
public void onHeaderComplete(Request request) throws IOException
IOExceptionpublic void onClose(Request request)
public void handle(HttpRequest request, HttpResponse response) throws Throwable
ServerHandler当前handle运行完后若还有后续的处理器,需要调用doNext
IOExceptionThrowableCopyright © 2025. All rights reserved.