aerogear-controller 1.0.0.M1

org.jboss.aerogear.controller.router
Interface RouteBuilder.TargetEndpoint

All Known Implementing Classes:
RouteDescriptor
Enclosing interface:
RouteBuilder

public static interface RouteBuilder.TargetEndpoint

Describes the target destination for the Route.


Method Summary
 RouteBuilder.TargetEndpoint produces(String... mediaTypes)
          Specifies the media types that this endpoint produces.
<T> T
to(Class<T> clazz)
          Specifies the target Class for the Route.
 

Method Detail

produces

RouteBuilder.TargetEndpoint produces(String... mediaTypes)
Specifies the media types that this endpoint produces.

The distinguishes an MVC call from a REST request and will cause a response to be returned to the caller, as opposed to the request being forwarded to a view.

Parameters:
mediaTypes - the media types that this endpoint method can produce.
Returns:
RouteBuilder.TargetEndpoint to support method chaining.

to

<T> T to(Class<T> clazz)
Specifies the target Class for the Route.

Parameters:
clazz - The class that will be the used as the target endpoint by the Route.
Returns:
T the type of the class.

aerogear-controller 1.0.0.M1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.