Package no.hasmac.jsonld.http
Class DefaultHttpClient.HttpResponseImpl
- java.lang.Object
-
- no.hasmac.jsonld.http.DefaultHttpClient.HttpResponseImpl
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,HttpResponse
- Enclosing class:
- DefaultHttpClient
public static class DefaultHttpClient.HttpResponseImpl extends java.lang.Object implements HttpResponse
-
-
Field Summary
Fields Modifier and Type Field Description private java.net.http.HttpResponse<java.io.InputStream>
response
-
Constructor Summary
Constructors Constructor Description HttpResponseImpl(java.net.http.HttpResponse<java.io.InputStream> response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
body()
void
close()
java.util.Optional<java.lang.String>
contentType()
java.util.Collection<java.lang.String>
links()
java.util.Optional<java.lang.String>
location()
int
statusCode()
-
-
-
Method Detail
-
statusCode
public int statusCode()
- Specified by:
statusCode
in interfaceHttpResponse
-
body
public java.io.InputStream body()
- Specified by:
body
in interfaceHttpResponse
-
links
public java.util.Collection<java.lang.String> links()
- Specified by:
links
in interfaceHttpResponse
-
contentType
public java.util.Optional<java.lang.String> contentType()
- Specified by:
contentType
in interfaceHttpResponse
-
location
public java.util.Optional<java.lang.String> location()
- Specified by:
location
in interfaceHttpResponse
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-