-
- All Implemented Interfaces:
-
org.openziti.util.Logged
public final class ZitiHTTPConnection extends HttpURLConnection implements Logged
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classZitiHTTPConnection.Outputpublic classZitiHTTPConnection.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ByteArrayOutputStreambodyprivate final Request.Builderreqprivate Callcallprivate Responseresponseprivate final Stringmethodprivate final IntegerchunkLengthprivate final IntegerfixedContentLengthprivate final LongfixedContentLengthLongprivate final IntegerresponseCodeprivate final StringresponseMessageprivate final BooleaninstanceFollowRedirectsprivate final URLurlprivate final BooleandoInputprivate final BooleandoOutputprivate final BooleanallowUserInteractionprivate final BooleanuseCachesprivate final LongifModifiedSinceprivate final Booleanconnected
-
Constructor Summary
Constructors Constructor Description ZitiHTTPConnection(URL url)
-
Method Summary
Modifier and Type Method Description final ByteArrayOutputStreamgetBody()final Request.BuildergetReq()final CallgetCall()final UnitsetCall(Call call)final ResponsegetResponse()final UnitsetResponse(Response response)BooleanusingProxy()UnitsetRequestMethod(String method)UnitsetRequestProperty(String key, String value)UnitaddRequestProperty(String key, String value)Unitconnect()Unitdisconnect()IntegergetResponseCode()StringgetResponseMessage()StringgetHeaderField(String name)LonggetContentLengthLong()Map<String, List<String>>getHeaderFields()IntegergetContentLength()OutputStreamgetOutputStream()InputStreamgetInputStream()final Responseexecute()-
Methods inherited from class org.openziti.net.internal.ZitiHTTPConnection
d, d, e, e, e, e, getErrorStream, getHeaderField, getHeaderFieldDate, getHeaderFieldKey, getInstanceFollowRedirects, getPermission, getRequestMethod, i, i, setChunkedStreamingMode, setFixedLengthStreamingMode, setFixedLengthStreamingMode, setInstanceFollowRedirects, t, t, v, v, w, w -
Methods inherited from class java.net.HttpURLConnection
getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentHandler, getContentType, getDate, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getHeaderFieldInt, getHeaderFieldLong, getIfModifiedSince, getLastModified, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, setAllowUserInteraction, setConnectTimeout, setDefaultUseCaches, setDoInput, setDoOutput, setIfModifiedSince, setReadTimeout, setUseCaches, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ZitiHTTPConnection
ZitiHTTPConnection(URL url)
-
-
Method Detail
-
getBody
final ByteArrayOutputStream getBody()
-
getReq
final Request.Builder getReq()
-
getCall
final Call getCall()
-
getResponse
final Response getResponse()
-
setResponse
final Unit setResponse(Response response)
-
usingProxy
Boolean usingProxy()
-
setRequestMethod
Unit setRequestMethod(String method)
-
setRequestProperty
Unit setRequestProperty(String key, String value)
-
addRequestProperty
Unit addRequestProperty(String key, String value)
-
disconnect
Unit disconnect()
-
getResponseCode
Integer getResponseCode()
-
getResponseMessage
String getResponseMessage()
-
getHeaderField
String getHeaderField(String name)
-
getContentLengthLong
Long getContentLengthLong()
-
getHeaderFields
Map<String, List<String>> getHeaderFields()
-
getContentLength
Integer getContentLength()
-
getOutputStream
OutputStream getOutputStream()
-
getInputStream
InputStream getInputStream()
-
execute
final Response execute()
-
-
-
-