net.sf.tacos.rest
Class RestPageEncoder
java.lang.Object
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).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestPageEncoder
public RestPageEncoder()
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.