类 NotFoundHandler
java.lang.Object
cn.taketoday.web.handler.NotFoundHandler
- 所有已实现的接口:
HttpRequestHandler
Process Handler not found
- 作者:
- TODAY 2019-12-20 19:15
-
字段概要
字段修饰符和类型字段说明static final NotFoundHandlerNotFoundHandler default instanceprotected static final cn.taketoday.logging.LoggerAdditional logger to use when no mapped handler is found for a request.static final StringLog category to use when no mapped handler is found for a request.从接口继承的字段 cn.taketoday.web.HttpRequestHandler
NONE_RETURN_VALUE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected ObjecthandleNotFound(RequestContext request) Process not foundhandleRequest(RequestContext request) Process the request and return a result object which the DispatcherHandler will handle.protected voidlogNotFound(RequestContext context)
-
字段详细资料
-
PAGE_NOT_FOUND_LOG_CATEGORY
Log category to use when no mapped handler is found for a request.- 另请参阅:
-
log
protected static final cn.taketoday.logging.Logger logAdditional logger to use when no mapped handler is found for a request. -
instance
NotFoundHandler default instance
-
-
构造器详细资料
-
NotFoundHandler
public NotFoundHandler()
-
-
方法详细资料
-
handleRequest
从接口复制的说明:HttpRequestHandlerProcess the request and return a result object which the DispatcherHandler will handle. Anullreturn value is not an error: it indicates that this handler completed request processing itself and that there is therefore no explicit result to handle. aHttpRequestHandler.NONE_RETURN_VALUEindicates that no result to handle byReturnValueHandler- 指定者:
handleRequest在接口中HttpRequestHandler- 参数:
request- Current request context- 返回:
- Result to be handled by
ReturnValueHandler - 抛出:
Throwable- If any exception occurred- 另请参阅:
-
handleNotFound
Process not found- 抛出:
IOException
-
logNotFound
-