|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.source.URLRewriter
public final class URLRewriter
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 cocoon
are supported.
"cocoonURL" : The url all links are resolved to
"urlParameterName" : The parameter name to use for links (all links are
then "cocoonURL?urlParameterName=LINK"
"baseURL" : The current URL to rewrite
Field Summary | |
---|---|
static String |
MODE_COCOON
|
static String |
MODE_NONE
|
static String |
PARAMETER_COCOON_URL
|
static String |
PARAMETER_MODE
|
static String |
PARAMETER_PARAMETER_NAME
|
static String |
PARAMETER_URL
|
Constructor Summary | |
---|---|
URLRewriter(Parameters configuration,
ContentHandler contentHandler)
Create a new rewriter |
|
URLRewriter(Parameters configuration,
ContentHandler contentHandler,
LexicalHandler lexicalHandler)
Create a new rewriter |
Method Summary | |
---|---|
void |
characters(char[] ary,
int start,
int length)
SAX Event Handling |
void |
comment(char[] ary,
int start,
int length)
SAX Event Handling |
void |
endCDATA()
SAX Event Handling |
void |
endDocument()
SAX Event Handling |
void |
endDTD()
SAX Event Handling |
void |
endElement(String namespace,
String name,
String raw)
SAX Event Handling |
void |
endEntity(String name)
SAX Event Handling |
void |
endPrefixMapping(String prefix)
SAX Event Handling |
void |
ignorableWhitespace(char[] ary,
int start,
int length)
SAX Event Handling |
void |
processingInstruction(String target,
String data)
SAX Event Handling |
void |
setDocumentLocator(Locator locator)
SAX Event Handling |
void |
skippedEntity(String name)
SAX Event Handling |
void |
startCDATA()
SAX Event Handling |
void |
startDocument()
SAX Event Handling |
void |
startDTD(String name,
String public_id,
String system_id)
SAX Event Handling |
void |
startElement(String namespace,
String name,
String raw,
Attributes attr)
SAX Event Handling |
void |
startEntity(String name)
SAX Event Handling |
void |
startPrefixMapping(String prefix,
String uri)
SAX Event Handling |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PARAMETER_MODE
public static final String MODE_NONE
public static final String MODE_COCOON
public static final String PARAMETER_PARAMETER_NAME
public static final String PARAMETER_URL
public static final String PARAMETER_COCOON_URL
Constructor Detail |
---|
public URLRewriter(Parameters configuration, ContentHandler contentHandler, LexicalHandler lexicalHandler) throws ProcessingException
ProcessingException
public URLRewriter(Parameters configuration, ContentHandler contentHandler) throws ProcessingException
ProcessingException
Method Detail |
---|
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
public void startElement(String namespace, String name, String raw, Attributes attr) throws SAXException
startElement
in interface ContentHandler
SAXException
public void endElement(String namespace, String name, String raw) throws SAXException
endElement
in interface ContentHandler
SAXException
public void characters(char[] ary, int start, int length) throws SAXException
characters
in interface ContentHandler
SAXException
public void ignorableWhitespace(char[] ary, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
SAXException
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
SAXException
public void startDTD(String name, String public_id, String system_id) throws SAXException
startDTD
in interface LexicalHandler
SAXException
public void endDTD() throws SAXException
endDTD
in interface LexicalHandler
SAXException
public void startEntity(String name) throws SAXException
startEntity
in interface LexicalHandler
SAXException
public void endEntity(String name) throws SAXException
endEntity
in interface LexicalHandler
SAXException
public void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
SAXException
public void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
SAXException
public void comment(char[] ary, int start, int length) throws SAXException
comment
in interface LexicalHandler
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |