org.apache.deft.annotation
Annotation Type Path
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Path
Defines the request path for which the annotated RequestHandler
method is applicable. The path is defined from root, and so for example to
associate a RequestHandler with the top-level directory
"images":
@Path("/images/")
Values are a combination of paths and regular expressions as understood by
Pattern. For example:
@Path("/path/([\\w]+)") matches any word character after
the path such as "/path/123", "/path/abc" or "/path/12ab".
@Path("/matchThis") matches on the path itself, that is
"http://host/matchThis".
value
public abstract String value
Copyright © 2010-2011. All Rights Reserved.