|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.XMLFilterImpl nbi.xmlsec.biocase.protocol.filter.ProtocolFilter nbi.xmlsec.biocase.protocol.filter.ResponseFilter
The ResponseFilter filters responses of the BioCASE protocol. It consists of three internal filters working together:
Field Summary | |
(package private) Diagnostics |
contentDiagnostics
|
(package private) ContentFilter |
contentFilter
Subfilter for the content |
(package private) DiagnosticsFilter |
diagnosticsFilter
Subfilter for the diagnostics |
(package private) HeaderFilter |
headerFilter
Subfilter for the header |
static String |
LN_ROOT
Local name of the element response |
(package private) Response |
response
The parsed response |
(package private) static int |
trackMode
Track mode for the filter stack |
Fields inherited from class nbi.xmlsec.biocase.protocol.filter.ProtocolFilter |
elementStack, filterMode, FILTERMODE_FILTER, FILTERMODE_NONE, FILTERMODE_PARSER, filterRoot, logger, PROT_URI_13, PROT_URI_20 |
Fields inherited from class org.xml.sax.helpers.XMLFilterImpl |
|
Constructor Summary | |
ResponseFilter(String protocolURI,
int filterMode)
Inits the filter instance. |
|
ResponseFilter(XMLReader parent,
String protocolURI,
int filterMode)
Inits the filter instance with specified parent. |
Method Summary | |
protected nbi.xml.sax.SAXElement |
filterElement(nbi.xml.sax.SAXElement element)
Sets the parameters of the content filter (especially the response header) and overwrites the current registration before the content filter is active. |
ContentFilter |
getContentFilter()
Gets the contentFilter |
DiagnosticsFilter |
getDiagnosticsFilter()
Gets the diagnosticsFilter |
HeaderFilter |
getHeaderFilter()
Gets the headerFilter |
protected ResponseFilterParameter |
getParameter()
Gets the parameter of this filter. |
Response |
getResponse()
Gets the response |
protected nbi.xml.sax.SAXElement |
parseComplete(nbi.xml.sax.SAXElement element)
Collects the response from the filters. |
protected nbi.xml.sax.SAXElement |
parseInit(nbi.xml.sax.SAXElement element)
Registers the subfilters for header, content and Diagnostics. |
void |
setContentFilter(ContentFilter contentFilter)
Sets contentFilter |
void |
setDiagnosticsFilter(DiagnosticsFilter diagnosticsFilter)
Sets diagnosticsFilter |
void |
setHeaderFilter(HeaderFilter headerFilter)
Sets headerFilter |
Methods inherited from class nbi.xmlsec.biocase.protocol.filter.ProtocolFilter |
characters, checkFilterParameter, endElement, filterCharacters, getFilterMode, getFilterParameter, getProtocolURI, isParsingComplete, parseElement, registerSubFilter, setFilterParameter, setProtocolURI, startElement, unregisterSubFilter |
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String LN_ROOT
response
static final int trackMode
HeaderFilter headerFilter
ContentFilter contentFilter
DiagnosticsFilter diagnosticsFilter
Response response
Diagnostics contentDiagnostics
Constructor Detail |
public ResponseFilter(String protocolURI, int filterMode)
protocolURI
- protocol version URI of this filter.filterMode
- filterMode of this filter
ProtocolFilter.filterMode
.public ResponseFilter(XMLReader parent, String protocolURI, int filterMode)
parent
- parent reader.protocolURI
- protocol version URI of this filter.filterMode
- filterMode of this filter
ProtocolFilter.filterMode
.Method Detail |
protected nbi.xml.sax.SAXElement parseInit(nbi.xml.sax.SAXElement element) throws SAXException
parseInit
in class ProtocolFilter
element
- The element of the startElement event (contains no value).
SAXException
- If any parsing error occurs.ProtocolFilter.parseInit(SAXElement)
protected nbi.xml.sax.SAXElement filterElement(nbi.xml.sax.SAXElement element) throws SAXException
filterElement
in class ProtocolFilter
element
- The element corresponding to the startElement event.
SAXException
- If any parsing error occurs.ProtocolFilter.parseElement(SAXElement)
protected nbi.xml.sax.SAXElement parseComplete(nbi.xml.sax.SAXElement element) throws SAXException
parseComplete
in class ProtocolFilter
element
- The complete root element (including the value).
SAXException
- If any parsing error occurs.ProtocolFilter.parseComplete(SAXElement)
protected ResponseFilterParameter getParameter()
public ContentFilter getContentFilter()
public void setContentFilter(ContentFilter contentFilter)
contentFilter
- The contentFilter to set.public DiagnosticsFilter getDiagnosticsFilter()
public void setDiagnosticsFilter(DiagnosticsFilter diagnosticsFilter)
diagnosticsFilter
- The diagnosticsFilter to set.public HeaderFilter getHeaderFilter()
public void setHeaderFilter(HeaderFilter headerFilter)
headerFilter
- The headerFilter to set.public Response getResponse()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |