|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Enable Jini services to store and export resource byte arrays (e.g. to store byte codes) in a network resource service.
Provides methods to create new resources and to obtain
ResourceAccess
proxies which can be used in the JRAP
URL protocol handler to download resource bytes into service
clients.
Services of this type should not be registered directly in a Jini
Lookup Service, instead, they should be placed into the Lookup as
an attribute of a ResourceAccess
service.
Method Summary | |
ResourceAccess |
getAccess()
Obtain a ResourceAccess object which can be used
to download resource bytes from a corresponding resource
service. |
java.lang.String[] |
list()
List the names of the resources that have been created in this resource service. |
ResourceHandle |
newResource(java.lang.String name)
Create a new resource in the resource service that will serve as a placeholder until the resource is filled with bytes from a registering service. |
Method Detail |
public ResourceHandle newResource(java.lang.String name) throws java.io.IOException
name
- of the resource which should be created.public ResourceAccess getAccess() throws java.io.IOException
ResourceAccess
object which can be used
to download resource bytes from a corresponding resource
service.ResourceAccess
object for downloading
resources.public java.lang.String[] list() throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |