Class HttpServiceResponse
- java.lang.Object
-
- org.jenkinsci.plugins.codesonar.services.HttpServiceResponse
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class HttpServiceResponse extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description HttpServiceResponse(int statusCode, String reasonPhrase, InputStream contentInputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
InputStream
getContentInputStream()
String
getReasonPhrase()
int
getStatusCode()
String
readContent()
-
-
-
Constructor Detail
-
HttpServiceResponse
public HttpServiceResponse(int statusCode, String reasonPhrase, InputStream contentInputStream)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getStatusCode
public int getStatusCode()
-
getReasonPhrase
public String getReasonPhrase()
-
getContentInputStream
public InputStream getContentInputStream()
-
readContent
public String readContent() throws IOException
- Throws:
IOException
-
-