public class HttpServiceFactory extends ServiceVerticleFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_PASSWORD_PROPERTY |
static String |
AUTH_USERNAME_PROPERTY |
static String |
CACHE_DIR_PROPERTY |
static String |
HTTP_CLIENT_OPTIONS_PROPERTY |
static String |
HTTPS_CLIENT_OPTIONS_PROPERTY |
static String |
KEYSERVER_URI_TEMPLATE |
static String |
PROXY_HOST_PROPERTY |
static String |
PROXY_PORT_PROPERTY |
static String |
VALIDATION_POLICY |
| Constructor and Description |
|---|
HttpServiceFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected HttpClientOptions |
configOptions() |
protected HttpClientOptions |
createHttpClientOptions(String scheme) |
protected void |
doRequest(HttpClient client,
File file,
URI url,
File signatureFile,
URI signatureURL,
Handler<AsyncResult<io.vertx.ext.httpservicefactory.HttpServiceFactory.Result>> handler) |
void |
init(Vertx vertx)
Initialise the factory
|
String |
prefix() |
void |
resolve(String identifier,
DeploymentOptions deploymentOptions,
ClassLoader classLoader,
Promise<String> resolution)
Some verticle factories can "resolve" the identifer to another identifier which is then used to look up the real
verticle factory.
|
createVerticle, requiresResolveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitblockingCreate, close, order, removePrefixpublic static final String CACHE_DIR_PROPERTY
public static final String HTTP_CLIENT_OPTIONS_PROPERTY
public static final String HTTPS_CLIENT_OPTIONS_PROPERTY
public static final String AUTH_USERNAME_PROPERTY
public static final String AUTH_PASSWORD_PROPERTY
public static final String PROXY_HOST_PROPERTY
public static final String PROXY_PORT_PROPERTY
public static final String KEYSERVER_URI_TEMPLATE
public static final String VALIDATION_POLICY
public void init(Vertx vertx)
VerticleFactoryvertx - The Vert.x instanceprotected HttpClientOptions createHttpClientOptions(String scheme)
protected HttpClientOptions configOptions()
public String prefix()
prefix in interface VerticleFactoryprefix in class ServiceVerticleFactorypublic void resolve(String identifier, DeploymentOptions deploymentOptions, ClassLoader classLoader, Promise<String> resolution)
VerticleFactoryresolve in interface VerticleFactoryresolve in class ServiceVerticleFactoryidentifier - The identifierdeploymentOptions - The deployment options - these can be changed inside the resolve method (e.g. to add an extra classpath)classLoader - The classloaderresolution - A future which will receive the result of the resolution.protected void doRequest(HttpClient client, File file, URI url, File signatureFile, URI signatureURL, Handler<AsyncResult<io.vertx.ext.httpservicefactory.HttpServiceFactory.Result>> handler)
Copyright © 2021 Eclipse. All rights reserved.