|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.XMLFilterImpl | +--org.rddl.sax.RDDLFilter
Field Summary | |
protected boolean |
bRDDLNamespace
|
protected java.net.URLConnection |
connection
|
protected boolean |
containers
|
java.lang.String |
contentURI
contentURI |
protected java.lang.String |
m_contentType
|
protected java.lang.String |
m_userAgent
|
protected Namespace |
namespace
|
java.lang.String |
namespaceURI
namespaceURI |
Constructor Summary | |
RDDLFilter()
|
Method Summary | |
java.net.URLConnection |
getConnection()
getConnection |
Namespace |
getNamespace()
|
Resource |
getResource(java.lang.String nature,
java.lang.String purpose)
Algorithm for obtaining resource is roughly: |
void |
parse(org.xml.sax.InputSource insrc)
|
void |
parse(java.lang.String nsURI)
|
void |
setContentType(java.lang.String val)
|
void |
setFeature(java.lang.String feature,
boolean flag)
|
void |
setUserAgent(java.lang.String val)
|
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setParent, setProperty, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.String namespaceURI
namespaceURI
The URI of the namespace we are resolving
public java.lang.String contentURI
contentURI
The URI of the root element of the resolved document.
protected boolean bRDDLNamespace
protected java.net.URLConnection connection
protected java.lang.String m_contentType
protected java.lang.String m_userAgent
protected Namespace namespace
protected boolean containers
Constructor Detail |
public RDDLFilter()
Method Detail |
public Namespace getNamespace()
public java.net.URLConnection getConnection() throws java.net.MalformedURLException, java.io.IOException
getConnection
A helper class to build an HTTP request of the namespace URI.
userAgent
- an optional user-agentcontentType
- an optional content-type for an accept headerpublic Resource getResource(java.lang.String nature, java.lang.String purpose) throws AmbiguousMappingException, java.io.IOException, org.xml.sax.SAXException
Algorithm for obtaining resource is roughly:
-If this is a RDDL namespace return resource of arcrole. Well known arcroles are mapped to root namespace of resource.
-If this is a non-RDDL namespace, and if arcrole == root namespace URI return resource. If this provides no result match arcrole to content-type
arcrole
- AmbiguousMappingException
- -- more than one resource uses this arcrolepublic void parse(java.lang.String nsURI) throws java.io.IOException, org.xml.sax.SAXException
parse
in class org.xml.sax.helpers.XMLFilterImpl
nsURI
- a namespace URI to parse as RDDL if possiblepublic void parse(org.xml.sax.InputSource insrc) throws java.io.IOException, org.xml.sax.SAXException
parse
in class org.xml.sax.helpers.XMLFilterImpl
insrc
- An InputSource to parse as RDDL if possiblepublic void setFeature(java.lang.String feature, boolean flag) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setFeature
in class org.xml.sax.helpers.XMLFilterImpl
public void setContentType(java.lang.String val)
public void setUserAgent(java.lang.String val)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |