aerogear-controller 1.0.2

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

All Known Implementing Classes:
RouteDescriptor
Enclosing interface:
RouteBuilder

public static interface RouteBuilder.OnMethods

A fluent API for further specializing the Route's destination/endpoint.


Method Summary
 RouteBuilder.TargetEndpoint on(RequestMethod... methods)
          Specifies which RequestMethods should be supported by the Route.
 RouteBuilder.OnMethods roles(String... roles)
          Specifies the roles that are allowed to invoke the target endpoint
 

Method Detail

on

RouteBuilder.TargetEndpoint on(RequestMethod... methods)
Specifies which RequestMethods should be supported by the Route.

Parameters:
methods - the RequestMethods that should be supported.
Returns:
RouteBuilder.TargetEndpoint which is a builder for the destination for this Route.

roles

RouteBuilder.OnMethods roles(String... roles)
Specifies the roles that are allowed to invoke the target endpoint

Parameters:
roles - the roles.
Returns:
RouteBuilder.OnMethods to support method chaining.

aerogear-controller 1.0.2

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