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 TypeMethodDescriptionvoidclose()Write the message and flushes the streamsReturns the http headerReturns the http server methodReturns the output streamvoidreset()Resets the streamvoidsetHeader(HttpHeader header) Sets the http headervoidsetMethod(HttpServerMethod method) Sets the http server methodvoidsetTrailer(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
-