All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.tools.resources.LookupResult
java.lang.Object
|
+----org.w3c.tools.resources.LookupResult
- public class LookupResult
- extends Object
This class is the result of the lookup algorithm.
-
filters
- The current set of computed filters to be applied on the resource.
-
FILTERS_INCR
-
-
FILTERS_INIT_SIZE
-
-
flength
- The number of registered filters at this point.
-
reply
- Any reply that can be computed during lookup.
-
target
- The current target of the lookup operation.
-
LookupResult(ResourceReference)
- Create a new empty lookup result object.
-
addFilter(ResourceFilter)
- Add a filter, to be invoked by the resource's
perform
method.
-
addFilters(ResourceFilter[])
- Add a set of filters to be invoked by the resource's
perform
method.
-
getFilters()
- Get the full list of filters to be applied when performing on the
resource.
-
getReply()
- Get the reply generated during the lookup.
-
getTarget()
- Get the current lookup target of the lookup in progress.
-
hasReply()
- Does this LookupResult has a Reply.
-
setReply(ReplyInterface)
- Set the reply generated during the lookup.
-
setTarget(ResourceReference)
- Set the current target of the lookup operation.
FILTERS_INIT_SIZE
public static final int FILTERS_INIT_SIZE
FILTERS_INCR
public static final int FILTERS_INCR
reply
protected ReplyInterface reply
- Any reply that can be computed during lookup.
target
protected ResourceReference target
- The current target of the lookup operation.
filters
protected ResourceFilter filters[]
- The current set of computed filters to be applied on the resource.
flength
protected int flength
- The number of registered filters at this point.
LookupResult
public LookupResult(ResourceReference target)
- Create a new empty lookup result object.
- Parameters:
- target - The root target of the lookup operation to run.
getTarget
public ResourceReference getTarget()
- Get the current lookup target of the lookup in progress.
- Returns:
- An ResourceReference, that may be null.
setTarget
public void setTarget(ResourceReference target)
- Set the current target of the lookup operation.
- Parameters:
- target - The new current target of the lookup in progress.
getReply
public ReplyInterface getReply()
- Get the reply generated during the lookup.
- Returns:
- A ReplyInterface instance.
setReply
public void setReply(ReplyInterface reply)
- Set the reply generated during the lookup.
- Parameters:
- reply - A ReplyInterface instance.
hasReply
public boolean hasReply()
- Does this LookupResult has a Reply.
- Returns:
- a boolean.
addFilter
public void addFilter(ResourceFilter filter)
- Add a filter, to be invoked by the resource's
perform
method.
- Parameters:
- filter - The HTTPFIlter to be called.
addFilters
public void addFilters(ResourceFilter fs[])
- Add a set of filters to be invoked by the resource's
perform
method.
- Parameters:
- filters - The array of filters to register.
getFilters
public ResourceFilter[] getFilters()
- Get the full list of filters to be applied when performing on the
resource.
- Returns:
- An array of ResourceFilter instances, or null
if none is defined.
All Packages Class Hierarchy This Package Previous Next Index