org.jboss.seam.rest.templating
Annotation Type ResponseTemplate


@Retention(value=RUNTIME)
@Target(value=METHOD)
@Documented
public @interface ResponseTemplate

Indicates that the HTTP response is produced using a template.

Author:
Jozef Hartinger

Required Element Summary
 String value
          Path to the template to be used.
 
Optional Element Summary
 String produces
          Media type produced by the template.
 String responseName
          Name under which the returned value is available in the template.
 

Element Detail

value

public abstract String value
Path to the template to be used.

produces

public abstract String produces
Media type produced by the template.

Default:
"*/*"

responseName

public abstract String responseName
Name under which the returned value is available in the template.

Default:
"response"


Copyright © 2011 Seam Framework. All Rights Reserved.