    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.jigsaw.pics.LabelBureauResource

    java.lang.Object
       |
       +----w3c.tools.store.AttributeHolder
               |
               +----w3c.tools.store.Resource
                       |
                       +----w3c.jigsaw.resources.HTTPResource
                               |
                               +----w3c.jigsaw.resources.FilteredResource
                                       |
                                       +----w3c.jigsaw.resources.FileResource
                                               |
                                               +----w3c.jigsaw.forms.PostableResource
                                                       |
                                                       +----w3c.jigsaw.pics.LabelBureauResource

public class LabelBureauResource
extends PostableResource

An HTTP interface to query a Label bureau. This conforms to the PICS protocol specification.

This entity defines the following parameter:

The list of parameters
Parameter name | Semantics | Default value | Type
--- | --- | --- | ---
bureau | Name of the LabelBureau database | none | java.lang.String

This entity also inherits the parameters from the PostableResource.

See Also:
  PostableResource

##

APPLICATION_PICSLABEL
ATTR_BUREAU_IDENTIFIER
  Attribute index - Our label bureau identifier.
bureau
  Our loaded lable bureau:

##

LabelBureauResource()

##

acquireBureau()
  Check that we have loaded our bureau, or load it.
getBureauIdentifier()
  Get our label bureau identifier.
getGenericLabels(Request, int, String[], String[], URLDecoder)
  Get the generic labels for a set of service and a set of urls.
getGenericTreeLabels(Request, int, String[], String[], URLDecoder)
  Get generic tree labels.
getNormalLabels(Request, int, String[], String[], URLDecoder)
  Get the normal (generic or specific) labels.
getTreeLabels(Request, int, String[], String[], URLDecoder)
  Get tree labels.
handle(Request, URLDecoder)
  Handle the form submission, after posted data parsing.
initialize(Object[])
  Setup the list of allowed methods.
makePICSReply(Request, StringBuffer)
  Build a PICS reply out of the given content.
parseFormat(Request, String)
  Get the integer code for the String based PICS format.
parseURLs(String[])
  Parse the URLs given in the URLDecoder, as the u field.

##

APPLICATION_PICSLABEL

     public static HttpMimeType APPLICATION_PICSLABEL

ATTR_BUREAU_IDENTIFIER

     protected static int ATTR_BUREAU_IDENTIFIER

  Attribute index - Our label bureau identifier.

bureau

     protected LabelBureauInterface bureau

  Our loaded lable bureau:

##

LabelBureauResource

     public LabelBureauResource()

##

getBureauIdentifier

     public File getBureauIdentifier()

  Get our label bureau identifier.

acquireBureau

     protected final void acquireBureau()

  Check that we have loaded our bureau, or load it.

parseFormat

     protected int parseFormat(Request request,
                               String format) throws HTTPException

  Get the integer code for the String based PICS format.

  Parameters:
    request - The request to be handled.
    format - The string representation of the format.
  Returns:
    An LabelBureauInterface defined format code.
  See Also:
    LabelBureauInterface

parseURLs

     protected String[] parseURLs(String us[])

  Parse the URLs given in the URLDecoder, as the u field. This method just unquote any quoted URLs, before sending them back.

  Parameters:
    data - The URLDecoder to get data from.
  Returns:
    An array of String, properly parsed.

makePICSReply

     protected Reply makePICSReply(Request request,
                                   StringBuffer buffer)

  Build a PICS reply out of the given content.

  Parameters:
    request - The request to reply to.
    sb - The StringBuffer containing the content to send back.

getGenericLabels

     protected Reply getGenericLabels(Request request,
                                      int format,
                                      String urls[],
                                      String services[],
                                      URLDecoder data) throws HTTPException

  Get the generic labels for a set of service and a set of urls.

getNormalLabels

     protected Reply getNormalLabels(Request request,
                                     int format,
                                     String urls[],
                                     String services[],
                                     URLDecoder data) throws HTTPException

  Get the normal (generic or specific) labels.

getTreeLabels

     protected Reply getTreeLabels(Request request,
                                   int format,
                                   String urls[],
                                   String services[],
                                   URLDecoder data) throws HTTPException

  Get tree labels.

getGenericTreeLabels

     protected Reply getGenericTreeLabels(Request request,
                                          int format,
                                          String urls[],
                                          String services[],
                                          URLDecoder data) throws HTTPException

  Get generic tree labels.

handle

     public Reply handle(Request request,
                         URLDecoder data) throws HTTPException

  Handle the form submission, after posted data parsing.

  Overrides:
    handle in class PostableResource

initialize

     public void initialize(Object values[])

  Setup the list of allowed methods.

  Overrides:
    initialize in class PostableResource

    All Packages  Class Hierarchy  This Package  Previous  Next  Index