|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.jigsaw.admin.PlainRemoteResource
public class PlainRemoteResource
Field Summary | |
---|---|
protected AdminContext |
admin
The client side admin context |
protected AttributeDescription[] |
attributes
The remote resource set of attributes. |
protected ResourceDescription |
description
Our description |
protected RemoteResource[] |
frames
Set of attached frames. |
protected java.lang.String |
identifier
The name of that resource (ie it's identifier attribute). |
protected boolean |
iscontainer
Is that resource a container resource ? |
protected boolean |
isDirectoryResource
Is that resource a directory resource ? |
protected boolean |
isframed
Is that resource a framed resource ? |
protected boolean |
isindexerscatalog
Is that resource a indexers catalog ? |
protected java.net.URL |
parent
The name of the parent of that resource, as an URL. |
protected java.net.URL |
url
The admin URL for the wrapped resource. |
protected java.lang.Object[] |
values
The remote resource attribute values. |
Method Summary | |
---|---|
protected void |
createRemoteFrames()
|
protected Request |
createRequest()
|
void |
delete()
Delete that resource, and detach it from its container. |
void |
dump(java.io.PrintStream prt)
Dump that resource to the given output stream. |
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. |
protected java.io.InputStream |
getInputStream(Reply reply)
|
java.lang.Object |
getValue(java.lang.String attr)
|
java.lang.Object[] |
getValues(java.lang.String[] attrs)
|
boolean |
isContainer()
|
boolean |
isDirectoryResource()
Is is a DirectoryResource |
boolean |
isFrame()
|
boolean |
isFramed()
Is this resource a framed resource ? |
protected boolean |
isFrameURL(java.net.URL furl)
|
boolean |
isIndexersCatalog()
|
RemoteResource |
loadResource(java.lang.String identifier)
|
protected AttributeDescription |
lookupAttribute(java.lang.String name)
|
RemoteResource |
registerFrame(java.lang.String id,
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. |
protected void |
setFrames(RemoteResource[] frames)
|
void |
setValue(java.lang.String attr,
java.lang.Object value)
|
void |
setValues(java.lang.String[] names,
java.lang.Object[] values)
Set a set of attribute values in one shot. |
void |
unregisterFrame(RemoteResource frame)
Unregister a given frame from that resource. |
protected void |
update()
reload the RemoteResource. |
void |
updateURL(java.net.URL parentURL)
Is this resource a filtered resource ? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AdminContext admin
protected AttributeDescription[] attributes
protected java.lang.Object[] values
protected boolean iscontainer
protected boolean isindexerscatalog
protected boolean isDirectoryResource
protected boolean isframed
protected java.lang.String identifier
protected java.net.URL parent
protected java.net.URL url
protected RemoteResource[] frames
protected ResourceDescription description
Method Detail |
---|
protected Request createRequest()
protected java.io.InputStream getInputStream(Reply reply) throws java.io.IOException
java.io.IOException
protected void setFrames(RemoteResource[] frames)
public java.lang.String[] getClassHierarchy() throws RemoteAccessException
getClassHierarchy
in interface RemoteResource
RemoteAccessException
- If somenetwork failure occured.public void reindex(boolean rec) throws RemoteAccessException
reindex
in interface RemoteResource
rec
- recursivly?
RemoteAccessException
- If it's not a DirectoryResourcepublic void delete() throws RemoteAccessException
delete
in interface RemoteResource
RemoteAccessException
- If somenetwork failure occured.public AttributeDescription[] 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.
getAttributes
in interface RemoteResource
RemoteAccessException
- If somenetwork failure occured.public java.lang.Object getValue(java.lang.String attr) throws RemoteAccessException
getValue
in interface RemoteResource
name
- The attribute whose value is to be fetched, encoded as
its name.
RemoteAccessException
- If somenetwork failure occured.protected AttributeDescription lookupAttribute(java.lang.String name)
public java.lang.Object[] getValues(java.lang.String[] attrs) throws RemoteAccessException
getValues
in interface RemoteResource
attrs
- The (ordered) set of attributes whose value is to be
fetched.
RemoteAccessException
- If somenetwork failure occured.public void setValue(java.lang.String attr, java.lang.Object value) throws RemoteAccessException
setValue
in interface RemoteResource
attr
- The attribute to set, encoded as it's name.value
- The new value for that attribute.
RemoteAccessException
- If somenetwork failure occured.public void setValues(java.lang.String[] names, java.lang.Object[] values) throws RemoteAccessException
setValues
in interface RemoteResource
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.public void updateURL(java.net.URL parentURL)
RemoteResource
updateURL
in interface RemoteResource
public boolean isContainer() throws RemoteAccessException
isContainer
in interface RemoteResource
RemoteAccessException
- If somenetwork failure occured.public boolean isIndexersCatalog() throws RemoteAccessException
isIndexersCatalog
in interface RemoteResource
RemoteAccessException
- If somenetwork failure occured.public boolean isDirectoryResource() throws RemoteAccessException
isDirectoryResource
in interface RemoteResource
RemoteAccessException
- If somenetwork failure occured.public java.lang.String[] enumerateResourceIdentifiers() throws RemoteAccessException
enumerateResourceIdentifiers
in interface RemoteResource
RemoteAccessException
- If somenetwork failure occured.public RemoteResource loadResource(java.lang.String identifier) throws RemoteAccessException
loadResource
in interface RemoteResource
RemoteAccessException
- If somenetwork failure occured.public RemoteResource registerResource(java.lang.String id, java.lang.String classname) throws RemoteAccessException
registerResource
in interface RemoteResource
id
- The identifier of the resource to be created.classname
- The name of the class of the resource to be added.
RemoteAccessException
- If somenetwork failure occured.public boolean isFramed() throws RemoteAccessException
isFramed
in interface RemoteResource
RemoteAccessException
- If somenetwork failure occured.public RemoteResource[] getFrames() throws RemoteAccessException
getFrames
in interface RemoteResource
RemoteAccessException
- If somenetwork failure occured.public void unregisterFrame(RemoteResource frame) throws RemoteAccessException
unregisterFrame
in interface RemoteResource
frame
- The frame to unregister.
RemoteAccessException
- If somenetwork failure occured.public boolean isFrame()
isFrame
in interface RemoteResource
protected boolean isFrameURL(java.net.URL furl)
public RemoteResource registerFrame(java.lang.String id, java.lang.String classname) throws RemoteAccessException
registerFrame
in interface RemoteResource
identifier
- The name for this frame (if any).clsname
- The name of the frame's class.
RemoteAccessException
- If somenetwork failure occured.protected void createRemoteFrames()
public void dump(java.io.PrintStream prt) throws RemoteAccessException
prt
- A print stream to dump to.
RemoteAccessException
- If somenetwork failure occured.protected void update() throws RemoteAccessException
RemoteAccessException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |