|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.tools.resources.LookupResult
public class LookupResult
This class is the result of the lookup algorithm.
Field Summary | |
---|---|
protected ResourceFilter[] |
filters
The current set of computed filters to be applied on the resource. |
static int |
FILTERS_INCR
|
static int |
FILTERS_INIT_SIZE
|
protected int |
flength
The number of registered filters at this point. |
protected ReplyInterface |
reply
Any reply that can be computed during lookup. |
protected ResourceReference |
target
The current target of the lookup operation. |
Constructor Summary | |
---|---|
LookupResult(ResourceReference target)
Create a new empty lookup result object. |
Method Summary | |
---|---|
void |
addFilter(ResourceFilter filter)
Add a filter, to be invoked by the resource's perform
method. |
void |
addFilters(ResourceFilter[] fs)
Add a set of filters to be invoked by the resource's
perform method. |
ResourceFilter[] |
getFilters()
Get the full list of filters to be applied when performing on the resource. |
ReplyInterface |
getReply()
Get the reply generated during the lookup. |
ResourceReference |
getTarget()
Get the current lookup target of the lookup in progress. |
boolean |
hasReply()
Does this LookupResult has a Reply. |
void |
setReply(ReplyInterface reply)
Set the reply generated during the lookup. |
void |
setTarget(ResourceReference target)
Set the current target of the lookup operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FILTERS_INIT_SIZE
public static final int FILTERS_INCR
protected ReplyInterface reply
protected ResourceReference target
protected ResourceFilter[] filters
protected int flength
Constructor Detail |
---|
public LookupResult(ResourceReference target)
target
- The root target of the lookup operation to run.Method Detail |
---|
public ResourceReference getTarget()
public void setTarget(ResourceReference target)
target
- The new current target of the lookup in progress.public ReplyInterface getReply()
public void setReply(ReplyInterface reply)
reply
- A ReplyInterface instance.public boolean hasReply()
public void addFilter(ResourceFilter filter)
perform
method.
filter
- The HTTPFIlter to be called.public void addFilters(ResourceFilter[] fs)
perform
method.
filters
- The array of filters to register.public ResourceFilter[] getFilters()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |