org.springframework.extensions.surf.resource
Class ResourceXMLContentImpl

java.lang.Object
  extended by org.springframework.extensions.surf.resource.ResourceContentImpl
      extended by org.springframework.extensions.surf.resource.ResourceXMLContentImpl
All Implemented Interfaces:
ResourceContent, ResourceXMLContent

public class ResourceXMLContentImpl
extends ResourceContentImpl
implements ResourceXMLContent

Binary resource content implementation

Author:
muzquiano

Field Summary
 
Fields inherited from class org.springframework.extensions.surf.resource.ResourceContentImpl
bytes, id, logger, resource, timestamp, url
 
Constructor Summary
ResourceXMLContentImpl(Resource resource, String url)
           
 
Method Summary
 org.dom4j.Document getDocument()
          Gets the document.
 String getXml()
          Gets the xml for a resource
 
Methods inherited from class org.springframework.extensions.surf.resource.ResourceContentImpl
getBytes, getInputStream, getReader, getResource, getTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.extensions.surf.resource.ResourceContent
getBytes, getInputStream, getReader, getResource, getTimestamp
 

Constructor Detail

ResourceXMLContentImpl

public ResourceXMLContentImpl(Resource resource,
                              String url)
Method Detail

getXml

public String getXml()
              throws IOException
Description copied from interface: ResourceXMLContent
Gets the xml for a resource

Specified by:
getXml in interface ResourceXMLContent
Returns:
the xml
Throws:
IOException

getDocument

public org.dom4j.Document getDocument()
                               throws org.dom4j.DocumentException,
                                      IOException
Description copied from interface: ResourceXMLContent
Gets the document.

Specified by:
getDocument in interface ResourceXMLContent
Returns:
the document
Throws:
org.dom4j.DocumentException
IOException


Copyright © 2009 SpringSource, Inc. All Rights Reserved.