JSF Test Framework: Jetty 1.1.2

org.jboss.test.faces.jetty
Class StringContentResource

java.lang.Object
  extended by org.mortbay.resource.Resource
      extended by org.jboss.test.faces.jetty.StringContentResource
All Implemented Interfaces:
Serializable

public class StringContentResource
extends org.mortbay.resource.Resource

Author:
Nick Belaevski
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mortbay.resource.Resource
__defaultUseCaches
 
Constructor Summary
StringContentResource(String contentString, String path)
           
 
Method Summary
 org.mortbay.resource.Resource addPath(String path)
           
 boolean delete()
           
 boolean exists()
           
 File getFile()
           
 InputStream getInputStream()
           
 String getName()
           
 OutputStream getOutputStream()
           
 URL getURL()
           
 boolean isDirectory()
           
 long lastModified()
           
 long length()
           
 String[] list()
           
 void release()
           
 boolean renameTo(org.mortbay.resource.Resource dest)
           
 
Methods inherited from class org.mortbay.resource.Resource
encode, finalize, getAlias, getAssociate, getDefaultUseCaches, getListHTML, newClassPathResource, newClassPathResource, newResource, newResource, newResource, newResource, newSystemResource, setAssociate, setDefaultUseCaches, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringContentResource

public StringContentResource(String contentString,
                             String path)
Method Detail

addPath

public org.mortbay.resource.Resource addPath(String path)
                                      throws IOException,
                                             MalformedURLException
Specified by:
addPath in class org.mortbay.resource.Resource
Throws:
IOException
MalformedURLException

delete

public boolean delete()
               throws SecurityException
Specified by:
delete in class org.mortbay.resource.Resource
Throws:
SecurityException

exists

public boolean exists()
Specified by:
exists in class org.mortbay.resource.Resource

getFile

public File getFile()
             throws IOException
Specified by:
getFile in class org.mortbay.resource.Resource
Throws:
IOException

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in class org.mortbay.resource.Resource
Throws:
IOException

getName

public String getName()
Specified by:
getName in class org.mortbay.resource.Resource

getOutputStream

public OutputStream getOutputStream()
                             throws IOException,
                                    SecurityException
Specified by:
getOutputStream in class org.mortbay.resource.Resource
Throws:
IOException
SecurityException

getURL

public URL getURL()
Specified by:
getURL in class org.mortbay.resource.Resource

isDirectory

public boolean isDirectory()
Specified by:
isDirectory in class org.mortbay.resource.Resource

lastModified

public long lastModified()
Specified by:
lastModified in class org.mortbay.resource.Resource

length

public long length()
Specified by:
length in class org.mortbay.resource.Resource

list

public String[] list()
Specified by:
list in class org.mortbay.resource.Resource

release

public void release()
Specified by:
release in class org.mortbay.resource.Resource

renameTo

public boolean renameTo(org.mortbay.resource.Resource dest)
                 throws SecurityException
Specified by:
renameTo in class org.mortbay.resource.Resource
Throws:
SecurityException

JSF Test Framework: Jetty 1.1.2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.