Package com.duncpro.jroute.rest
Class RestRouter<E>
- java.lang.Object
-
- com.duncpro.jroute.util.DelegatingRouter<RestResource<E>>
-
- com.duncpro.jroute.rest.RestRouter<E>
-
- All Implemented Interfaces:
Router<RestResource<E>>
public class RestRouter<E> extends DelegatingRouter<RestResource<E>>
-
-
Constructor Summary
Constructors Constructor Description RestRouter()
RestRouter(Router<RestResource<E>> underlyingRouter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(HttpMethod method, Route route, E endpoint)
void
add(HttpMethod method, java.lang.String route, E endpoint)
RestRouteResult<E>
route(HttpMethod method, Path path)
RestRouteResult<E>
route(HttpMethod method, java.lang.String path)
-
Methods inherited from class com.duncpro.jroute.util.DelegatingRouter
add, getAllEndpoints, getEndpoint, getOrAdd, route
-
-
-
-
Constructor Detail
-
RestRouter
public RestRouter()
-
RestRouter
public RestRouter(Router<RestResource<E>> underlyingRouter)
-
-
Method Detail
-
add
public void add(HttpMethod method, Route route, E endpoint) throws RouteConflictException
- Throws:
RouteConflictException
-
add
public void add(HttpMethod method, java.lang.String route, E endpoint) throws RouteConflictException
- Throws:
RouteConflictException
-
route
public RestRouteResult<E> route(HttpMethod method, Path path)
-
route
public RestRouteResult<E> route(HttpMethod method, java.lang.String path)
-
-