/** * Finish AJP response. */ protected void finish() throws IOException { if (!response.isCommitted()) { // Validate and write response headers try { prepareResponse(); } catch (IOException e) { // Set error flag error = true; } } if (finished) return; finished = true; // Add the end message if (outputBuffer.position() + endMessageArray.length > outputBuffer.capacity()) { flush(); } outputBuffer.put(endMessageArray); flush(); }
/** * Finish AJP response. */ @Override protected void finish() throws IOException { if (!response.isCommitted()) { // Validate and write response headers try { prepareResponse(); } catch (IOException e) { // Set error flag error = true; } } if (finished) return; finished = true; // Add the end message if (outputBuffer.position() + endMessageArray.length > outputBuffer.capacity()) { flush(false); } outputBuffer.put(endMessageArray); flush(false); }
prepareResponse(); } catch (IOException e) {
prepareResponse(); } catch (IOException e) {
prepareResponse(); } catch (IOException e) {
prepareResponse(); } catch (IOException e) {
prepareResponse(); } catch (IOException e) {
prepareResponse(); } catch (IOException e) {
prepareResponse(); } catch (IOException e) { prepareResponse(); } catch (IOException e) {
prepareResponse(); } catch (IOException e) { prepareResponse(); } catch (IOException e) {
prepareResponse(); } catch (IOException e) { prepareResponse(); } catch (IOException e) {