|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.surf.resource.ResourceService
public class ResourceService
Resource service for web framework
Constructor Summary | |
---|---|
ResourceService()
|
Method Summary | |
---|---|
Resource |
getResource(String resourceId)
Gets the resource for the given resource id |
Resource |
getResource(String protocolId,
String endpointId,
String objectId)
Gets a resource for the given protocol, endpoint and object id |
ResourceContent |
getResourceContent(String resourceId)
Retrieves the content payload for the described resource |
ResourceContent |
getResourceContent(String protocolId,
String endpointId,
String objectId)
Retrieves the content payload for the described resource |
String[] |
getResourceDescriptorIds(String resourceId)
Returns an array of the constituent parts of a resource id - the protocol id, the endpoint id and the object id. |
ResourceLoader |
getResourceLoader(String protocolId,
String endpointId)
Returns an appropriate resource loader for the given protocol and endpoint |
ResourceLoaderFactory |
getResourceLoaderFactory(String protocolId)
Returns a resource loader factory for the given protocol |
ResourceContent |
getResourceMetadata(String resourceId)
Retrieves the metadata payload for the described resource |
ResourceContent |
getResourceMetadata(String protocolId,
String endpointId,
String objectId)
|
WebFrameworkServiceRegistry |
getServiceRegistry()
Gets the service registry. |
WebFrameworkConfigElement |
getWebFrameworkConfiguration()
Gets the web framework configuration. |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event)
|
protected void |
onBootstrap()
Initialization of Resource Service |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setServiceRegistry(WebFrameworkServiceRegistry webFrameworkServiceRegistry)
Sets the service registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceService()
Method Detail |
---|
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void setServiceRegistry(WebFrameworkServiceRegistry webFrameworkServiceRegistry)
webFrameworkServiceRegistry
- the new service registrypublic WebFrameworkServiceRegistry getServiceRegistry()
public WebFrameworkConfigElement getWebFrameworkConfiguration()
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener
protected void onBootstrap()
public Resource getResource(String resourceId) throws ResourceLoaderException
resourceId
- the resource id
ResourceLoaderException
- the resource loader exceptionpublic Resource getResource(String protocolId, String endpointId, String objectId) throws ResourceLoaderException
protocolId
- endpointId
- objectId
-
ResourceLoaderException
public ResourceLoader getResourceLoader(String protocolId, String endpointId)
protocolId
- endpointId
-
public ResourceLoaderFactory getResourceLoaderFactory(String protocolId)
protocolId
-
public ResourceContent getResourceContent(String resourceId) throws IOException, ResourceLoaderException
resourceId
-
ResourceLoaderException
ContentLoaderException
IOException
public ResourceContent getResourceContent(String protocolId, String endpointId, String objectId) throws IOException, ResourceLoaderException
protocolId
- objectId
- endpointId
-
ResourceLoaderException
ContentLoaderException
IOException
public ResourceContent getResourceMetadata(String resourceId) throws IOException, ResourceLoaderException
resourceId
-
ResourceLoaderException
ContentLoaderException
IOException
public ResourceContent getResourceMetadata(String protocolId, String endpointId, String objectId) throws IOException, ResourceLoaderException
IOException
ResourceLoaderException
public String[] getResourceDescriptorIds(String resourceId)
resourceId
- the resource id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |