|
aerogear-controller 1.0.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Route
An object that contains information required to route HTTP requests to a target class's method.
| Method Summary | |
|---|---|
boolean |
canHandle(Throwable throwable)
Determines if this Route can handle the throwable. |
Set<String> |
consumes()
Returns the media types that this Route is capable of consuming. |
Set<RequestMethod> |
getMethods()
Gets the RequestMethods for this Route. |
List<Parameter<?>> |
getParameters()
Returns the Parameter's that this route accepts. |
String |
getPath()
Gets the path for this Route. |
Set<String> |
getRoles()
Gets this Routes associated roles. |
Class<?> |
getTargetClass()
Gets the target class for this Route |
Method |
getTargetMethod()
Gets the Method of the target class for this Route. |
boolean |
hasExceptionsRoutes()
Determines if this Route contains one or more exception routes. |
boolean |
isParameterized()
Determines if this Route's path is parameterized. |
boolean |
isSecured()
Determines if this Route has roles configured. |
boolean |
matches(RequestMethod method,
String path,
Set<String> acceptHeaders)
Determines if this Route can handle the RequestMethod and path combination. |
Set<MediaType> |
produces()
Returns the media types that this Route is capable of serving. |
| Method Detail |
|---|
Set<RequestMethod> getMethods()
RequestMethods for this Route.
RequestMethods, or an empty set.String getPath()
Method getTargetMethod()
Method of the target class for this Route.
Class<?> getTargetClass()
boolean matches(RequestMethod method,
String path,
Set<String> acceptHeaders)
RequestMethod and path combination.
method - the http request methods.path - the request path.acceptHeaders - the accept headers provided, or an empty set if none were provided.
true if this Route can handle the method and path passed in, false otherwise.boolean isParameterized()
true if this Route's path parameterized, otherwise false.boolean isSecured()
true if this Route has roles associated with its Route.Set<String> getRoles()
boolean hasExceptionsRoutes()
true if this Route has one or more exception routes.boolean canHandle(Throwable throwable)
throwable -
true if this Route can handle the Throwable, otherwise false.Set<MediaType> produces()
List<Parameter<?>> getParameters()
Parameter's that this route accepts.Set<String> consumes()
|
aerogear-controller 1.0.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||