anvil.server
Class URLContainer

java.lang.Object
  |
  +--anvil.server.URLContainer
All Implemented Interfaces:
Container

public class URLContainer
extends java.lang.Object
implements Container

class URLContainer


Nested Class Summary
static class URLContainer.URLResource
           
 
Field Summary
protected  Container _next
           
protected  java.net.URL _url
           
 
Constructor Summary
URLContainer(Container next, java.net.URL url)
           
 
Method Summary
protected  java.lang.String adapt(Zone zone, java.lang.String pathinfo)
           
 Container getNextContainer()
           
 Resource getResource(Zone zone, Address address)
           
 Resource getResource(Zone zone, Address address, Context context)
           
protected  java.net.URL getResourceURL(Zone zone, Address address)
           
 void setNextContainer(Container next)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_next

protected Container _next

_url

protected java.net.URL _url
Constructor Detail

URLContainer

public URLContainer(Container next,
                    java.net.URL url)
Method Detail

getNextContainer

public Container getNextContainer()
Specified by:
getNextContainer in interface Container

setNextContainer

public void setNextContainer(Container next)
Specified by:
setNextContainer in interface Container

adapt

protected java.lang.String adapt(Zone zone,
                                 java.lang.String pathinfo)

getResourceURL

protected java.net.URL getResourceURL(Zone zone,
                                      Address address)

getResource

public Resource getResource(Zone zone,
                            Address address)
                     throws ContainerException
Specified by:
getResource in interface Container
ContainerException

getResource

public Resource getResource(Zone zone,
                            Address address,
                            Context context)
                     throws ContainerException
Specified by:
getResource in interface Container
ContainerException