public interface ResourceContainer
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getMappings()
returns the mapping from nodename to url prefix.
|
String |
getNodeType() |
String |
getPrimaryItem() |
String |
resolveToPathInfo(javax.jcr.Node resourceContainerNode,
javax.jcr.Node resourceNode,
Mount mount)
Implementations should here do their logic, possibly linkrewriting.
|
javax.jcr.Node |
resolveToResourceNode(javax.jcr.Session session,
String pathInfo)
This is the reverse of
resolveToPathInfo(Node, Node, Mount) . |
String resolveToPathInfo(javax.jcr.Node resourceContainerNode, javax.jcr.Node resourceNode, Mount mount)
HstLink
object
is createdresourceContainerNode
- The parent node of the resource noderesourceNode
- The resource node itself containing the binarymount
- the Mount
the link is meant fornull
when not able to create onejavax.jcr.Node resolveToResourceNode(javax.jcr.Session session, String pathInfo)
resolveToPathInfo(Node, Node, Mount)
. If this ResourceContainer can resolve
the pathInfo to a resource node of type getNodeType()
, it returns the resourceNode. If it cannot resolve the
pathInfo, null is returned
session
- pathInfo
- : the path from the url after the context and servlet path. It starts with a slashnull
if this resource container does not know how to resolve this pathInfoString getNodeType()
String getPrimaryItem()
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.