All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class w3c.jigsaw.admin.PlainRemoteResource
java.lang.Object
   |
   +----w3c.jigsaw.admin.PlainRemoteResource
  -  public class PlainRemoteResource
  -  extends Object
  -  implements RemoteResource
   
  -   admin admin
-   The client side admin context
  
-   attributes attributes
-   The remote resource set of attributes.
  
-   classes classes
-   The remote resource class hierarchy.
  
-   filters filters
-   Set of attached filters.
  
-   identifier identifier
-   The name of that resource (ie it's identifier attribute).
  
-   iscontainer iscontainer
-   Is that resource a container resource ?
  
-   isfiltered isfiltered
-   Is that resource a filtered resource ?
  
-   parent parent
-   The name of the parent of that resource, as an URL.
  
-   url url
-   The admin URL for the wrapped resource.
  
-   values values
-   The remote resource attribute values.
   
  -   createRequest() createRequest()
-  
  
-   delete() delete()
-   Delete that resource, and detach it from its container.
  
-   dump(PrintStream) dump(PrintStream)
-   Dump that resource to the given output stream.
  
-   enumerateResourceIdentifiers() enumerateResourceIdentifiers()
-   
  
-   getAttributes() getAttributes()
-   Get the target resource list of attributes.
  
-   getClassHierarchy() getClassHierarchy()
-   Get the target resource class hierarchy.
  
-   getFilters() getFilters()
-   Get the filters attached to that resource.
  
-   getValue(String) getValue(String)
-   
  
-   getValues(String[]) getValues(String[])
-   
  
-   isContainer() isContainer()
-   
  
-   isFiltered() isFiltered()
-   Is this resource a filtered resource ?
 
  
-   loadResource(String) loadResource(String)
-   
  
-   lookupAttribute(String) lookupAttribute(String)
-  
  
-   registerFilter(String, String) registerFilter(String, String)
-   Attach a new filter to that resource.
  
-   registerResource(String, String) registerResource(String, String)
-   Register a new resource within this container.
  
-   setFilters(RemoteResource[]) setFilters(RemoteResource[])
-  
  
-   setValue(String, Object) setValue(String, Object)
-   
  
-   setValues(String[], Object[]) setValues(String[], Object[])
-   Set a set of attribute values in one shot.
  
-   unregisterFilter(RemoteResource) unregisterFilter(RemoteResource)
-   Unregister a given filter from that resource.
   
 admin
admin
 protected AdminContext admin
  -  The client side admin context
 
 classes
classes
 protected String classes[]
  -  The remote resource class hierarchy.
 
 attributes
attributes
 protected Attribute attributes[]
  -  The remote resource set of attributes.
 
 values
values
 protected Object values[]
  -  The remote resource attribute values.
 
 iscontainer
iscontainer
 protected boolean iscontainer
  -  Is that resource a container resource ?
 
 isfiltered
isfiltered
 protected boolean isfiltered
  -  Is that resource a filtered resource ?
 
 identifier
identifier
 protected String identifier
  -  The name of that resource (ie it's identifier attribute).
 
 parent
parent
 protected URL parent
  -  The name of the parent of that resource, as an URL.
 
 url
url
 protected URL url
  -  The admin URL for the wrapped resource.
 
 filters
filters
 protected RemoteResource filters[]
  -  Set of attached filters.
 
   
 createRequest
createRequest
 protected Request createRequest()
 lookupAttribute
lookupAttribute
 protected int lookupAttribute(String attr) throws RemoteAccessException
 setFilters
setFilters
 protected void setFilters(RemoteResource filters[])
 getClassHierarchy
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.
  
 
 delete
delete
 public void delete() throws RemoteAccessException
  -  Delete that resource, and detach it from its container.
   
- 
    -  Throws: RemoteAccessException
    
-  If somenetwork failure occured.
  
 
 getAttributes
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.
  
 
 getValue
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.
  
 
 getValues
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.
  
 
 setValue
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.
  
 
 setValues
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.
  
 
 isContainer
isContainer
 public boolean isContainer() throws RemoteAccessException
  - 
    -  Throws: RemoteAccessException
    
-  If somenetwork failure occured.
  
 
 enumerateResourceIdentifiers
enumerateResourceIdentifiers
 public String[] enumerateResourceIdentifiers() throws RemoteAccessException
  - 
    -  Throws: RemoteAccessException
    
-  If somenetwork failure occured.
  
 
 loadResource
loadResource
 public RemoteResource loadResource(String identifier) throws RemoteAccessException
  - 
    -  Throws: RemoteAccessException
    
-  If somenetwork failure occured.
  
 
 registerResource
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.
  
 
 isFiltered
isFiltered
 public boolean isFiltered() throws RemoteAccessException
  -  Is this resource a filtered resource ?
   
- 
    -  Returns:
    
-  A boolean, true if the resource is filtered
 and it currently has some filters attached, false
 otherwise.
  
 
 getFilters
getFilters
 public RemoteResource[] getFilters() throws RemoteAccessException
  -  Get the filters attached to that resource.
 Each filter is itself a resource, so it is returned as an instance of
 a remote resource.
   
- 
    -  Returns:
    
-  A (posssibly null) array of filters attached
 to that resource.
  
 
 unregisterFilter
unregisterFilter
 public void unregisterFilter(RemoteResource filter) throws RemoteAccessException
  -  Unregister a given filter from that resource.
   
- 
    -  Parameters:
    
-  filter - The filter to unregister.
  
 
 registerFilter
registerFilter
 public RemoteResource registerFilter(String id,
                                      String classname) throws RemoteAccessException
  -  Attach a new filter to that resource.
   
- 
    -  Parameters:
    
-  identifier - The name for this filter (if any).
    -  clsname - The name of the filter's class.
    
-  Returns:
    
-  A remote handle to the (remotely) created filter instance.
  
 
 dump
dump
 public void dump(PrintStream prt) throws RemoteAccessException
  -  Dump that resource to the given output stream.
   
- 
    -  Parameters:
    
-  prt - A print stream to dump to.
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index