Package com.apicatalog.jsonld.http
Class DefaultHttpClient.HttpResponseImpl
- java.lang.Object
-
- com.apicatalog.jsonld.http.DefaultHttpClient.HttpResponseImpl
-
- All Implemented Interfaces:
HttpResponse,Closeable,AutoCloseable
- Enclosing class:
- DefaultHttpClient
public static class DefaultHttpClient.HttpResponseImpl extends Object implements HttpResponse
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreambody()voidclose()Optional<String>contentType()Collection<String>links()Optional<String>location()intstatusCode()
-
-
-
Method Detail
-
statusCode
public int statusCode()
- Specified by:
statusCodein interfaceHttpResponse
-
body
public InputStream body()
- Specified by:
bodyin interfaceHttpResponse
-
links
public Collection<String> links()
- Specified by:
linksin interfaceHttpResponse
-
contentType
public Optional<String> contentType()
- Specified by:
contentTypein interfaceHttpResponse
-
location
public Optional<String> location()
- Specified by:
locationin interfaceHttpResponse
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-