Permalink
Browse files

IntraHandlerJson now uses common iface. Closes #201

  • Loading branch information...
1 parent 5c3f1e9 commit 6f733d003e7526488bec69e9acbdd76b2dc07a17 @zznate committed May 17, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/main/java/org/usergrid/vx/handler/http/payload/IntraHandlerJson.java
View
5 src/main/java/org/usergrid/vx/handler/http/payload/IntraHandlerJson.java
@@ -21,6 +21,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.usergrid.vx.experimental.IntraReq;
+import org.usergrid.vx.handler.IntraHandler;
import org.usergrid.vx.handler.PayloadRoutingHandler;
import org.vertx.java.core.Handler;
import org.vertx.java.core.Vertx;
@@ -47,7 +48,7 @@
* paesed into {@link org.usergrid.vx.experimental.IntraReq}
*/
-public class IntraHandlerJson implements Handler<HttpServerRequest>{
+public class IntraHandlerJson implements IntraHandler {
private static Logger logger = LoggerFactory.getLogger(IntraHandlerJson.class);
private static ObjectMapper mapper = new ObjectMapper();
@@ -72,7 +73,7 @@ public void handle(Buffer buffer) {
});
}
- private void handleRequestAsync(final HttpServerRequest request, Buffer buffer) {
+ public void handleRequestAsync(final HttpServerRequest request, Buffer buffer) {
IntraReq req = null;
try {
req = mapper.readValue(buffer.getBytes(), IntraReq.class);

0 comments on commit 6f733d0

Please sign in to comment.