Java Code Examples for io.vertx.core.http.HttpMethod#DELETE

The following examples show how to use io.vertx.core.http.HttpMethod#DELETE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractHttpMessageHandler.java    From festival with Apache License 2.0 5 votes vote down vote up
@Override
public Object[] handle(RoutingContext routingContext, Parameter[] parameters) throws Exception {
    HttpServerRequest httpServerRequest = routingContext.request();
    HttpMethod httpMethod = httpServerRequest.method();
    if (httpMethod == HttpMethod.GET || httpMethod == HttpMethod.POST
            || httpMethod == HttpMethod.PUT || httpMethod == HttpMethod.DELETE) {
        return doHandle(routingContext, parameters);
    }
    return new Object[0];
}
 
Example 2
Source File: RollBackURL.java    From raml-module-builder with Apache License 2.0 4 votes vote down vote up
public RollBackURL(String endpoint) {
  this(endpoint, HttpMethod.DELETE);
}
 
Example 3
Source File: RouteBuilder.java    From vxms with Apache License 2.0 4 votes vote down vote up
public static RouteBuilder delete(String path, RestHandlerConsumer methodReference, String... consumes) {
    return new RouteBuilder(
            new MethodDescriptor(HttpMethod.DELETE, path, methodReference, consumes, null));
}