boolean hasWebResourceHandlerFor(String resourcePath){
return (webObjectRegistry.getWebResourceHandlerRef(resourcePath) != null);
}
void processWebResourceHandler(RequestContext rc) {
WebResourceHandlerRef webResourceHandlerRef = webObjectRegistry.getWebResourceHandlerRef(rc.getResourcePath());
if (webResourceHandlerRef != null) {
WebHandlerContext handlerContext = new WebHandlerContext(WebHandlerType.resource,webResourceHandlerRef.getHandlerObject(),webResourceHandlerRef.getHandlerMethod());
boolean invokeWebResource = true;
if (webHandlerInterceptor != null) {
invokeWebResource = webHandlerInterceptor.beforeWebHandler(handlerContext, rc);
}
if (invokeWebResource){
webResourceHandlerRef.invoke(rc);
}
if (invokeWebResource && webHandlerInterceptor != null) {
webHandlerInterceptor.afterWebHandler(handlerContext, rc);
}