org.objectweb.telosys.common
Class ResourceView

java.lang.Object
  extended byorg.objectweb.telosys.common.TelosysObject
      extended byorg.objectweb.telosys.common.ResourceView
All Implemented Interfaces:
View

public class ResourceView
extends TelosysObject
implements View

Local resource implementation of the View interface
To use the resource located at the given path as a standard "MVC view"


Constructor Summary
ResourceView(java.lang.String sPath)
          Constructs a new "resource view" with the given target path
 
Method Summary
 void generate(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)
          Generates the response page (the ScreenMap or any other resource page)
 java.lang.String toString()
           
 
Methods inherited from class org.objectweb.telosys.common.TelosysObject
error, error, error, getFlagTrace, info, setFlagTrace, trace, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceView

public ResourceView(java.lang.String sPath)
Constructs a new "resource view" with the given target path

Parameters:
sPath - the path of the resource ( e.g. "/mydir/test/MyPage.jsp" )
Method Detail

toString

public java.lang.String toString()

generate

public void generate(javax.servlet.http.HttpServletRequest httpRequest,
                     javax.servlet.http.HttpServletResponse httpResponse)
              throws TelosysException
Description copied from interface: View
Generates the response page (the ScreenMap or any other resource page)

Specified by:
generate in interface View
Parameters:
httpRequest -
httpResponse -
Throws:
TelosysException