org.springframework.extensions.surf.resource.support
Class VirtualizedWebappResource

java.lang.Object
  extended by org.springframework.extensions.surf.resource.AbstractResource
      extended by org.springframework.extensions.surf.resource.support.VirtualizedWebappResource
All Implemented Interfaces:
Serializable, Resource

public class VirtualizedWebappResource
extends AbstractResource

Virtualized web application resource Object ids are of the following format: images/abc.gif WEB-INF/config/file.xml webapp://images/abc.gif webapp://WEB-INF/config/file.xml

Author:
muzquiano
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.extensions.surf.resource.AbstractResource
bytes, endpointId, name, objectId, protocolId
 
Constructor Summary
VirtualizedWebappResource(String protocolId, String endpointId, String objectId)
           
 
Method Summary
 ResourceContent getContent()
          Gets the content for this resource.
 String getContentURL()
          Gets the content url.
 ResourceContent getMetadata()
          Gets the metadata for this resource.
 String getMetadataURL()
          Gets the metadata url.
 String getObjectTypeId()
          Gets the object type id.
 String getResourceTypeId()
           
 boolean isContainer()
          Checks if the resource is a container.
 
Methods inherited from class org.springframework.extensions.surf.resource.AbstractResource
getEndpointId, getName, getObjectId, getProtocolId, getResourceId, setEndpointId, setName, setObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualizedWebappResource

public VirtualizedWebappResource(String protocolId,
                                 String endpointId,
                                 String objectId)
Method Detail

getMetadata

public ResourceContent getMetadata()
                            throws IOException
Description copied from interface: Resource
Gets the metadata for this resource. If there is no metadata for this resource, null will be returned.

Returns:
the metadata or null
Throws:
IOException

getMetadataURL

public String getMetadataURL()
Description copied from interface: Resource
Gets the metadata url. If there is no metadata url for this resource, null will be returned.

Returns:
the metadata url or null.

getContent

public ResourceContent getContent()
                           throws IOException
Description copied from interface: Resource
Gets the content for this resource. If there is no content for this resource, null will be returned.

Returns:
the content or null.
Throws:
IOException

getContentURL

public String getContentURL()
Description copied from interface: Resource
Gets the content url. If there is no content url for this resource, null will be returned.

Returns:
the content url

getObjectTypeId

public String getObjectTypeId()
Description copied from interface: Resource
Gets the object type id.

Returns:
the object type id

getResourceTypeId

public String getResourceTypeId()

isContainer

public boolean isContainer()
Description copied from interface: Resource
Checks if the resource is a container.

Returns:
true, if is container


Copyright © 2009 SpringSource, Inc. All Rights Reserved.