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