public class FullDuplexHttpStream extends Object
InputStream/OutputStream pair over
HTTP, which is a request/response protocol.
FullDuplexHttpService is the counterpart on the server side.| Constructor and Description |
|---|
FullDuplexHttpStream(URL base,
String relativeTarget,
String authorization) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
A way to get data from the server.
|
OutputStream |
getOutputStream()
A way to upload data to the server.
|
public FullDuplexHttpStream(URL base, String relativeTarget, String authorization) throws IOException
base - the base URL of JenkinsrelativeTarget - The endpoint that we are making requests to.authorization - The value of the authorization header, if non-null.IOExceptionpublic InputStream getInputStream()
public OutputStream getOutputStream()
OutputStream.flush() it to finish establishing a connection.Copyright © 2004–2021. All rights reserved.