Package | Description |
---|---|
br.com.caelum.vraptor.controller | |
br.com.caelum.vraptor.http.route | |
br.com.caelum.vraptor.view |
Modifier and Type | Method and Description |
---|---|
static HttpMethod |
HttpMethod.of(javax.servlet.http.HttpServletRequest request) |
static HttpMethod |
HttpMethod.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethod[] |
HttpMethod.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
MethodNotAllowedHandler.deny(MutableRequest request,
MutableResponse response,
Set<HttpMethod> allowedMethods)
Denies current request due to method not allowed.
|
void |
DefaultMethodNotAllowedHandler.deny(MutableRequest request,
MutableResponse response,
Set<HttpMethod> allowedMethods) |
Modifier and Type | Method and Description |
---|---|
EnumSet<HttpMethod> |
Route.allowedMethods() |
EnumSet<HttpMethod> |
NoStrategy.allowedMethods() |
EnumSet<HttpMethod> |
FixedMethodStrategy.allowedMethods() |
EnumSet<HttpMethod> |
Router.allowedMethodsFor(String uri) |
EnumSet<HttpMethod> |
DefaultRouter.allowedMethodsFor(String uri) |
Set<HttpMethod> |
MethodNotAllowedException.getAllowedMethods() |
Modifier and Type | Method and Description |
---|---|
ControllerMethod |
Router.parse(String uri,
HttpMethod method,
MutableRequest request)
Find a
ControllerMethod that can handle this request. |
ControllerMethod |
DefaultRouter.parse(String uri,
HttpMethod method,
MutableRequest request) |
RouteBuilder |
RouteBuilder.with(HttpMethod method)
Accepts also this http method request.
|
DefaultRouteBuilder |
DefaultRouteBuilder.with(HttpMethod method)
Accepts also this http method request.
|
Modifier and Type | Method and Description |
---|---|
RouteBuilder |
RouteBuilder.with(Set<HttpMethod> methods)
Accepts also all given http methods.
|
DefaultRouteBuilder |
DefaultRouteBuilder.with(Set<HttpMethod> methods) |
Constructor and Description |
---|
FixedMethodStrategy(String originalUri,
ControllerMethod method,
Set<HttpMethod> methods,
ParametersControl control,
int priority,
Parameter[] parameterNames) |
MethodNotAllowedException(Set<HttpMethod> allowed,
String requested) |
Modifier and Type | Method and Description |
---|---|
void |
Status.methodNotAllowed(EnumSet<HttpMethod> allowedMethods)
Returns a Method Not Allowed (405) status
|
void |
DefaultStatus.methodNotAllowed(EnumSet<HttpMethod> allowedMethods) |
Copyright © 2014 Caelum. All rights reserved.