|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TemplatingProvider
Implementations of this interface represent integration points for various templating engines.
| Method Summary | |
|---|---|
void |
init(javax.servlet.ServletContext servletContext)
Initialization callback. |
void |
writeTo(Object result,
ResponseTemplate annotation,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream os)
Produces the response. |
| Method Detail |
|---|
void init(javax.servlet.ServletContext servletContext)
servletContext -
void writeTo(Object result,
ResponseTemplate annotation,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream os)
throws IOException
result - object returned by the JAX-RS methodannotation - @ResponseTemplate annotation instanceannotations - annotations available on the JAX-RS methodmediaType - requested media typehttpHeaders - request HTTP headersos - HTTP response output stream
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||