/** * This is used to write the headers that where given to the * <code>Response</code>. Any further attempts to give headers * to the <code>Response</code> will be futile as only the headers * that were given at the time of the first commit will be used * in the message header. * <p> * This also performs some final checks on the headers submitted. * This is done to determine the optimal performance of the * output. If no specific Connection header has been specified * this will set the connection so that HTTP/1.0 closes by default. * * @exception IOException thrown if there was a problem writing */ public void commit() throws IOException { response.commit(); }
/** * This is used to write the headers that where given to the * <code>Response</code>. Any further attempts to give headers * to the <code>Response</code> will be futile as only the headers * that were given at the time of the first commit will be used * in the message header. * <p> * This also performs some final checks on the headers submitted. * This is done to determine the optimal performance of the * output. If no specific Connection header has been specified * this will set the connection so that HTTP/1.0 closes by default. * * @exception IOException thrown if there was a problem writing */ public void commit() throws IOException { response.commit(); }
/** * This is used to write the headers that where given to the * <code>Response</code>. Any further attempts to give headers * to the <code>Response</code> will be futile as only the headers * that were given at the time of the first commit will be used * in the message header. * <p> * This also performs some final checks on the headers submitted. * This is done to determine the optimal performance of the * output. If no specific Connection header has been specified * this will set the connection so that HTTP/1.0 closes by default. * * @exception IOException thrown if there was a problem writing */ public void commit() throws IOException { response.commit(); }
@Override public void complete() { try { // Commit the response this.response.commit(); } catch (Exception ex) { getLogger().log(Level.WARNING, "Unable to commit the response", ex); } }
/** * This is used to compose the HTTP header and send it over the * transport to the client. Once done the response is committed * and no more headers can be set, also the semantics of the * response have been committed and the producer is created. */ private void commit() throws IOException { try { response.commit(); } catch(Exception cause) { throw new TransferException("Unable to commit", cause); } }
/** * This is used to compose the HTTP header and send it over the * transport to the client. Once done the response is committed * and no more headers can be set, also the semantics of the * response have been committed and the encoder is created. */ private void commit() throws IOException { try { response.commit(); } catch(Exception cause) { throw new ResponseException("Unable to commit", cause); } }
/** * This is used to compose the HTTP header and send it over the * transport to the client. Once done the response is committed * and no more headers can be set, also the semantics of the * response have been committed and the encoder is created. */ private void commit() throws IOException { try { response.commit(); } catch(Exception cause) { throw new ResponseException("Unable to commit", cause); } }