| org.w3c.tools.resources.ResourceFilter org.w3c.jigsaw.pics.PICSFilter
PICSFilter | public class PICSFilter extends ResourceFilter (Code) | | This package implements a PICS filter. The PICS filters allows server
administrator to rate the documents they deliver. The references for this
protocol is here.
The PICS filter defines the following attributes:
The list of parameters
Parameter name |
Semantics |
Default value |
Type |
bureau |
The label bureau to query for this entity labels. |
none |
java.lang.String |
|
ATTR_BUREAU_IDENTIFIER | protected static int ATTR_BUREAU_IDENTIFIER(Code) | | Attribute index - The identifier of our bureau.
|
acquireBureau | final protected void acquireBureau()(Code) | | Make sure our label bureau is loaded.
|
getBureauIdentifier | public File getBureauIdentifier()(Code) | | Get our label bureau identifier.
|
isPICSQuery | protected HttpBag isPICSQuery(Request request) throws HTTPException(Code) | | Check the query to examine if it requires some PICS handling.
If this is the case, it returns a Bag object
corresponding to the part of the Accept-Protocol header that
relates with PICS.
Parameters: request - The request to be checked. A Bag object if PICS handling required, nullotherwise. exception: HTTPException - if processing the request failed. |
outgoingFilter | public ReplyInterface outgoingFilter(RequestInterface req, ReplyInterface rep) throws HTTPException(Code) | | The outgoingFilter method.
This method is the one that gets called by Jigsaw core. By default it
will call the simpler outgoingFilter method that takes
only the request and the reply as parameters.
Parameters: request - The request that has been processed. Parameters: reply - The original reply as emitted by the resource. Parameters: filters - The whole filter that applies to the resource. Parameters: i - The current index of filters. The i filter is ourself,filters with lower indexes have already been applied, and filters withgreater indexes are still to be applied. A Reply instance, if that filter know how to complete therequest processing, or null if reminaing filtersare to be called by Jigsaw engine. exception: HTTPException - If processing should be interrupted,because an abnormal situation occured. |
Methods inherited from org.w3c.tools.resources.ResourceFilter | public ReplyInterface exceptionFilter(RequestInterface request, ProtocolException ex, FilterInterface filters, int i)(Code)(Java Doc) public Resource getTargetResource()(Code)(Java Doc) public ReplyInterface ingoingFilter(RequestInterface request) throws ProtocolException(Code)(Java Doc) public ReplyInterface ingoingFilter(RequestInterface request, FilterInterface filters, int i) throws ProtocolException(Code)(Java Doc) public void initialize(Hashtable defs)(Code)(Java Doc) public boolean lookup(LookupState ls, LookupResult lr) throws ProtocolException(Code)(Java Doc) public ReplyInterface outgoingFilter(RequestInterface request, ReplyInterface reply) throws ProtocolException(Code)(Java Doc) public ReplyInterface outgoingFilter(RequestInterface request, ReplyInterface reply, FilterInterface filters, int fidx) throws ProtocolException(Code)(Java Doc) public OutputStream outputFilter(RequestInterface request, ReplyInterface reply, OutputStream output)(Code)(Java Doc) public void pickleValues(Hashtable defs)(Code)(Java Doc)
|
|
|