@ApplicationScoped public class PathAnnotationRoutesParser extends Object implements RoutesParser
| Constructor and Description |
|---|
PathAnnotationRoutesParser(Router router) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
defaultUriFor(String controllerName,
String methodName)
You can override this method for use a different convention for your
default URI, given a controller name and a method name
|
protected String |
extractControllerNameFrom(Class<?> type)
You can override this method for use a different convention for your
controller name, given a type
|
protected String |
extractPrefix(Class<?> type) |
protected void |
fixURIs(Class<?> type,
String[] uris) |
protected EnumSet<HttpMethod> |
getHttpMethods(AnnotatedElement annotated) |
protected String[] |
getURIsFor(Method javaMethod,
Class<?> type) |
protected boolean |
isEligible(Method javaMethod) |
protected String |
lowerFirstCharacter(String baseName) |
protected List<Route> |
registerRulesFor(Class<?> baseType) |
protected String |
removeTrailingSlash(String prefix) |
List<Route> |
rulesFor(ResourceClass resource) |
public PathAnnotationRoutesParser(Router router)
public List<Route> rulesFor(ResourceClass resource)
rulesFor in interface RoutesParserprotected EnumSet<HttpMethod> getHttpMethods(AnnotatedElement annotated)
protected boolean isEligible(Method javaMethod)
protected String extractControllerNameFrom(Class<?> type)
protected String defaultUriFor(String controllerName, String methodName)
Copyright © 2014 Caelum. All Rights Reserved.