public class HttpRepositoryOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ADDRESS
Default EB address of the HTTP repository
|
| Constructor and Description |
|---|
HttpRepositoryOptions()
Default constructor
|
HttpRepositoryOptions(HttpRepositoryOptions other)
Copy constructor
|
HttpRepositoryOptions(io.vertx.core.json.JsonObject json)
Create an settings from JSON
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress() |
Set<String> |
getAllowedRequestHeaders() |
List<Pattern> |
getAllowedRequestHeadersPatterns() |
ClientDestination |
getClientDestination() |
io.vertx.core.http.HttpClientOptions |
getClientOptions() |
CustomHttpHeader |
getCustomHttpHeader() |
HttpRepositoryOptions |
setAddress(String address)
Set the EB address of the HTTP repository verticle
|
HttpRepositoryOptions |
setAllowedRequestHeaderPatterns(List<Pattern> allowedRequestHeaderPatterns) |
HttpRepositoryOptions |
setAllowedRequestHeaders(Set<String> allowedRequestHeaders)
Set the collection of patterns of allowed request headers.
|
HttpRepositoryOptions |
setClientDestination(ClientDestination clientDestination)
Set the remote location of the repository
|
HttpRepositoryOptions |
setClientOptions(io.vertx.core.http.HttpClientOptions clientOptions)
Set the
HttpClientOptions used by the HTTP client
to communicate with remote http repository |
HttpRepositoryOptions |
setCustomHttpHeader(CustomHttpHeader customHttpHeader)
Set the header (name and value) to be sent in every request to the remote repository
|
io.vertx.core.json.JsonObject |
toJson()
Convert to JSON
|
public static final String DEFAULT_ADDRESS
public HttpRepositoryOptions()
public HttpRepositoryOptions(HttpRepositoryOptions other)
other - the instance to copypublic HttpRepositoryOptions(io.vertx.core.json.JsonObject json)
json - the JSONpublic io.vertx.core.json.JsonObject toJson()
public String getAddress()
public HttpRepositoryOptions setAddress(String address)
address - an EB address of the verticlepublic io.vertx.core.http.HttpClientOptions getClientOptions()
HttpClientOptionspublic HttpRepositoryOptions setClientOptions(io.vertx.core.http.HttpClientOptions clientOptions)
HttpClientOptions used by the HTTP client
to communicate with remote http repositoryclientOptions - HttpClientOptions objectpublic ClientDestination getClientDestination()
ClientDestinationpublic HttpRepositoryOptions setClientDestination(ClientDestination clientDestination)
clientDestination - a ClientDestination objectpublic Set<String> getAllowedRequestHeaders()
public HttpRepositoryOptions setAllowedRequestHeaders(Set<String> allowedRequestHeaders)
allowedRequestHeaders - a Set of patterns of allowed request headerspublic CustomHttpHeader getCustomHttpHeader()
public HttpRepositoryOptions setCustomHttpHeader(CustomHttpHeader customHttpHeader)
customHttpHeader - the header name and valuepublic HttpRepositoryOptions setAllowedRequestHeaderPatterns(List<Pattern> allowedRequestHeaderPatterns)
Copyright © 2016–2020. All rights reserved.