public abstract class AbstractResourceHandler extends Object
Constructor and Description |
---|
AbstractResourceHandler() |
Modifier and Type | Method and Description |
---|---|
protected static String |
addPaths(String segment1,
String segment2)
Add two URI path segments.
|
AbstractFileResolvingResource |
getResource(javax.servlet.http.HttpServletRequest request)
Gets a resource from a servlet request
|
protected abstract AbstractFileResolvingResource |
getResource(String path)
Gets resource from path
|
protected static final String SLASH
public AbstractFileResolvingResource getResource(javax.servlet.http.HttpServletRequest request) throws MalformedURLException
request
- the servlet requestMalformedURLException
- thrown when malformed URL.protected abstract AbstractFileResolvingResource getResource(String path) throws MalformedURLException
path
- the pathMalformedURLException
- thrown when malformed URL.protected static String addPaths(String segment1, String segment2)
segment1
- URI path segment (should be encoded)segment2
- URI path segment (should be encoded)Copyright © 2016. All rights reserved.