public class DefaultRouteBuilder extends java.lang.Object implements RouteBuilder
Modifier and Type | Class and Description |
---|---|
class |
DefaultRouteBuilder.DefaultParameterControlBuilder |
RouteBuilder.ParameterControlBuilder
Constructor and Description |
---|
DefaultRouteBuilder(Proxifier proxifier,
TypeFinder finder,
Converters converters,
ParameterNameProvider nameProvider,
Evaluator evaluator,
java.lang.String uri) |
Modifier and Type | Method and Description |
---|---|
Route |
build() |
void |
is(java.lang.Class<?> type,
java.lang.reflect.Method method) |
<T> T |
is(java.lang.Class<T> type) |
java.lang.String |
toString() |
DefaultRouteBuilder |
with(HttpMethod method)
Accepts also this http method request.
|
DefaultRouteBuilder |
with(java.util.Set<HttpMethod> methods)
Accepts also all given http methods.
|
DefaultRouteBuilder.DefaultParameterControlBuilder |
withParameter(java.lang.String name) |
DefaultRouteBuilder |
withPriority(int priority)
Changes Route priority
|
public DefaultRouteBuilder(Proxifier proxifier, TypeFinder finder, Converters converters, ParameterNameProvider nameProvider, Evaluator evaluator, java.lang.String uri)
public DefaultRouteBuilder.DefaultParameterControlBuilder withParameter(java.lang.String name)
withParameter
in interface RouteBuilder
public <T> T is(java.lang.Class<T> type)
is
in interface RouteBuilder
public void is(java.lang.Class<?> type, java.lang.reflect.Method method)
is
in interface RouteBuilder
public DefaultRouteBuilder with(HttpMethod method)
with
in interface RouteBuilder
method
- public DefaultRouteBuilder with(java.util.Set<HttpMethod> methods)
RouteBuilder
with
in interface RouteBuilder
public DefaultRouteBuilder withPriority(int priority)
withPriority
in interface RouteBuilder
priority
- public Route build()
build
in interface RouteBuilder
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2013 Caelum. All Rights Reserved.