net.sf.tacos.rest
Class RestPageEncoder

java.lang.Object
  extended by net.sf.tacos.rest.RestPageEncoder
All Implemented Interfaces:
org.apache.tapestry.engine.ServiceEncoder, org.apache.tapestry.services.ApplicationInitializer

public class RestPageEncoder
extends Object
implements org.apache.tapestry.engine.ServiceEncoder, org.apache.tapestry.services.ApplicationInitializer

Rest-style encoder for pages.

The urls generated and understood are of the form /view/pagename (so, you'll have to register a servlet mapping for /view in web.xml).

If page classes have a UriTemplate annotation, upon initialization this service will scan, gather and use those mappings for url generation (instead of the pagename).


Constructor Summary
RestPageEncoder()
           
 
Method Summary
 void decode(org.apache.tapestry.engine.ServiceEncoding encoding)
           
 void encode(org.apache.tapestry.engine.ServiceEncoding encoding)
           
 void initialize(HttpServlet servlet)
           
 void setCaseSensitive(boolean caseSensitive)
           
 void setUrl(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestPageEncoder

public RestPageEncoder()
Method Detail

encode

public void encode(org.apache.tapestry.engine.ServiceEncoding encoding)
Specified by:
encode in interface org.apache.tapestry.engine.ServiceEncoder

decode

public void decode(org.apache.tapestry.engine.ServiceEncoding encoding)
Specified by:
decode in interface org.apache.tapestry.engine.ServiceEncoder

setUrl

public void setUrl(String url)

setCaseSensitive

public void setCaseSensitive(boolean caseSensitive)

initialize

public void initialize(HttpServlet servlet)
Specified by:
initialize in interface org.apache.tapestry.services.ApplicationInitializer


Copyright ? 2007-2008 SourceForge.net. All Rights Reserved.