|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteResource
The client side view of a server-side resource.
The whole servers state are exported through resources, which allows
the administration application to discover and query it using a
homogeneous interface.
All methods will throw a RemoteAccessException
in case of
network failure.
ResourceBroker
Method Summary | |
---|---|
void |
delete()
Delete that resource, and detach it from its container. |
java.lang.String[] |
enumerateResourceIdentifiers()
|
AttributeDescription[] |
getAttributes()
Get the target resource list of attributes. |
java.lang.String[] |
getClassHierarchy()
Get the target resource class hierarchy. |
RemoteResource[] |
getFrames()
Get the frames attached to that resource. |
java.lang.Object |
getValue(java.lang.String attr)
|
java.lang.Object[] |
getValues(java.lang.String[] attrs)
|
boolean |
isContainer()
|
boolean |
isDirectoryResource()
|
boolean |
isFrame()
|
boolean |
isFramed()
Is this resource a framed resource ? |
boolean |
isIndexersCatalog()
|
RemoteResource |
loadResource(java.lang.String identifier)
|
RemoteResource |
registerFrame(java.lang.String identifier,
java.lang.String classname)
Attach a new frame to that resource. |
RemoteResource |
registerResource(java.lang.String id,
java.lang.String classname)
Register a new resource within this container. |
void |
reindex(boolean rec)
Reindex the resource's children if this resource is a DirectoryResource. |
void |
setValue(java.lang.String attr,
java.lang.Object value)
|
void |
setValues(java.lang.String[] attrs,
java.lang.Object[] values)
Set a set of attribute values in one shot. |
void |
unregisterFrame(RemoteResource frame)
Unregister a given frame from that resource. |
void |
updateURL(java.net.URL parentURL)
Is this resource a filtered resource ? |
Method Detail |
---|
java.lang.String[] getClassHierarchy() throws RemoteAccessException
RemoteAccessException
- If somenetwork failure occured.void delete() throws RemoteAccessException
RemoteAccessException
- If somenetwork failure occured.void reindex(boolean rec) throws RemoteAccessException
rec
- recursivly?
RemoteAccessException
- If it's not a DirectoryResourceAttributeDescription[] getAttributes() throws RemoteAccessException
Even though this returns all the attribute resources, only the ones that are advertized as being editable can be set through this interface.
RemoteAccessException
- If somenetwork failure occured.java.lang.Object getValue(java.lang.String attr) throws RemoteAccessException
name
- The attribute whose value is to be fetched, encoded as
its name.
RemoteAccessException
- If somenetwork failure occured.java.lang.Object[] getValues(java.lang.String[] attrs) throws RemoteAccessException
attrs
- The (ordered) set of attributes whose value is to be
fetched.
RemoteAccessException
- If somenetwork failure occured.void setValue(java.lang.String attr, java.lang.Object value) throws RemoteAccessException
attr
- The attribute to set, encoded as it's name.value
- The new value for that attribute.
RemoteAccessException
- If somenetwork failure occured.void setValues(java.lang.String[] attrs, java.lang.Object[] values) throws RemoteAccessException
attrs
- The (ordered) list of attribute to set, encoded as their
names.values
- The (ordered) list of values, for each of the above
attributes.
RemoteAccessException
- If somenetwork failure occured.boolean isContainer() throws RemoteAccessException
RemoteAccessException
- If somenetwork failure occured.boolean isDirectoryResource() throws RemoteAccessException
RemoteAccessException
boolean isIndexersCatalog() throws RemoteAccessException
RemoteAccessException
java.lang.String[] enumerateResourceIdentifiers() throws RemoteAccessException
RemoteAccessException
- If somenetwork failure occured.RemoteResource loadResource(java.lang.String identifier) throws RemoteAccessException
RemoteAccessException
- If somenetwork failure occured.RemoteResource registerResource(java.lang.String id, java.lang.String classname) throws RemoteAccessException
id
- The identifier of the resource to be created.classname
- The name of the class of the resource to be added.
RemoteAccessException
- if a remote access error occurs.boolean isFramed() throws RemoteAccessException
RemoteAccessException
- if a remote access error occurs.boolean isFrame()
RemoteResource[] getFrames() throws RemoteAccessException
RemoteAccessException
- if a remote access error occurs.void unregisterFrame(RemoteResource frame) throws RemoteAccessException
filter
- The frame to unregister.
RemoteAccessException
- if a remote access error occurs.RemoteResource registerFrame(java.lang.String identifier, java.lang.String classname) throws RemoteAccessException
identifier
- The name for this frame (if any).clsname
- The name of the frame's class.
RemoteAccessException
- if a remote access error occurs.void updateURL(java.net.URL parentURL)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |