public final class ResourceUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BASE_BINARIES_CONTENT_PATH |
static String |
DEFAULT_BINARY_DATA_PROP_NAME |
static String |
DEFAULT_BINARY_LAST_MODIFIED_PROP_NAME |
static String |
DEFAULT_BINARY_MIME_TYPE_PROP_NAME |
static String |
DEFAULT_BINARY_RESOURCE_NODE_TYPE |
Modifier and Type | Method and Description |
---|---|
static long |
getDataLength(javax.jcr.Node resourceNode,
String binaryDataPropName) |
static String |
getFileName(javax.jcr.Node resourceNode,
String[] contentDispositionFileNamePropertyNames) |
static long |
getLastModifiedDate(javax.jcr.Node resourceNode,
String binaryLastModifiedPropName) |
static String |
getResourcePath(javax.servlet.http.HttpServletRequest request,
String contentPath) |
static String |
getResourceRelPath(javax.servlet.http.HttpServletRequest request) |
static boolean |
hasBinaryProperty(javax.jcr.Node resourceNode,
String binaryDataPropName) |
static boolean |
hasMimeTypeProperty(javax.jcr.Node resourceNode,
String binaryMimeTypePropName) |
static boolean |
hasValideType(javax.jcr.Node resourceNode,
String binaryResourceNodeType) |
static boolean |
isValidResourcePath(String path) |
static javax.jcr.Node |
lookUpResource(javax.jcr.Session session,
String resourcePath,
Map<String,List<ResourceContainer>> prefix2ResourceContainer,
List<ResourceContainer> allResourceContainers) |
public static final String DEFAULT_BASE_BINARIES_CONTENT_PATH
public static final String DEFAULT_BINARY_RESOURCE_NODE_TYPE
public static final String DEFAULT_BINARY_DATA_PROP_NAME
public static final String DEFAULT_BINARY_MIME_TYPE_PROP_NAME
public static final String DEFAULT_BINARY_LAST_MODIFIED_PROP_NAME
public static long getLastModifiedDate(javax.jcr.Node resourceNode, String binaryLastModifiedPropName)
public static long getDataLength(javax.jcr.Node resourceNode, String binaryDataPropName)
public static String getFileName(javax.jcr.Node resourceNode, String[] contentDispositionFileNamePropertyNames)
public static String getResourcePath(javax.servlet.http.HttpServletRequest request, String contentPath)
public static String getResourceRelPath(javax.servlet.http.HttpServletRequest request)
public static javax.jcr.Node lookUpResource(javax.jcr.Session session, String resourcePath, Map<String,List<ResourceContainer>> prefix2ResourceContainer, List<ResourceContainer> allResourceContainers)
public static boolean isValidResourcePath(String path)
public static boolean hasValideType(javax.jcr.Node resourceNode, String binaryResourceNodeType)
public static boolean hasBinaryProperty(javax.jcr.Node resourceNode, String binaryDataPropName)
public static boolean hasMimeTypeProperty(javax.jcr.Node resourceNode, String binaryMimeTypePropName)
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.