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.InputStreambody()voidclose()java.util.Optional<java.lang.String>contentType()java.util.Collection<java.lang.String>links()java.util.Optional<java.lang.String>location()intstatusCode()
-
-
-
Method Detail
-
statusCode
public int statusCode()
- Specified by:
statusCodein interfaceHttpResponse
-
body
public java.io.InputStream body()
- Specified by:
bodyin interfaceHttpResponse
-
links
public java.util.Collection<java.lang.String> links()
- Specified by:
linksin interfaceHttpResponse
-
contentType
public java.util.Optional<java.lang.String> contentType()
- Specified by:
contentTypein interfaceHttpResponse
-
location
public java.util.Optional<java.lang.String> location()
- Specified by:
locationin interfaceHttpResponse
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-