XTAS Project (0.6 beta)

xtas.resource
Class ServletResource

java.lang.Object
  |
  +--xtas.Resource
        |
        +--xtas.resource.ServletResource

public class ServletResource
extends Resource

Represents XML resource mapped to a ServletContext's specified path as XTAS resource

Version:
$Id: ServletResource.java,v 1.2 2003/05/28 16:01:25 geaz Exp $

Constructor Summary
ServletResource(java.lang.String resourceId)
          Creates resource named resourceId
 
Method Summary
 void create(WellFormedUniFormTree initTree)
          Creates resource by Id
 void drop()
          drops resource
 WellFormedUniFormTree load()
          Loads XML from the Servlet Resource
 void save(WellFormedUniFormTree tree)
          Stores XML into some resource
 void setContext(java.lang.Object context)
          Initializes Resource's context (if any)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletResource

public ServletResource(java.lang.String resourceId)
Creates resource named resourceId
Method Detail

setContext

public void setContext(java.lang.Object context)
Description copied from class: Resource
Initializes Resource's context (if any)
Overrides:
setContext in class Resource

load

public WellFormedUniFormTree load()
                           throws UniFormTransformationException,
                                  java.io.IOException
Loads XML from the Servlet Resource
Overrides:
load in class Resource

save

public void save(WellFormedUniFormTree tree)
          throws java.io.IOException
Description copied from class: Resource
Stores XML into some resource
Overrides:
save in class Resource

create

public void create(WellFormedUniFormTree initTree)
            throws java.io.IOException
Creates resource by Id
Overrides:
create in class Resource

drop

public void drop()
          throws java.io.IOException
drops resource
Overrides:
drop in class Resource

XTAS Project (0.6 beta)