@Component @ApplicationScoped public class DefaultRoutes extends Object implements Routes
| Constructor and Description |
|---|
DefaultRoutes(Router router,
Proxifier proxifier) |
| Modifier and Type | Method and Description |
|---|---|
EnumSet<HttpMethod> |
allowedMethodsFor(String uri)
Returns an enumset of allowed methods for this specific uri.
|
String |
getUri()
Returns the last analyzed uri.
|
<T> T |
uriFor(Class<T> type)
Analyzes an uri for a specific controller.
|
public <T> T uriFor(Class<T> type)
Routespublic String getUri()
Routespublic EnumSet<HttpMethod> allowedMethodsFor(String uri)
RoutesallowedMethodsFor in interface RoutesCopyright © 2014 Caelum. All Rights Reserved.