< prev index next >

src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpExchange.java

Print this page

        

@@ -171,16 +171,16 @@
      * If the content-length response header has not already been set then
      * this is set to the appropriate value depending on the response length parameter.
      * <p>
      * This method must be called prior to calling {@link #getResponseBody()}.
      * @param rCode the response code to send
-     * @param responseLength if > 0, specifies a fixed response body length
-     *        and that exact number of bytes must be written
+     * @param responseLength if {@literal > 0}, specifies a fixed response
+     *        body length and that exact number of bytes must be written
      *        to the stream acquired from getResponseBody(), or else
      *        if equal to 0, then chunked encoding is used,
      *        and an arbitrary number of bytes may be written.
-     *        if <= -1, then no response body length is specified and
+     *        if {@literal <= -1}, then no response body length is specified and
      *        no response body may be written.
      * @see HttpExchange#getResponseBody()
      */
     public abstract void sendResponseHeaders (int rCode, long responseLength) throws IOException ;
 
< prev index next >