Project Wonder 5.0

er.rest.routes.jsr311
Annotation Type PathParam


@Retention(value=RUNTIME)
@Target(value=PARAMETER)
public @interface PathParam

Like JSR-311, @PathParam allows you to annotate an action method parameter to specify that its value should be loaded from the route paths.

 public WOActionResults testAction(@PathParam("person") Person personParam) {
     ...
 }
 

This will automatically pass the value of the "person" route object (/person/{person:Person}/test) into your action method as the "personParam" parameter.

Author:
mschrag

Required Element Summary
 java.lang.String value
           
 

Element Detail

value

public abstract java.lang.String value

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.