Top Description Inners Constructors Methods
examples

public Class HTTPExamples

extends Object
Class Inheritance
Imports
io.netty.handler.codec.compression.GzipOptions, .StandardCompressionOptions, io.vertx.core.*, io.vertx.core.buffer.Buffer, io.vertx.core.file.AsyncFile, .FileSystem, .OpenOptions, io.vertx.core.http.*, io.vertx.core.json.JsonObject, io.vertx.core.net.NetSocket, .ProxyOptions, .ProxyType, io.vertx.core.streams.Pipe, .ReadStream

Created by tim on 09/01/15.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static interface
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
public void
clientConnectTimeout(HttpClient client, int port, String host, String uri, int timeoutMS)

public void
clientIdleTimeout(HttpClient client, int port, String host, String uri, int timeoutMS)

public void
clientTimeout(HttpClient client, int port, String host, String uri, int timeoutMS)

public void
public static void
public void
example1(Vertx vertx)

public void
public void
public void
public void
public void
public void
public void
example16(HttpServerRequest request, Buffer buffer)
References Deprecated Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

public void
public void
public void
public void
example2(Vertx vertx)

public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
example3(Vertx vertx)

public void
public void
public void
public void
public void
example34(Vertx vertx, String body)

public void
public void
public void
public void
example4(Vertx vertx)

public void
public void
public void
public void
public void
public void
public void
public void
public void
example5(Vertx vertx)

public void
public void
example50_1(HttpServer httpServer)

public void
example50_2(HttpServer httpServer)

public void
public void
public void
public void
public void
public void
example55(WebSocket webSocket)

public void
example56(WebSocket webSocket, Buffer buffer1, Buffer buffer2, Buffer buffer3)
References Deprecated Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

public void
public void
example57(WebSocket webSocket)

public void
public void
public void
example6(Vertx vertx)

public void
public void
public void
example7(Vertx vertx)

public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
exampleWebSocketSetOriginHeader(WebSocketClient client, String host, int port, String requestUri, String origin)

public void
public static void
public static void
public static void
public void
public void
public void
private String
resolveURI(String base, String uriRef)

public void
public void
public void
public void
public void
public void
public void
public static void
public static void
public void
public void
public void
public void
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HTTPExamplesback to summary
public HTTPExamples()

Method Detail

authenticateback to summary
private static void authenticate(MultiMap headers, Handler<AsyncResult<Boolean>> handler)
clientConnectTimeoutback to summary
public void clientConnectTimeout(HttpClient client, int port, String host, String uri, int timeoutMS)
clientIdleTimeoutback to summary
public void clientIdleTimeout(HttpClient client, int port, String host, String uri, int timeoutMS)
clientTimeoutback to summary
public void clientTimeout(HttpClient client, int port, String host, String uri, int timeoutMS)
clientTunnelback to summary
public void clientTunnel(HttpClient client)
compressorConfigback to summary
public static void compressorConfig()
example1back to summary
public void example1(Vertx vertx)
example10back to summary
public void example10(HttpServerRequest request)
example11back to summary
public void example11(HttpServerRequest request)
example12back to summary
public void example12(HttpServer server)
example13back to summary
public void example13(HttpServer server)
example14back to summary
public void example14(HttpServerRequest request)
example15back to summary
public void example15(HttpServerRequest request)
example16back to summary
public void example16(HttpServerRequest request, Buffer buffer)

References Deprecated

Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

example17back to summary
public void example17(HttpServerRequest request)
example18back to summary
public void example18(HttpServerRequest request)
example19back to summary
public void example19(HttpServerRequest request)
example2back to summary
public void example2(Vertx vertx)
example20back to summary
public void example20(HttpServerRequest request)
example21back to summary
public void example21(HttpServerRequest request)
example22back to summary
public void example22(HttpServerRequest request)
example23back to summary
public void example23(HttpServerRequest request)
example24back to summary
public void example24(HttpServerRequest request)
example25back to summary
public void example25(HttpServerRequest request)
example26back to summary
public void example26(Vertx vertx)
example26bback to summary
public void example26b(Vertx vertx)
example26cback to summary
public void example26c(Vertx vertx)
example27back to summary
public void example27(Vertx vertx)
example28back to summary
public void example28(Vertx vertx)
example29back to summary
public void example29(Vertx vertx)
example3back to summary
public void example3(Vertx vertx)
example30back to summary
public void example30(HttpClient client)
example31back to summary
public void example31(Vertx vertx)
example32back to summary
public void example32(Vertx vertx)
example33back to summary
public void example33(HttpClientRequest request)
example34back to summary
public void example34(Vertx vertx, String body)
example35back to summary
public void example35(HttpClientRequest request)
example36back to summary
public void example36(HttpClientRequest request)
example39back to summary
public void example39(HttpClientRequest request)
example4back to summary
public void example4(Vertx vertx)
example40back to summary
public void example40(HttpClientRequest request)
example41back to summary
public void example41(HttpClientRequest request)
example44back to summary
public void example44(HttpClientRequest request, AsyncFile file)
example45back to summary
public void example45(HttpClientRequest request)
example46back to summary
public void example46(HttpClientResponse response)
example47back to summary
public void example47(HttpClient client)
example48back to summary
public void example48(HttpClientRequest request)
example49back to summary
public void example49(HttpClientRequest request)
example5back to summary
public void example5(Vertx vertx)
example50back to summary
public void example50(HttpClient client)
example50_1back to summary
public void example50_1(HttpServer httpServer)
example50_2back to summary
public void example50_2(HttpServer httpServer)
example51back to summary
public void example51(HttpServer server)
example52back to summary
public void example52(HttpServer server)
example53back to summary
public void example53(HttpServer server)
example54back to summary
public void example54(Vertx vertx)
example54_bisback to summary
public void example54_bis(Vertx vertx)
example55back to summary
public void example55(WebSocket webSocket)
example56back to summary
public void example56(WebSocket webSocket, Buffer buffer1, Buffer buffer2, Buffer buffer3)

