public class InputStreamWithHeaders extends Object
| Constructor | Description |
|---|---|
InputStreamWithHeaders(InputStream inputStream,
javax.ws.rs.core.MultivaluedMap<String,Object> headers) |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getContentEncoding() |
Get the Content-Encoding of the returned InputStream
|
String |
getContentType() |
Get the Content-Type of the returned InputStream
|
InputStream |
getDecompressedInputStream() |
Returns an InputStream, decompressing the raw InputStream if it had been
gzip compressed.
|
javax.ws.rs.core.MultivaluedMap<String,Object> |
getHeaders() |
Get the headers returned from Onshape
|
String |
getHeaderString(String header) |
Get the value of a particular header
|
InputStream |
getInputStream() |
Returns the InputStream as received, which may or may not be gzip
compressed.
|
public InputStreamWithHeaders(InputStream inputStream, javax.ws.rs.core.MultivaluedMap<String,Object> headers)
public InputStream getInputStream()
public InputStream getDecompressedInputStream() throws IOException
IOException - On error during decompressionpublic javax.ws.rs.core.MultivaluedMap<String,Object> getHeaders()
public String getHeaderString(String header)
header - The name of the header of interestpublic String getContentType()
public String getContentEncoding()
Copyright © 2021. All rights reserved.