Top Description Inners Fields Constructors Methods
org.eclipse.jetty.server.handler

public abstract Class ReHandlingErrorHandler

extends ErrorHandler
Class Inheritance
Known Direct Subclasses
org.eclipse.jetty.server.handler.ReHandlingErrorHandler.ByHttpStatus
Imports
java.io.IOException, java.util.Map, java.util.concurrent.ConcurrentHashMap, org.eclipse.jetty.http.HttpURI, org.eclipse.jetty.server.Handler, .Request, .Response, org.eclipse.jetty.util.Callback, .ExceptionUtil, org.slf4j.Logger, .LoggerFactory

An ErrorHandler that can re-handle a request at an error page location.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ReHandlingErrorHandler.ByHttpStatus

An ReHandlingErrorHandler that uses a map of error codes to select a page.

Field Summary

Modifier and TypeField and Description
private final Handler
private static final Logger
Inherited from org.eclipse.jetty.server.handler.ErrorHandler:
_cacheControl_showMessageInTitle_showStacksERROR_CACHE_CONTROLERROR_CONTEXTERROR_EXCEPTIONERROR_MESSAGEERROR_METHODSERROR_STATUS

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected void
public Invocable.InvocationType
protected abstract String
getReHandlePathInContext(Request request, int code, Throwable cause)

Inherited from org.eclipse.jetty.server.handler.ErrorHandler:
badMessageErrorerrorPageForMethodgenerateAcceptableResponsegetCacheControlgetErrorHandlerhandleisShowMessageInTitleisShowStackssetCacheControlsetShowMessageInTitlesetShowStackswritewriteErrorHtmlwriteErrorHtmlBodywriteErrorHtmlHeadwriteErrorHtmlMessagewriteErrorHtmlMetawriteErrorHtmlStackswriteErrorJsonwriteErrorPlain

Field Detail

_handlerback to summary
private final Handler _handler
LOGback to summary
private static final Logger LOG

Hides org.eclipse.jetty.server.handler.ErrorHandler.LOG.

Constructor Detail

ReHandlingErrorHandlerback to summary
protected ReHandlingErrorHandler(Handler handler)

Method Detail

generateResponseback to summary
protected void generateResponse(Request request, Response response, int code, String message, Throwable cause, Callback callback) throws IOException

Overrides org.eclipse.jetty.server.handler.ErrorHandler.generateResponse.

Annotations
@Override
getInvocationTypeback to summary
public Invocable.InvocationType getInvocationType()

Overrides default org.eclipse.jetty.server.Request.Handler.getInvocationType.

Returns:Invocable.InvocationType

Doc from org.eclipse.jetty.util.thread.Invocable.getInvocationType.

The InvocationType of this object

Annotations
@Override
getReHandlePathInContextback to summary
protected abstract String getReHandlePathInContext(Request request, int code, Throwable cause)
org.eclipse.jetty.server.handler back to summary

public Class ReHandlingErrorHandler.ByHttpStatus

extends ReHandlingErrorHandler
Class Inheritance

An ReHandlingErrorHandler that uses a map of error codes to select a page.

Field Summary

Modifier and TypeField and Description
private final Map<Integer, String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
get(int code)

protected String
public String
put(int code, String pathInContext)

public String
remove(int code)

Inherited from org.eclipse.jetty.server.handler.ReHandlingErrorHandler:
generateResponsegetInvocationType

Field Detail

_statusMapback to summary
private final Map<Integer, String> _statusMap

Constructor Detail

ByHttpStatusback to summary
public ByHttpStatus(Handler handler)

Method Detail

getback to summary
public String get(int code)
getReHandlePathInContextback to summary
protected String getReHandlePathInContext(Request request, int code, Throwable cause)

Implements abstract org.eclipse.jetty.server.handler.ReHandlingErrorHandler.getReHandlePathInContext.

Annotations
@Override
putback to summary
public String put(int code, String pathInContext)
removeback to summary
public String remove(int code)