public abstract class AbstractContentSource extends Object implements ContentSource
destroy() method and a working
implementation of resolveContent(HttpServletRequest)
which makes use of the abstract
ContentSource.resolveContent(String) method.| Constructor and Description |
|---|
AbstractContentSource()
Constructs a content source.
|
AbstractContentSource(String defaultSiteRootPath)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Performs any actions needed to clean up after the content source.
|
String |
getDefaultSiteRootPath()
If a valid content URI cannot be extracted from the request in the
resolveContent(HttpServletRequest) method, it will
attempt to resolve the content URI using this default site root
path. |
ContentLocator |
resolveContent(javax.servlet.http.HttpServletRequest request)
Attempts to resolve content based on the given request.
|
void |
setDefaultSiteRootPath(String defaultSiteRootPath) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContent, resolveContent@Deprecated public AbstractContentSource(String defaultSiteRootPath)
defaultSiteRootPath - If a valid content URI cannot be
extracted from the request in the
resolveContent(HttpServletRequest) method, it will
attempt to resolve the content URI using this default site root
path.public AbstractContentSource()
public String getDefaultSiteRootPath()
resolveContent(HttpServletRequest) method, it will
attempt to resolve the content URI using this default site root
path.public void setDefaultSiteRootPath(String defaultSiteRootPath)
public ContentLocator resolveContent(javax.servlet.http.HttpServletRequest request) throws ContentException
resolveContent in interface ContentSourcerequest - 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.public void destroy()
ContentSourcedestroy in interface ContentSourceCopyright © 2013, Oracle and/or its affiliates. All rights reserved.