@Test public void shouldApplyStatusCode() { response.setStatusCode(HttpStatus.OK); response.applyStatusCode(); verify(mockHttpServerResponse).setStatusCode(200); }
@Override protected void applyStatusCode() { HttpStatus statusCode = getStatusCode(); if (statusCode != null) { delegate.setStatusCode(statusCode.value()); } }
VertxServerHttpResponse extends AbstractServerHttpResponse implements ZeroCopyHttpOutputMessage { @Override protected void applyStatusCode() { HttpStatus statusCode = getStatusCode(); if (statusCode != null) { delegate.setStatusCode(statusCode.value()); } } }
VertxServerHttpResponse extends AbstractServerHttpResponse implements ZeroCopyHttpOutputMessage { @Override protected void applyStatusCode() { HttpStatus statusCode = getStatusCode(); if (statusCode != null) { delegate.setStatusCode(statusCode.value()); } } VertxServerHttpResponse(RoutingContext context, BufferConverter bufferConverter); }
VertxServerHttpResponse extends AbstractServerHttpResponse implements ZeroCopyHttpOutputMessage { @Override protected void applyStatusCode() { HttpStatus statusCode = getStatusCode(); if (statusCode != null) { delegate.setStatusCode(statusCode.value()); } } VertxServerHttpResponse(RoutingContext context, BufferConverter bufferConverter); @SuppressWarnings("unchecked") @Override T getNativeResponse(); @Override Mono<Void> writeWith(Path file, long position, long count); }
VertxServerHttpResponse extends AbstractServerHttpResponse implements ZeroCopyHttpOutputMessage { @Override protected void applyStatusCode() { HttpStatus statusCode = getStatusCode(); if (statusCode != null) { delegate.setStatusCode(statusCode.value()); } } VertxServerHttpResponse(RoutingContext context, BufferConverter bufferConverter); @SuppressWarnings("unchecked") @Override T getNativeResponse(); @Override Mono<Void> writeWith(Path file, long position, long count);  }