All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.jigsaw.pics.LabelBureauResource
java.lang.Object
|
+----org.w3c.tools.resources.AttributeHolder
|
+----org.w3c.tools.resources.Resource
|
+----org.w3c.tools.resources.FramedResource
|
+----org.w3c.jigsaw.pics.LabelBureauResource
- public class LabelBureauResource
- extends FramedResource
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.
-
ATTR_BUREAU_DEBUG
- Attribute index - debug flag.
-
ATTR_BUREAU_IDENTIFIER
- Attribute index - Our label bureau identifier.
-
ATTR_BUREAU_SERVICES
- Attribute index - Our label bureau identifier.
-
bureau
- Our loaded label bureau:
-
LabelBureauResource()
-
-
acquireBureau()
- Check that we have loaded our bureau, or load it.
-
getBureauIdentifier()
- Get our label bureau identifier.
-
getDebugFlag()
-
-
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.
-
getServices()
- Get the service list
-
getTreeLabels(Request, int, String[], String[], URLDecoder)
- Get tree labels.
-
initialize(Object[])
- Initialize the frames of that framed resource.
-
makePICSErrorReply(Request, String)
-
-
makePICSReply(Request, StringBuffer)
- Build a PICS reply out of the given content.
-
setValue(int, Object)
- Set some of this resource attribute.
ATTR_BUREAU_IDENTIFIER
protected static int ATTR_BUREAU_IDENTIFIER
- Attribute index - Our label bureau identifier.
ATTR_BUREAU_SERVICES
protected static int ATTR_BUREAU_SERVICES
- Attribute index - Our label bureau identifier.
ATTR_BUREAU_DEBUG
protected static int ATTR_BUREAU_DEBUG
- Attribute index - debug flag.
bureau
protected LabelBureauInterface bureau
- Our loaded label bureau:
LabelBureauResource
public LabelBureauResource()
getBureauIdentifier
public File getBureauIdentifier()
- Get our label bureau identifier.
getServices
public String[] getServices()
- Get the service list
getDebugFlag
public boolean getDebugFlag()
acquireBureau
protected final void acquireBureau()
- Check that we have loaded our bureau, or load it.
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.
makePICSErrorReply
protected Reply makePICSErrorReply(Request request,
String msg)
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.
- Parameters:
- request - the incomminmg request
- format - the pics format
- urls - the urls to label
- services - the services to ask
- data - the URLDecoder
- Returns:
- A Reply instance
- Throws: HTTPException
- if processing the request failed.
getNormalLabels
protected Reply getNormalLabels(Request request,
int format,
String urls[],
String services[],
URLDecoder data) throws HTTPException
- Get the normal (generic or specific) labels.
- Parameters:
- request - the incomminmg request
- format - the pics format
- urls - the urls to label
- services - the services to ask
- data - the URLDecoder
- Returns:
- A Reply instance
- Throws: HTTPException
- if processing the request failed.
getTreeLabels
protected Reply getTreeLabels(Request request,
int format,
String urls[],
String services[],
URLDecoder data) throws HTTPException
- Get tree labels.
- Parameters:
- request - the incomminmg request
- format - the pics format
- urls - the urls to label
- services - the services to ask
- data - the URLDecoder
- Returns:
- A Reply instance
- Throws: HTTPException
- if processing the request failed.
getGenericTreeLabels
protected Reply getGenericTreeLabels(Request request,
int format,
String urls[],
String services[],
URLDecoder data) throws HTTPException
- Get generic tree labels.
- Parameters:
- request - the incomminmg request
- format - the pics format
- urls - the urls to label
- services - the services to ask
- data - the URLDecoder
- Returns:
- A Reply instance
- Throws: HTTPException
- if processing the request failed.
setValue
public void setValue(int idx,
Object value)
- Set some of this resource attribute.
- Overrides:
- setValue in class FramedResource
initialize
public void initialize(Object values[])
- Initialize the frames of that framed resource.
- Overrides:
- initialize in class FramedResource
All Packages Class Hierarchy This Package Previous Next Index