Class MutableResponse
java.lang.Object
is.galia.http.MutableResponse
- All Implemented Interfaces:
Response
,Closeable
,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
No-op.byte[]
getBody()
void
setBody
(byte[] body) void
setHeaders
(Headers headers) void
void
setTransport
(Transport transport) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface is.galia.http.Response
getBodyAsStream, getBodyAsString
-
Constructor Details
-
MutableResponse
public MutableResponse()
-
-
Method Details
-
close
public void close()No-op.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getBody
-
getHeaders
- Specified by:
getHeaders
in interfaceResponse
-
getStatus
-
getTransport
- Specified by:
getTransport
in interfaceResponse
-
setBody
public void setBody(byte[] body) -
setHeaders
-
setStatus
-
setTransport
-