View Javadoc

1   package com.bradmcevoy.http;
2   
3   import java.util.List;
4   
5   /**
6    * A type of Resource which can have children, ie it can act as a directory.
7    * <P/>
8    * This is only part of the normal behaviour of a directory though, you
9    * should have a look at FolderResource for a more complete interface
10   * 
11   * @author brad
12   */
13  public interface CollectionResource extends Resource {
14  
15      public Resource child(String childName);
16      List<? extends Resource> getChildren();
17  }