/** This could be improved at some day in the future * to also include a stack trace of the exceptions * @param message the error message to be sent * @return the HttpResponseImpl that this error belongs to */ protected static HttpResponseImpl createError(String message){ return createError(message, null); }
/** * This could be improved at some day in the future * to also include a stack trace of the exceptions * * @param message the error message to be sent * @return the HttpResponseImpl that this error belongs to */ @SuppressWarnings("unused") protected static HttpResponseImpl createError(final String message) { return createError(message, null); }
/** * This could be improved at some day in the future * to also include a stack trace of the exceptions * * @param message the error message to be sent * @return the HttpResponseImpl that this error belongs to */ @SuppressWarnings("unused") protected static HttpResponseImpl createError(final String message) { return createError(message, null); }
/** * takes care of processing requests and creating the webadmin ejb's * * @param in the input stream from the browser * @param out the output stream to the browser */ private void processRequest(URI socketURI, InputStream in, OutputStream out) { HttpResponseImpl response = null; try { response = process(socketURI, in); } catch (Throwable t) { response = HttpResponseImpl.createError(t.getMessage(), t); } finally { try { response.writeMessage(out); } catch (Throwable t2) { log.error("Could not write response", t2); } } }
response = HttpResponseImpl.createError(t.getMessage(), t); } finally { try {
} catch (final Throwable t) { log.error(t.getMessage(), t); response = HttpResponseImpl.createError(t.getMessage(), t); return true; } finally {