public interface ContentSource
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Performs any actions needed to clean up after the content source.
|
List<ContentItem> |
getContent(List<String> pContentPath)
This method fetches a list of content items given the paths to those items.
|
ContentLocator |
resolveContent(javax.servlet.http.HttpServletRequest pRequest)
Similar to
resolveContent(String) , but attempts to infer
the content URI from the path info of the given servlet request. |
ContentLocator |
resolveContent(String pContentUri)
Returns a ContentLocator which can be used to provide
information about the location of the content represented by
the given URI or retrieve the actual content.
|
ContentLocator resolveContent(String pContentUri) throws ContentException
pContentUri
- The URI to access for content. The string should
be properly URL-encoded.ContentLocator
with the location of the content.ContentException
- Thrown when there is an error accessing
or forming content.ContentLocator resolveContent(javax.servlet.http.HttpServletRequest pRequest) throws ContentException
resolveContent(String)
, but attempts to infer
the content URI from the path info of the given servlet request.pRequest
- The HttpServletRequest
containing the content URI.ContentLocator
with the information that was inferred from the HttpServletRequest
.ContentException
- Thrown when there is an error accessing or forming content.List<ContentItem> getContent(List<String> pContentPath) throws ContentException
pContentPath
- The list of paths to the node store that point to content items.ContentException
- Thrown when there is an error accessing or forming content.void destroy()
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.