110 строки
7.7 KiB
YAML
110 строки
7.7 KiB
YAML
### YamlMime:JavaType
|
|
uid: "com.azure.core.test.http.LocalTestServer"
|
|
fullName: "com.azure.core.test.http.LocalTestServer"
|
|
name: "LocalTestServer"
|
|
nameWithType: "LocalTestServer"
|
|
summary: "Local server that will reply to requests based on the configured <xref uid=\"\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpServlet\"></xref>."
|
|
inheritances:
|
|
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
|
|
inheritedClassMethods:
|
|
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
|
|
methodsRef:
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
|
|
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
|
|
syntax: "public class **LocalTestServer**"
|
|
constructors:
|
|
- uid: "com.azure.core.test.http.LocalTestServer.LocalTestServer(com.azure.core.test.http.LocalTestServer.RequestHandler)"
|
|
fullName: "com.azure.core.test.http.LocalTestServer.LocalTestServer(LocalTestServer.RequestHandler requestHandler)"
|
|
name: "LocalTestServer(LocalTestServer.RequestHandler requestHandler)"
|
|
nameWithType: "LocalTestServer.LocalTestServer(LocalTestServer.RequestHandler requestHandler)"
|
|
summary: "Creates a new instance of <xref uid=\"com.azure.core.test.http.LocalTestServer\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LocalTestServer\"></xref> that will reply to requests based on the passed Request<wbr>Handler."
|
|
parameters:
|
|
- description: "The request handler that will be used to process requests."
|
|
name: "requestHandler"
|
|
type: "<xref href=\"com.azure.core.test.http.LocalTestServer.RequestHandler?alt=com.azure.core.test.http.LocalTestServer.RequestHandler&text=RequestHandler\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public LocalTestServer(LocalTestServer.RequestHandler requestHandler)"
|
|
desc: "Creates a new instance of <xref uid=\"com.azure.core.test.http.LocalTestServer\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LocalTestServer\"></xref> that will reply to requests based on the passed RequestHandler."
|
|
- uid: "com.azure.core.test.http.LocalTestServer.LocalTestServer(com.azure.core.test.http.LocalTestServer.RequestHandler,int)"
|
|
fullName: "com.azure.core.test.http.LocalTestServer.LocalTestServer(LocalTestServer.RequestHandler requestHandler, int maxThreads)"
|
|
name: "LocalTestServer(LocalTestServer.RequestHandler requestHandler, int maxThreads)"
|
|
nameWithType: "LocalTestServer.LocalTestServer(LocalTestServer.RequestHandler requestHandler, int maxThreads)"
|
|
summary: "Creates a new instance of <xref uid=\"com.azure.core.test.http.LocalTestServer\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LocalTestServer\"></xref> that will reply to requests based on the passed Request<wbr>Handler."
|
|
parameters:
|
|
- description: "The request handler that will be used to process requests."
|
|
name: "requestHandler"
|
|
type: "<xref href=\"com.azure.core.test.http.LocalTestServer.RequestHandler?alt=com.azure.core.test.http.LocalTestServer.RequestHandler&text=RequestHandler\" data-throw-if-not-resolved=\"False\" />"
|
|
- description: "The maximum number of threads that the server will use to process requests."
|
|
name: "maxThreads"
|
|
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public LocalTestServer(LocalTestServer.RequestHandler requestHandler, int maxThreads)"
|
|
desc: "Creates a new instance of <xref uid=\"com.azure.core.test.http.LocalTestServer\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LocalTestServer\"></xref> that will reply to requests based on the passed RequestHandler."
|
|
methods:
|
|
- uid: "com.azure.core.test.http.LocalTestServer.getHttpPort()"
|
|
fullName: "com.azure.core.test.http.LocalTestServer.getHttpPort()"
|
|
name: "getHttpPort()"
|
|
nameWithType: "LocalTestServer.getHttpPort()"
|
|
summary: "Gets the HTTP port that the local server is listening on."
|
|
syntax: "public int getHttpPort()"
|
|
desc: "Gets the HTTP port that the local server is listening on."
|
|
returns:
|
|
description: "The HTTP port that the local server is listening on."
|
|
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.core.test.http.LocalTestServer.getHttpUri()"
|
|
fullName: "com.azure.core.test.http.LocalTestServer.getHttpUri()"
|
|
name: "getHttpUri()"
|
|
nameWithType: "LocalTestServer.getHttpUri()"
|
|
summary: "Gets the HTTP URI that the local server is listening on."
|
|
syntax: "public String getHttpUri()"
|
|
desc: "Gets the HTTP URI that the local server is listening on."
|
|
returns:
|
|
description: "The HTTP URI that the local server is listening on."
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- uid: "com.azure.core.test.http.LocalTestServer.getHttpsPort()"
|
|
fullName: "com.azure.core.test.http.LocalTestServer.getHttpsPort()"
|
|
name: "getHttpsPort()"
|
|
nameWithType: "LocalTestServer.getHttpsPort()"
|
|
summary: "Gets the HTTPS port that the local server is listening on."
|
|
syntax: "public int getHttpsPort()"
|
|
desc: "Gets the HTTPS port that the local server is listening on."
|
|
returns:
|
|
description: "The HTTPS port that the local server is listening on."
|
|
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
|
|
- uid: "com.azure.core.test.http.LocalTestServer.getHttpsUri()"
|
|
fullName: "com.azure.core.test.http.LocalTestServer.getHttpsUri()"
|
|
name: "getHttpsUri()"
|
|
nameWithType: "LocalTestServer.getHttpsUri()"
|
|
summary: "Gets the HTTPS URI that the local server is listening on."
|
|
syntax: "public String getHttpsUri()"
|
|
desc: "Gets the HTTPS URI that the local server is listening on."
|
|
returns:
|
|
description: "The HTTPS URI that the local server is listening on."
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
|
|
- uid: "com.azure.core.test.http.LocalTestServer.start()"
|
|
fullName: "com.azure.core.test.http.LocalTestServer.start()"
|
|
name: "start()"
|
|
nameWithType: "LocalTestServer.start()"
|
|
summary: "Starts the local server."
|
|
syntax: "public void start()"
|
|
desc: "Starts the local server.\n\nThis must be called before any requests will be processed."
|
|
- uid: "com.azure.core.test.http.LocalTestServer.stop()"
|
|
fullName: "com.azure.core.test.http.LocalTestServer.stop()"
|
|
name: "stop()"
|
|
nameWithType: "LocalTestServer.stop()"
|
|
summary: "Stops the local server."
|
|
syntax: "public void stop()"
|
|
desc: "Stops the local server.\n\nThis must be called to close any server resources."
|
|
type: "class"
|
|
desc: "Local server that will reply to requests based on the configured <xref uid=\"\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpServlet\"></xref>."
|
|
metadata: {}
|
|
package: "com.azure.core.test.http"
|
|
artifact: com.azure:azure-core-test:1.26.2
|