anvil.server
Class URLContainer.URLResource

java.lang.Object
  |
  +--anvil.parser.URLInputSource
        |
        +--anvil.server.URLContainer.URLResource
All Implemented Interfaces:
InputSource, Resource
Enclosing class:
URLContainer

public static class URLContainer.URLResource
extends URLInputSource
implements Resource


Field Summary
 
Fields inherited from class anvil.parser.URLInputSource
_connection, _input, _lastModified, _url
 
Fields inherited from interface anvil.server.Resource
RESOURCE_0
 
Constructor Summary
URLContainer.URLResource(java.net.URLConnection connection, java.lang.String pathinfo)
           
 
Method Summary
 java.lang.String getContentType()
           
 java.lang.String getName()
           
 java.lang.String getPathinfo()
           
 boolean isDirectory()
           
 Resource[] list()
           
 void writeTo(java.io.OutputStream output)
           
 
Methods inherited from class anvil.parser.URLInputSource
close, getCharacterEncoding, getInputStream, getLastModified, getLength, getURL, load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface anvil.parser.InputSource
close, getCharacterEncoding, getInputStream, getLastModified, getLength, getURL, load
 

Constructor Detail

URLContainer.URLResource

public URLContainer.URLResource(java.net.URLConnection connection,
                                java.lang.String pathinfo)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Resource

getPathinfo

public java.lang.String getPathinfo()
Specified by:
getPathinfo in interface Resource

isDirectory

public boolean isDirectory()
Specified by:
isDirectory in interface Resource

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface Resource

list

public Resource[] list()
                throws java.io.IOException
Specified by:
list in interface Resource
java.io.IOException

writeTo

public void writeTo(java.io.OutputStream output)
             throws java.io.IOException
Specified by:
writeTo in interface Resource
java.io.IOException