|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.knipp.rritoolkit.DefaultResponseFactory.ListRule
de.knipp.rritoolkit.DefaultResponseFactory.ClassRule
protected class DefaultResponseFactory.ClassRule
rule that uses the request for the selection of the suitable response
Field Summary | |
---|---|
private java.lang.Class<? extends Request> |
matchClass
the class that the request must match |
private boolean |
withSubclasses
flag whether subclasses of the classes also match |
Constructor Summary | |
---|---|
DefaultResponseFactory.ClassRule(int thePriority,
java.lang.Class<? extends Response> theClass,
java.lang.Class<? extends Request> theMatchClass,
boolean withSub)
constructor |
Method Summary | |
---|---|
boolean |
matches(org.w3c.dom.Document doc,
Request request)
test whether the rule matches |
boolean |
matches(KVMultiList list,
Request request)
test whether the rule matches |
private boolean |
matches(Request request)
test whether the rule matches |
Methods inherited from class de.knipp.rritoolkit.DefaultResponseFactory.ListRule |
---|
compareTo, getResponseClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.Class<? extends Request> matchClass
private boolean withSubclasses
Constructor Detail |
---|
public DefaultResponseFactory.ClassRule(int thePriority, java.lang.Class<? extends Response> theClass, java.lang.Class<? extends Request> theMatchClass, boolean withSub)
thePriority
- the priority. The smaller the number, the
earlier the rule is used.theClass
- the class that shall be instantiatedtheMatchClass
- the class that the request must matchwithSub
- whether subclasses also matchMethod Detail |
---|
private boolean matches(Request request)
request
- the request, may be null
true
if the rule matchespublic boolean matches(KVMultiList list, Request request)
matches
in class DefaultResponseFactory.ListRule
list
- the listrequest
- the request, may be null
true
if the rule matchespublic boolean matches(org.w3c.dom.Document doc, Request request)
matches
in class DefaultResponseFactory.ListRule
doc
- the documentrequest
- the request, may be null
true
if the rule matches
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |