Skip to content

Instantly share code, notes, and snippets.

@joachimhs
Created May 14, 2012 16:41
Show Gist options
  • Save joachimhs/2694990 to your computer and use it in GitHub Desktop.
Save joachimhs/2694990 to your computer and use it in GitHub Desktop.
Vert.X Handler
package org.eurekaj.manager.data;
import org.vertx.java.core.Handler;
import org.vertx.java.core.buffer.Buffer;
import org.vertx.java.core.http.HttpServerRequest;
public class HandleInstrumentationMenuRequest implements Handler<Buffer> {
private HttpServerRequest req;
public HandleInstrumentationMenuRequest(HttpServerRequest req) {
this.req = req;
}
@Override
public void handle(Buffer buffer) {
//Parse Buffer contents
//Create Response
//send the response
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment