org.eclipse.swordfish.registry
Class ListResource<T extends Definition>

java.lang.Object
  extended by org.eclipse.swordfish.registry.DefaultResource
      extended by org.eclipse.swordfish.registry.ListResource<T>
All Implemented Interfaces:
Resource

public class ListResource<T extends Definition>
extends DefaultResource
implements Resource


Constructor Summary
ListResource()
           
ListResource(java.util.Collection<T> resources)
           
ListResource(java.lang.Iterable<? extends T> resources)
           
 
Method Summary
 void appendContent(java.io.Writer writer)
          Deprecated. 
 void get(java.io.Writer writer)
           
 java.lang.String getCharacterEncoding()
           
 java.lang.String getContentType()
           
 java.lang.String getId()
           
 
Methods inherited from class org.eclipse.swordfish.registry.DefaultResource
delete, put
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.swordfish.registry.Resource
delete, put
 

Constructor Detail

ListResource

public ListResource()

ListResource

public ListResource(java.util.Collection<T> resources)

ListResource

public ListResource(java.lang.Iterable<? extends T> resources)
Method Detail

getId

public java.lang.String getId()
Overrides:
getId in class DefaultResource

getContentType

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

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Specified by:
getCharacterEncoding in interface Resource
Overrides:
getCharacterEncoding in class DefaultResource

get

public void get(java.io.Writer writer)
         throws VerbNotSupportedException,
                java.io.IOException
Specified by:
get in interface Resource
Overrides:
get in class DefaultResource
Throws:
VerbNotSupportedException
java.io.IOException

appendContent

@Deprecated
public void appendContent(java.io.Writer writer)
                   throws java.io.IOException
Deprecated. 

Specified by:
appendContent in interface Resource
Overrides:
appendContent in class DefaultResource
Throws:
java.io.IOException