public class ResourceUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
STATIC_HASH |
| Constructor and Description |
|---|
ResourceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canRequestedResourcesContentBeAssumedConstant(Map<String,String> params)
Given a parameter map, determine if a web resource is cacheable.
|
static String |
getBasename(String path)
Determines the base name (name without the extension) of the resource from the given path.
|
static Map<String,String> |
getQueryParameters(javax.servlet.http.HttpServletRequest request)
Returns a Map of query parameters from the request.
|
static String |
getType(String path)
Determines the type (css/js) of the resource from the given path.
|
public static final String STATIC_HASH
public static String getType(@NotNull String path)
path - - the path to usepublic static String getBasename(@NotNull String path)
path - - the path to usepublic static Map<String,String> getQueryParameters(javax.servlet.http.HttpServletRequest request)
ServletRequest.getParameterMap()public static boolean canRequestedResourcesContentBeAssumedConstant(Map<String,String> params)
Copyright © 2017 Atlassian. All rights reserved.