org.eclipse.swordfish.registry
Class PolicyResource

java.lang.Object
  extended by org.eclipse.swordfish.registry.DefaultResource
      extended by org.eclipse.swordfish.registry.PolicyResource
All Implemented Interfaces:
Resource

public class PolicyResource
extends DefaultResource
implements Resource


Constructor Summary
PolicyResource(java.lang.String id, java.lang.String content)
           
 
Method Summary
 void appendContent(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, get, 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, get, put
 

Constructor Detail

PolicyResource

public PolicyResource(java.lang.String id,
                      java.lang.String content)
Method Detail

getCharacterEncoding

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

getContentType

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

getId

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

appendContent

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