public abstract class AbstractDSpaceTransformer extends AbstractWingTransformer implements DSpaceTransformer
| Modifier and Type | Field and Description |
|---|---|
protected Context |
context |
protected String |
contextPath |
protected EPerson |
eperson |
protected org.apache.cocoon.components.flow.WebContinuation |
knot |
protected Map |
objectModel |
protected org.apache.avalon.framework.parameters.Parameters |
parameters |
protected String |
servletPath |
protected String |
sitemapURI |
protected String |
url |
| Constructor and Description |
|---|
AbstractDSpaceTransformer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBody(Body body)
Abstract implementations of WingTransformer.
|
void |
addOptions(Options options)
Abstract implementation of WingTransformer.
|
void |
addPageMeta(PageMeta pageMeta)
Abstract implementation of WingTransformer.
|
void |
addUserMeta(UserMeta userMeta)
Abstract implementation of WingTransformer.
|
static String |
decodeFromURL(String encodedString)
Decode the given string from URL transmission.
|
void |
dispose()
Dispose.
|
static String |
encodeForURL(String unencodedString)
Encode the given string for URL transmission.
|
static String |
generateURL(String baseURL,
Map<String,String> parameters)
Generate a URL for the given base URL with the given parameters.
|
String |
getComponentName()
Return the name of this component.
|
ObjectManager |
getObjectManager()
Return the ObjectManager associated with this component.
|
protected void |
handleException(Exception e)
Handle exceptions that occurred during the document's creation.
|
void |
recycle()
Recycle.
|
void |
setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters parameters) |
createWingDocument, endDocument, endElement, endPrefixMapping, getDefaultMessageCatalogue, message, message, setupWing, startDocument, startElement, startPrefixMappingcharacters, comment, endCDATA, endDTD, endEntity, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startEntitysetConsumer, setContentHandler, setLexicalHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntitycomment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntityprotected Map objectModel
protected Context context
protected String contextPath
protected String servletPath
protected String sitemapURI
protected String url
protected org.apache.avalon.framework.parameters.Parameters parameters
protected EPerson eperson
protected org.apache.cocoon.components.flow.WebContinuation knot
public void setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters parameters)
throws org.apache.cocoon.ProcessingException,
SAXException,
IOException
setup in interface org.apache.cocoon.sitemap.SitemapModelComponentorg.apache.cocoon.ProcessingExceptionSAXExceptionIOExceptionprotected void handleException(Exception e) throws SAXException
AbstractWingTransformerhandleException in class AbstractWingTransformere - The thrown exceptionSAXException - unconditionally.public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException, org.apache.cocoon.ProcessingException
AbstractWingTransformeraddBody in interface DSpaceTransformeraddBody in interface WingTransformeraddBody in class AbstractWingTransformerbody - to be added.SAXException - whenever.WingException - whenever.UIException - whenever.SQLException - whenever.IOException - whenever.AuthorizeException - whenever.org.apache.cocoon.ProcessingException - whenever.public void addOptions(Options options) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException
AbstractWingTransformeraddOptions in interface DSpaceTransformeraddOptions in interface WingTransformeraddOptions in class AbstractWingTransformeroptions - to be added.SAXException - whenever.WingException - whenever.UIException - whenever.SQLException - whenever.IOException - whenever.AuthorizeException - whenever.public void addUserMeta(UserMeta userMeta) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException
AbstractWingTransformeraddUserMeta in interface DSpaceTransformeraddUserMeta in interface WingTransformeraddUserMeta in class AbstractWingTransformeruserMeta - to be added.SAXException - whenever.WingException - whenever.UIException - whenever.SQLException - whenever.IOException - whenever.AuthorizeException - whenever.public void addPageMeta(PageMeta pageMeta) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException
AbstractWingTransformeraddPageMeta in interface DSpaceTransformeraddPageMeta in interface WingTransformeraddPageMeta in class AbstractWingTransformerpageMeta - to be added.SAXException - whenever.WingException - whenever.UIException - whenever.SQLException - whenever.IOException - whenever.AuthorizeException - whenever.public ObjectManager getObjectManager()
AbstractWingTransformergetObjectManager in class AbstractWingTransformerpublic String getComponentName()
AbstractWingTransformergetComponentName in interface DSpaceTransformergetComponentName in interface WingTransformergetComponentName in class AbstractWingTransformerpublic static String encodeForURL(String unencodedString) throws UIException
unencodedString - The unencoded string.UIException - if the encoding is unsupported.public static String decodeFromURL(String encodedString) throws UIException
encodedString - The encoded string.UIException - if the encoding is unsupported.public static String generateURL(String baseURL, Map<String,String> parameters)
Example:
Map<String,String> parameters = new Map<String,String>();
parameters.put("arg1","value1");
parameters.put("arg2","value2");
parameters.put("arg3","value3");
String url = genrateURL("/my/url",parameters);
would result in the string:
url == "/my/url?arg1=value1&arg2=value2&arg3=value3"baseURL - The baseURL without any parameters.parameters - The parameters to be encoded on in the URL.public void recycle()
AbstractWingTransformerrecycle in interface org.apache.avalon.excalibur.pool.Recyclablerecycle in class AbstractWingTransformerpublic void dispose()
AbstractWingTransformerdispose in class AbstractWingTransformerCopyright © 2016 DuraSpace. All rights reserved.