public class MetaRefreshFilter extends BaseFilter
Modifier and Type | Field and Description |
---|---|
protected String |
m_redirect |
m_parent
ACCEPT_CHARSET, CONTENT_CHARSET, DEFAULT_CHARSET, m_contentHandler, m_dtdHandler, m_entityResolver, m_errorHandler, m_features, m_lexicalHandler, m_properties, m_recognizedFeatures, m_recognizedProperties, PROPERTY_LEXICAL_HANDLER
Constructor and Description |
---|
MetaRefreshFilter() |
Modifier and Type | Method and Description |
---|---|
String |
getRedirect() |
void |
setRedirect(String redirect) |
void |
startDocument()
Receive notification of the beginning of a document.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
Receive notification of the beginning of an element.
|
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, error, fatalError, getParent, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setParent, setProperty, skippedEntity, startCDATA, startDTD, startEntity, startPrefixMapping, unparsedEntityDecl, warning
getCharacterStream, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, setFeature
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, setFeature
protected String m_redirect
public void startDocument() throws SAXException
BaseFilter
The SAX parser will invoke this method only once, before any
other event callbacks (except for setDocumentLocator
).
startDocument
in interface ContentHandler
startDocument
in class BaseFilter
SAXException
- Any SAX exception, possibly
wrapping another exception.BaseFilter.endDocument()
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
BaseFilter
The Parser will invoke this method at the beginning of every
element in the XML document; there will be a corresponding
endElement
event for every startElement event
(even when the element is empty). All of the element's content will be
reported, in order, before the corresponding endElement
event.
This event allows up to three name components for each element:
Any or all of these may be provided, depending on the values of the http://xml.org/sax/features/namespaces and the http://xml.org/sax/features/namespace-prefixes properties:
Note that the attribute list provided will contain only
attributes with explicit values (specified or defaulted):
#IMPLIED attributes will be omitted. The attribute list
will contain attributes used for Namespace declarations
(xmlns* attributes) only if the
http://xml.org/sax/features/namespace-prefixes
property is true (it is false by default, and support for a
true value is optional).
Like characters()
, attribute values may have
characters that need more than one char
value.
startElement
in interface ContentHandler
startElement
in class BaseFilter
uri
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.localName
- The local name (without prefix), or the
empty string if Namespace processing is not being
performed.qName
- The qualified name (with prefix), or the
empty string if qualified names are not available.atts
- The attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object.SAXException
- Any SAX exception, possibly
wrapping another exception.BaseFilter.endElement(java.lang.String, java.lang.String, java.lang.String)
,
Attributes
public String getRedirect()
public void setRedirect(String redirect)