All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.admin.PlainRemoteResource

java.lang.Object
   |
   +----org.w3c.jigsaw.admin.PlainRemoteResource

public class PlainRemoteResource
extends Object
implements RemoteResource

Variable Index

 o admin
The client side admin context
 o attributes
The remote resource set of attributes.
 o classes
The remote resource class hierarchy.
 o frames
Set of attached frames.
 o identifier
The name of that resource (ie it's identifier attribute).
 o iscontainer
Is that resource a container resource ?
 o isDirectoryResource
Is that resource a directory resource ?
 o isframed
Is that resource a framed resource ?
 o parent
The name of the parent of that resource, as an URL.
 o url
The admin URL for the wrapped resource.
 o values
The remote resource attribute values.

Method Index

 o createRequest()
 o delete()
Delete that resource, and detach it from its container.
 o dump(PrintStream)
Dump that resource to the given output stream.
 o enumerateResourceIdentifiers()
 o getAttributes()
Get the target resource list of attributes.
 o getClassHierarchy()
Get the target resource class hierarchy.
 o getFrames()
Get the frames attached to that resource.
 o getValue(String)
 o getValues(String[])
 o isContainer()
 o isDirectoryResource()
Is is a DirectoryResource
 o isFrame()
 o isFramed()
Is this resource a framed resource ?
 o isFrameURL(URL)
 o loadResource(String)
 o lookupAttribute(String)
 o registerFrame(String, String)
Attach a new frame to that resource.
 o registerResource(String, String)
Register a new resource within this container.
 o reindex()
Reindex the resource's children if this resource is a DirectoryResource.
 o setFrames(RemoteResource[])
 o setValue(String, Object)
 o setValues(String[], Object[])
Set a set of attribute values in one shot.
 o unregisterFrame(RemoteResource)
Unregister a given frame from that resource.
 o updateURL(URL)

Variables

 o admin
 protected AdminContext admin
The client side admin context

 o classes
 protected String classes[]
The remote resource class hierarchy.

 o attributes
 protected Attribute attributes[]
The remote resource set of attributes.

 o values
 protected Object values[]
The remote resource attribute values.

 o iscontainer
 protected boolean iscontainer
Is that resource a container resource ?

 o isDirectoryResource
 protected boolean isDirectoryResource
Is that resource a directory resource ?

 o isframed
 protected boolean isframed
Is that resource a framed resource ?

 o identifier
 protected String identifier
The name of that resource (ie it's identifier attribute).

 o parent
 protected URL parent
The name of the parent of that resource, as an URL.

 o url
 protected URL url
The admin URL for the wrapped resource.

 o frames
 protected RemoteResource frames[]
Set of attached frames.

Methods

 o createRequest
 protected Request createRequest()
 o lookupAttribute
 protected int lookupAttribute(String attr) throws RemoteAccessException
 o setFrames
 protected void setFrames(RemoteResource frames[])
 o getClassHierarchy
 public String[] getClassHierarchy() throws RemoteAccessException
Get the target resource class hierarchy. This method will return the class hierarchy as an array of String. The first string in the array is the name of the resource class itself, the last string will always be java.lang.Object.

Returns:
A String array givimg the target resource's class description.
Throws: RemoteAccessException
If somenetwork failure occured.
 o reindex
 public void reindex() throws RemoteAccessException
Reindex the resource's children if this resource is a DirectoryResource.

Throws: RemoteAccessException
If it's not a DirectoryResource
 o delete
 public void delete() throws RemoteAccessException
Delete that resource, and detach it from its container.

Throws: RemoteAccessException
If somenetwork failure occured.
 o getAttributes
 public synchronized Attribute[] getAttributes() throws RemoteAccessException
Get the target resource list of attributes. This method returns the target resource attributes description. The resulting array contains instances of the Attribute class, one item per described attributes.

Even though this returns all the attribute resources, only the ones that are advertized as being editable can be set through this interface.

Returns:
An array of Attribute.
Throws: RemoteAccessException
If somenetwork failure occured.
 o getValue
 public Object getValue(String attr) throws RemoteAccessException
Parameters:
name - The attribute whose value is to be fetched, encoded as its name.
Throws: RemoteAccessException
If somenetwork failure occured.
 o getValues
 public Object[] getValues(String attrs[]) throws RemoteAccessException
Parameters:
attrs - The (ordered) set of attributes whose value is to be fetched.
Returns:
An (ordered) set of values, one per queried attribute.
Throws: RemoteAccessException
If somenetwork failure occured.
 o setValue
 public void setValue(String attr,
                      Object value) throws RemoteAccessException
Parameters:
attr - The attribute to set, encoded as it's name.
value - The new value for that attribute.
Throws: RemoteAccessException
If somenetwork failure occured.
 o setValues
 public void setValues(String names[],
                       Object values[]) throws RemoteAccessException
Set a set of attribute values in one shot. This method guarantees that either all setting is done, or none of them are.

Parameters:
attrs - The (ordered) list of attribute to set, encoded as their names.
values - The (ordered) list of values, for each of the above attributes.
Throws: RemoteAccessException
If somenetwork failure occured.
 o updateURL
 public void updateURL(URL parentURL)
 o isContainer
 public boolean isContainer() throws RemoteAccessException
Throws: RemoteAccessException
If somenetwork failure occured.
 o isDirectoryResource
 public boolean isDirectoryResource() throws RemoteAccessException
Is is a DirectoryResource

Throws: RemoteAccessException
If somenetwork failure occured.
 o enumerateResourceIdentifiers
 public String[] enumerateResourceIdentifiers() throws RemoteAccessException
Throws: RemoteAccessException
If somenetwork failure occured.
 o loadResource
 public RemoteResource loadResource(String identifier) throws RemoteAccessException
Throws: RemoteAccessException
If somenetwork failure occured.
 o registerResource
 public RemoteResource registerResource(String id,
                                        String classname) throws RemoteAccessException
Register a new resource within this container.

Parameters:
id - The identifier of the resource to be created.
classname - The name of the class of the resource to be added.
Throws: RemoteAccessException
If somenetwork failure occured.
 o isFramed
 public boolean isFramed() throws RemoteAccessException
Is this resource a framed resource ?

Returns:
A boolean, true if the resource is framed and it currently has some frames attached, false otherwise.
Throws: RemoteAccessException
If somenetwork failure occured.
 o getFrames
 public RemoteResource[] getFrames() throws RemoteAccessException
Get the frames attached to that resource. Each frame is itself a resource, so it is returned as an instance of a remote resource.

Returns:
A (posssibly null) array of frames attached to that resource.
Throws: RemoteAccessException
If somenetwork failure occured.
 o unregisterFrame
 public void unregisterFrame(RemoteResource frame) throws RemoteAccessException
Unregister a given frame from that resource.

Parameters:
frame - The frame to unregister.
Throws: RemoteAccessException
If somenetwork failure occured.
 o isFrame
 public boolean isFrame()
 o isFrameURL
 protected boolean isFrameURL(URL furl)
 o registerFrame
 public RemoteResource registerFrame(String id,
                                     String classname) throws RemoteAccessException
Attach a new frame to that resource.

Parameters:
identifier - The name for this frame (if any).
clsname - The name of the frame's class.
Returns:
A remote handle to the (remotely) created frame instance.
Throws: RemoteAccessException
If somenetwork failure occured.
 o dump
 public void dump(PrintStream prt) throws RemoteAccessException
Dump that resource to the given output stream.

Parameters:
prt - A print stream to dump to.
Throws: RemoteAccessException
If somenetwork failure occured.

All Packages  Class Hierarchy  This Package  Previous  Next  Index