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
Sets the http header- Parameters:
header
- The new value
-
setMethod
Sets the http server method- Parameters:
method
- The new value
-
getHeader
Returns the http header- Returns:
- The http header
-
getMethod
Returns the http server method- Returns:
- The http server method
-
getOutputStream
Returns the output stream- Returns:
- The output stream
-
close
Write the message and flushes the streams- Throws:
IOException
-
setTrailer
Sets the trailer- Parameters:
pTrailer
- The new value
-