Package | Description |
---|---|
org.eclipse.m2e.tests.common |
Modifier and Type | Method and Description |
---|---|
HttpServer |
HttpServer.addResources(String contextRoot,
String baseDirectory,
String... filteredExtensions)
Adds resources to the server.
|
HttpServer |
HttpServer.addSecuredRealm(String pathSpec,
String... roles)
Sets up a security realm.
|
HttpServer |
HttpServer.addUser(String username,
String password,
String... roles)
Registers a user.
|
HttpServer |
HttpServer.enableRecording(String... patterns)
Enables request recording for the specified URI patterns.
|
HttpServer |
HttpServer.setFilterToken(String token,
String value)
Sets a token to replace during resource filtering.
|
HttpServer |
HttpServer.setHttpPort(int httpPort)
Sets the port to use for HTTP connections.
|
HttpServer |
HttpServer.setHttpsPort(int httpsPort)
Sets the port to use for HTTPS connections.
|
HttpServer |
HttpServer.setKeyStore(String path,
String password)
Sets the keystore to use for the server certificate on the SSL connector.
|
HttpServer |
HttpServer.setLatency(long millis)
Sets the latency of the server.
|
HttpServer |
HttpServer.setNeedClientAuth(boolean needClientAuth)
Enables/disables client-side certificate authentication.
|
HttpServer |
HttpServer.setProxyAuth(String username,
String password)
Sets the credentials to use for proxy authentication.
|
HttpServer |
HttpServer.setRedirectToHttps(boolean redirectToHttps)
Enforces redirection from HTTP to HTTPS.
|
HttpServer |
HttpServer.setStorePassword(String password)
Sets the password to use for the SSL connector store.
|
HttpServer |
HttpServer.setTrustStore(String path,
String password)
Sets the truststore to use for validating client credentials via the SSL connector.
|
HttpServer |
HttpServer.start()
Starts the server.
|
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.