References Deprecated

Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

example56_1back to summary
public void example56_1(WebSocket webSocket)
example57back to summary
public void example57(WebSocket webSocket)
example58back to summary
public void example58(Vertx vertx)
example59back to summary
public void example59(Vertx vertx)
example6back to summary
public void example6(Vertx vertx)
example60back to summary
public void example60(Vertx vertx)
example61back to summary
public void example61(Vertx vertx)
example7back to summary
public void example7(Vertx vertx)
example7_1back to summary
public void example7_1(Vertx vertx)
example8back to summary
public void example8(HttpServerRequest request)
example9back to summary
public void example9(HttpServerRequest request)
exampleAsynchronousHandshakeback to summary
public void exampleAsynchronousHandshake(HttpServer server)
exampleClientBuilder01back to summary
public void exampleClientBuilder01(Vertx vertx, HttpClientOptions options)
exampleClientComposition01back to summary
public void exampleClientComposition01(HTTPExamples.HttpClient2 client) throws Exception
exampleClientComposition03back to summary
public void exampleClientComposition03(HttpClient client) throws Exception
exampleClientComposition03_back to summary
public void exampleClientComposition03_(HttpClient client) throws Exception
exampleClientComposition04back to summary
public void exampleClientComposition04(HttpClient client, FileSystem fileSystem) throws Exception
exampleClientLoggingback to summary
public void exampleClientLogging(Vertx vertx)
exampleFollowRedirect01back to summary
public void exampleFollowRedirect01(HttpClient client)
exampleFollowRedirect02back to summary
public void exampleFollowRedirect02(Vertx vertx)
exampleFollowRedirect03back to summary
public void exampleFollowRedirect03(Vertx vertx)
exampleHandlingCookiesback to summary
public void exampleHandlingCookies(HttpServerRequest request)
examplePoolConfigurationback to summary
public void examplePoolConfiguration(Vertx vertx)
exampleServerLoggingback to summary
public void exampleServerLogging(Vertx vertx)
exampleWebSocketDisableOriginHeaderback to summary
public void exampleWebSocketDisableOriginHeader(WebSocketClient client, String host, int port, String requestUri)
exampleWebSocketSetOriginHeaderback to summary
public void exampleWebSocketSetOriginHeader(WebSocketClient client, String host, int port, String requestUri, String origin)
expectationCustomErrorback to summary
public void expectationCustomError()
httpClientSharing1back to summary
public static void httpClientSharing1(Vertx vertx)
httpClientSharing2back to summary
public static void httpClientSharing2(Vertx vertx)
httpClientSharing3back to summary
public static void httpClientSharing3(Vertx vertx)
nonProxyHostsback to summary
public void nonProxyHosts(Vertx vertx)
perRequestProxyOptionsback to summary
public void perRequestProxyOptions(HttpClient client, ProxyOptions proxyOptions)
randomServersharingback to summary
public void randomServersharing(Vertx vertx)
resolveURIback to summary
private String resolveURI(String base, String uriRef)
sendHttpServerResponseback to summary
public void sendHttpServerResponse(Vertx vertx)
sendRequest01back to summary
public void sendRequest01(HttpClient client)
sendRequest02back to summary
public void sendRequest02(HttpClient client)
sendRequest03back to summary
public void sendRequest03(HttpClientRequest request)
sendRequest04back to summary
public void sendRequest04(HttpClientRequest request, ReadStream<Buffer> stream)
serversharingback to summary
public void serversharing(Vertx vertx)
serversharingclientback to summary
public void serversharingclient(Vertx vertx)
setCompressorsback to summary
public static void setCompressors()
setIdentityContentEncodingHeaderback to summary
public static void setIdentityContentEncodingHeader(HttpServerRequest request)
setRequestExceptionHandlerback to summary
public void setRequestExceptionHandler(HttpClientRequest request)
setSSLPerRequestback to summary
public void setSSLPerRequest(HttpClient client)
useRequestAsStreamback to summary
public void useRequestAsStream(HttpClientRequest request)
usingPredefinedExpectationsback to summary
public void usingPredefinedExpectations(HttpClient client, RequestOptions options)
usingPredicatesback to summary
public void usingPredicates(HttpClient client)
usingSpecificContentTypeback to summary
public void usingSpecificContentType(HttpClient client, RequestOptions options)
usingSpecificStatusback to summary
public void usingSpecificStatus(HttpClient client, RequestOptions options)
examples back to summary

private Interface HTTPExamples.HttpClient2


Method Summary

Modifier and TypeMethod and Description
public Future<HttpClientResponse>
get(String requestURI)

Method Detail

getback to summary
public Future<HttpClientResponse> get(String requestURI)
examples back to summary

private Class HTTPExamples.MyCustomException

extends Exception
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
public
MyCustomException(int code, String message)

Field Detail

codeback to summary
private final int code

Constructor Detail

MyCustomExceptionback to summary
public MyCustomException(int code, String message)