Package org.bouncycastle.est
Class ESTResponse
- java.lang.Object
-
- org.bouncycastle.est.ESTResponse
-
public class ESTResponse extends java.lang.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()
java.lang.Long
getContentLength()
java.lang.String
getHeader(java.lang.String key)
org.bouncycastle.est.HttpUtil.Headers
getHeaders()
java.lang.String
getHttpVersion()
java.io.InputStream
getInputStream()
ESTRequest
getOriginalRequest()
Source
getSource()
int
getStatusCode()
java.lang.String
getStatusMessage()
protected java.lang.String
readStringIncluding(char until)
protected java.io.InputStream
wrapWithCounter(java.io.InputStream in, java.lang.Long absoluteReadLimit)
-
-
-
Constructor Detail
-
ESTResponse
public ESTResponse(ESTRequest originalRequest, Source source) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getHeader
public java.lang.String getHeader(java.lang.String key)
-
wrapWithCounter
protected java.io.InputStream wrapWithCounter(java.io.InputStream in, java.lang.Long absoluteReadLimit)
-
readStringIncluding
protected java.lang.String readStringIncluding(char until) throws java.io.IOException
- Throws:
java.io.IOException
-
getOriginalRequest
public ESTRequest getOriginalRequest()
-
getHeaders
public org.bouncycastle.est.HttpUtil.Headers getHeaders()
-
getHttpVersion
public java.lang.String getHttpVersion()
-
getStatusCode
public int getStatusCode()
-
getStatusMessage
public java.lang.String getStatusMessage()
-
getInputStream
public java.io.InputStream getInputStream()
-
getSource
public Source getSource()
-
getContentLength
public java.lang.Long getContentLength()
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
-