Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » sunshine » helpers » [javadoc | source]
org.apache.cocoon.sunshine.helpers
public final class: URLRewriter [javadoc | source]
java.lang.Object
   org.apache.cocoon.sunshine.helpers.URLRewriter

All Implemented Interfaces:
    XMLConsumer

This is an XMLConsumer which rewrites the stream according to the configuration. The configuration can have the following parameters: "rewriteURLMode" : The mode to rewrite the urls. Currently none and sunShine are supported. "sunShineURL" : The url all links are resolved to "urlParameterName" : The parameter name to use for links (all links are then "sunShineURL?urlParameterName=LINK" "baseURL" : The current URL to rewrite
Field Summary
public static final  String PARAMETER_MODE     
public static final  String PARAMETER_PARAMETER_NAME     
public static final  String PARAMETER_URL     
public static final  String PARAMETER_SUNSHINE_URL     
Constructor:
 public URLRewriter(Parameters configuration,
    ContentHandler contentHandler,
    LexicalHandler lexicalHandler) throws ProcessingException 
    Create a new rewriter
Method from org.apache.cocoon.sunshine.helpers.URLRewriter Summary:
characters,   comment,   endCDATA,   endDTD,   endDocument,   endElement,   endEntity,   endPrefixMapping,   ignorableWhitespace,   processingInstruction,   setDocumentLocator,   skippedEntity,   startCDATA,   startDTD,   startDocument,   startElement,   startEntity,   startPrefixMapping
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.sunshine.helpers.URLRewriter Detail:
 public  void characters(char[] ary,
    int start,
    int length) throws SAXException 
    SAX Event Handling
 public  void comment(char[] ary,
    int start,
    int length) throws SAXException 
    SAX Event Handling
 public  void endCDATA() throws SAXException 
    SAX Event Handling
 public  void endDTD() throws SAXException 
    SAX Event Handling
 public  void endDocument() throws SAXException 
    SAX Event Handling
 public  void endElement(String namespace,
    String name,
    String raw) throws SAXException 
    SAX Event Handling
 public  void endEntity(String name) throws SAXException 
    SAX Event Handling
 public  void endPrefixMapping(String prefix) throws SAXException 
    SAX Event Handling
 public  void ignorableWhitespace(char[] ary,
    int start,
    int length) throws SAXException 
    SAX Event Handling
 public  void processingInstruction(String target,
    String data) throws SAXException 
    SAX Event Handling
 public  void setDocumentLocator(Locator locator) 
    SAX Event Handling
 public  void skippedEntity(String name) throws SAXException 
    SAX Event Handling
 public  void startCDATA() throws SAXException 
    SAX Event Handling
 public  void startDTD(String name,
    String public_id,
    String system_id) throws SAXException 
    SAX Event Handling
 public  void startDocument() throws SAXException 
    SAX Event Handling
 public  void startElement(String namespace,
    String name,
    String raw,
    Attributes attr) throws SAXException 
    SAX Event Handling
 public  void startEntity(String name) throws SAXException 
    SAX Event Handling
 public  void startPrefixMapping(String prefix,
    String uri) throws SAXException 
    SAX Event Handling