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

Field Summary
 
Fields inherited from class ORG.oclc.openurl.services.AbstractService
contextObject
 
Constructor Summary
Redirect(java.lang.String baseURL, OpenURLResolver resolver, Descriptor descriptor, ContextObject contextObject)
           
 
Method Summary
 byte[] getBytes()
           
 java.lang.String getContentType()
           
 java.lang.String getRedirectURL()
           
 int getStatus()
           
 
Methods inherited from class ORG.oclc.openurl.services.AbstractService
getDescriptor, getInitParams, getOpenURLResolver, init, serviceFactory, serviceFactory, serviceFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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