Package com.amazonaws.kinesisvideo.http
Class HttpClientBase
- java.lang.Object
-
- com.amazonaws.kinesisvideo.http.HttpClientBase
-
- All Implemented Interfaces:
HttpClient
- Direct Known Subclasses:
KinesisVideoApacheHttpAsyncClient,KinesisVideoApacheHttpClient
public abstract class HttpClientBase extends Object implements HttpClient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpClientBase.BuilderBase<T>
-
Field Summary
Fields Modifier and Type Field Description protected HttpClientBase.BuilderBase<? extends HttpClientBase.BuilderBase>mBuilder
-
Constructor Summary
Constructors Constructor Description HttpClientBase(HttpClientBase.BuilderBase<? extends HttpClientBase.BuilderBase> builder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddHeaderUnsafe(String key, String value)This method is intended for testing use only.voidclose()abstract voidcloseClient()InputStreamgetContent()Map<String,String>getHeaders()HttpMethodNamegetMethod()URIgetUri()
-
-
-
Field Detail
-
mBuilder
protected final HttpClientBase.BuilderBase<? extends HttpClientBase.BuilderBase> mBuilder
-
-
Constructor Detail
-
HttpClientBase
public HttpClientBase(HttpClientBase.BuilderBase<? extends HttpClientBase.BuilderBase> builder)
-
-
Method Detail
-
addHeaderUnsafe
public void addHeaderUnsafe(String key, String value)
This method is intended for testing use only.- Parameters:
key- header keyvalue- header value
-
getMethod
public HttpMethodName getMethod()
- Specified by:
getMethodin interfaceHttpClient
-
getUri
public URI getUri()
- Specified by:
getUriin interfaceHttpClient
-
getHeaders
public Map<String,String> getHeaders()
- Specified by:
getHeadersin interfaceHttpClient
-
getContent
public InputStream getContent()
- Specified by:
getContentin interfaceHttpClient
-
close
public void close() throws IOException- Specified by:
closein interfaceHttpClient- Throws:
IOException
-
closeClient
public abstract void closeClient() throws IOException- Throws:
IOException
-
-