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