org.ow2.petals.binding.soap.listener.incoming.jetty
Class PetalsErrorHandler
java.lang.Object
org.mortbay.component.AbstractLifeCycle
org.mortbay.jetty.handler.AbstractHandler
org.mortbay.jetty.handler.ErrorHandler
org.ow2.petals.binding.soap.listener.incoming.jetty.PetalsErrorHandler
- All Implemented Interfaces:
- org.mortbay.component.LifeCycle, org.mortbay.jetty.Handler
public class PetalsErrorHandler
- extends org.mortbay.jetty.handler.ErrorHandler
A hanlder to replace the Jetty one in order to provide better message...
- Since:
- 3.1
- Author:
- Christophe HAMERLING - eBM WebSourcing
| Fields inherited from class org.mortbay.jetty.handler.AbstractHandler |
_string |
| Fields inherited from interface org.mortbay.jetty.Handler |
ALL, DEFAULT, ERROR, FORWARD, INCLUDE, REQUEST |
|
Constructor Summary |
PetalsErrorHandler(boolean showStacks,
org.ow2.petals.probes.CounterProbe probeUnknownServlet,
org.ow2.petals.probes.GaugeProbe<Integer,Integer> probeHttpServerThreadPoolAllocatedThreads,
org.ow2.petals.probes.GaugeProbe<Integer,Integer> probeHttpServerThreadPoolIdleThreads,
org.ow2.petals.probes.GaugeProbe<Integer,Integer> probeHttpServerThreadPoolQueuedRequests,
Logger logger)
|
| Methods inherited from class org.mortbay.jetty.handler.ErrorHandler |
handle, handleErrorPage, isShowStacks, setShowStacks, writeErrorPage, writeErrorPageHead, writeErrorPageStacks |
| Methods inherited from class org.mortbay.jetty.handler.AbstractHandler |
destroy, doStart, doStop, getServer, setServer, toString |
| Methods inherited from class org.mortbay.component.AbstractLifeCycle |
isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, start, stop |
| Methods inherited from interface org.mortbay.component.LifeCycle |
isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, start, stop |
PetalsErrorHandler
public PetalsErrorHandler(boolean showStacks,
org.ow2.petals.probes.CounterProbe probeUnknownServlet,
org.ow2.petals.probes.GaugeProbe<Integer,Integer> probeHttpServerThreadPoolAllocatedThreads,
org.ow2.petals.probes.GaugeProbe<Integer,Integer> probeHttpServerThreadPoolIdleThreads,
org.ow2.petals.probes.GaugeProbe<Integer,Integer> probeHttpServerThreadPoolQueuedRequests,
Logger logger)
- Parameters:
showStacks - True if stack traces are shown in the error pagesprobeUnknownServlet - The probe counting unknown URLs received by the Jetty server.probeHttpServerThreadPoolAllocatedThreads - The probe counting allocated threads in the thread pool of the
HTTP server.probeHttpServerThreadPoolIdleThreads - The probe counting idle threads in the thread pool of the HTTP
server.probeHttpServerThreadPoolQueuedRequests - The probe counting requests in the queue of the thread pool of
the HTTP server.logger - The component logger
writeErrorPageMessage
protected void writeErrorPageMessage(javax.servlet.http.HttpServletRequest request,
Writer writer,
int code,
String message,
String uri)
throws IOException
- Overrides:
writeErrorPageMessage in class org.mortbay.jetty.handler.ErrorHandler
- Throws:
IOException
writeErrorPageBody
protected void writeErrorPageBody(javax.servlet.http.HttpServletRequest request,
Writer writer,
int code,
String message,
boolean showStacks)
throws IOException
- Overrides:
writeErrorPageBody in class org.mortbay.jetty.handler.ErrorHandler
- Throws:
IOException
Copyright © 2005-2012 Petals Link (EBM Websourcing). All Rights Reserved.