Package org.bouncycastle.est
Class ESTResponse
- java.lang.Object
-
- org.bouncycastle.est.ESTResponse
-
public class ESTResponse extends Object
A basic http response.
-
-
Constructor Summary
Constructors Constructor Description ESTResponse(ESTRequest originalRequest, Source source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Long
getContentLength()
String
getHeader(String key)
org.bouncycastle.est.HttpUtil.Headers
getHeaders()
String
getHttpVersion()
InputStream
getInputStream()
ESTRequest
getOriginalRequest()
Source
getSource()
int
getStatusCode()
String
getStatusMessage()
protected String
readStringIncluding(char until)
protected InputStream
wrapWithCounter(InputStream in, Long absoluteReadLimit)
-
-
-
Constructor Detail
-
ESTResponse
public ESTResponse(ESTRequest originalRequest, Source source) throws IOException
- Throws:
IOException
-
-
Method Detail
-
wrapWithCounter
protected InputStream wrapWithCounter(InputStream in, Long absoluteReadLimit)
-
readStringIncluding
protected String readStringIncluding(char until) throws IOException
- Throws:
IOException
-
getOriginalRequest
public ESTRequest getOriginalRequest()
-
getHeaders
public org.bouncycastle.est.HttpUtil.Headers getHeaders()
-
getHttpVersion
public String getHttpVersion()
-
getStatusCode
public int getStatusCode()
-
getStatusMessage
public String getStatusMessage()
-
getInputStream
public InputStream getInputStream()
-
getSource
public Source getSource()
-
getContentLength
public Long getContentLength()
-
close
public void close() throws IOException
- Throws:
IOException
-
-