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 target)
Deprecated.
|
FullDuplexHttpStream(URL target,
String authorization)
Deprecated.
use
FullDuplexHttpStream(URL, String, String) instead |
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.
|
@Deprecated public FullDuplexHttpStream(URL target) throws IOException
IOException@Deprecated public FullDuplexHttpStream(URL target, String authorization) throws IOException
FullDuplexHttpStream(URL, String, String) insteadtarget - something like http://jenkins/cli?remoting=true
which we then need to split into http://jenkins/ + cli?remoting=true
in order to construct a crumb issuer requestIOExceptionpublic 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–2018. All rights reserved.