public class CLStaticHttpHandler extends StaticHttpHandlerBase
HttpHandler, which processes requests to a static resources resolved
by a given ClassLoader.| Constructor and Description |
|---|
CLStaticHttpHandler(ClassLoader classLoader)
Create HttpHandler, which will handle requests
to the static resources resolved by the given class loader.
|
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader()
Returns the
ClassLoader used to resolve the requested HTTP resources. |
protected boolean |
handle(String resourcePath,
Request request,
Response response)
Lookup a resource based on the request URI, and send it using send file.
|
addCachingHeaders, addToFileCache, getRelativeURI, isFileCacheEnabled, lookupFileCache, onMissingResource, pickupContentType, sendFile, service, setFileCacheEnabledcustomizedErrorPage, destroy, getName, getRequestURIEncoding, getThreadPool, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, start, updatePathspublic CLStaticHttpHandler(ClassLoader classLoader)
public ClassLoader getClassLoader()
ClassLoader used to resolve the requested HTTP resources.protected boolean handle(String resourcePath, Request request, Response response) throws Exception
handle in class StaticHttpHandlerBaseresourcePath - The request URIrequest - the Requestresponse - the ResponseExceptionCopyright © 2013 Oracle Corporation. All Rights Reserved.