@Test public void unwrap() { performer.onserver(new Action<ServerHttpExchange>() { @Override public void on(ServerHttpExchange http) { assertThat(http.unwrap(HttpServerRequest.class), instanceOf(HttpServerRequest.class)); performer.start(); } }) .send(); }
@Override public <T> T unwrap(Class<T> clazz) { return HttpServerRequest.class.isAssignableFrom(clazz) ? clazz.cast(request) : null; }
VertxServerHttpExchange extends AbstractServerHttpExchange { @Override public <T> T unwrap(Class<T> clazz) { return HttpServerRequest.class.isAssignableFrom(clazz) ? clazz.cast(request) : null; } }
VertxServerHttpExchange extends AbstractServerHttpExchange { @Override public <T> T unwrap(Class<T> clazz) { return HttpServerRequest.class.isAssignableFrom(clazz) ? clazz.cast(request) : null; } VertxServerHttpExchange(HttpServerRequest request); }
VertxServerHttpExchange extends AbstractServerHttpExchange { @Override public <T> T unwrap(Class<T> clazz) { return HttpServerRequest.class.isAssignableFrom(clazz) ? clazz.cast(request) : null; } VertxServerHttpExchange(HttpServerRequest request); @Override String uri(); @Override String method(); @Override Set<String> headerNames(); @Override List<String> headers(String name); @Override T unwrap(Class<T> clazz); }
VertxServerHttpExchange extends AbstractServerHttpExchange { @Override public <T> T unwrap(Class<T> clazz) { return HttpServerRequest.class.isAssignableFrom(clazz) ? clazz.cast(request) : null; } VertxServerHttpExchange(HttpServerRequest request); @Override String uri(); @Override String method(); @Override Set<String> headerNames(); @Override List<String> headers(String name); @Override T unwrap(Class<T> clazz);  }