Class MessageWriter
java.lang.Object
org.sblim.cimclient.internal.http.MessageWriter
Class MessageWriter is responsible for creating http messages
-
Constructor Summary
ConstructorsConstructorDescriptionMessageWriter
(OutputStream pStream, boolean pPersistent, boolean pChunked) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Write the message and flushes the streamsReturns the http headerReturns the http server methodReturns the output streamvoid
reset()
Resets the streamvoid
setHeader
(HttpHeader header) Sets the http headervoid
setMethod
(HttpServerMethod method) Sets the http server methodvoid
setTrailer
(HttpHeader pTrailer) Sets the trailer
-
Constructor Details
-
MessageWriter
Ctor.- Parameters:
pStream
-pPersistent
-pChunked
-
-
-
Method Details
-
reset
public void reset()Resets the stream -
setHeader
-
setMethod
Sets the http server method- Parameters:
method
- The new value
-
getHeader
-
getMethod
-
getOutputStream
-
close
Write the message and flushes the streams- Throws:
IOException
-
setTrailer
-