ORG.oclc.openurl.services
Class Redirect
java.lang.Object
|
+--ORG.oclc.openurl.services.AbstractService
|
+--ORG.oclc.openurl.services.Redirect
- public abstract class Redirect
- extends AbstractService
This class is an example of how to perform a specified (or implied) service
on an OpenURL ContextObject. In this case, we're merely returning the
normalized (XML) ContextObject with an XSL Stylesheet reference included
for display in a browser.
- Author:
- Jeffrey A. Young
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Redirect
public Redirect(java.lang.String baseURL,
OpenURLResolver resolver,
Descriptor descriptor,
ContextObject contextObject)
throws javax.xml.transform.TransformerConfigurationException,
javax.xml.transform.TransformerException,
org.xml.sax.SAXException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
OpenURLException
- Parameters:
contextObject -
- Throws:
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
OpenURLException
getBytes
public byte[] getBytes()
- Specified by:
getBytes in class AbstractService
- Returns:
- the byte array produced by the service
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType in class AbstractService
getStatus
public int getStatus()
- Specified by:
getStatus in class AbstractService
getRedirectURL
public java.lang.String getRedirectURL()
- Specified by:
getRedirectURL in class AbstractService