Constructor and Description |
---|
ContextHandler(String contextPath,
List<MuHandler> muHandlers)
Deprecated.
Use
ContextHandlerBuilder.context(String) instead |
Modifier and Type | Method and Description |
---|---|
boolean |
handle(MuRequest request,
MuResponse response)
Called when an HTTP request is made (unless a previous handler stopped handler processing)
|
@Deprecated public ContextHandler(String contextPath, List<MuHandler> muHandlers)
ContextHandlerBuilder.context(String)
insteadcontextPath
- The patchmuHandlers
- The handlerspublic boolean handle(MuRequest request, MuResponse response) throws Exception
MuHandler
handle
in interface MuHandler
request
- The HTTP request.response
- The HTTP response.false
to continue processing the next handler (for example if writing a filter or inspector); or true
to stop processing (normally done if this handler sent a response).Exception
- Any uncaught exceptions will result in a 500 error code being returned to the client with a simple message.Copyright © 2017–2021. All rights reserved.