Package com.netflix.zuul.filters.common
Class SurgicalDebugFilter
java.lang.Object
com.netflix.zuul.filters.BaseFilter<I,O>
com.netflix.zuul.filters.BaseSyncFilter<HttpRequestMessage,HttpRequestMessage>
com.netflix.zuul.filters.http.HttpInboundSyncFilter
com.netflix.zuul.filters.common.SurgicalDebugFilter
- All Implemented Interfaces:
ShouldFilter<HttpRequestMessage>
,SyncZuulFilter<HttpRequestMessage,
,HttpRequestMessage> ZuulFilter<HttpRequestMessage,
HttpRequestMessage>
This is an abstract filter that will route requests that match the patternMatches() method to a debug Eureka "VIP" or
host specified by zuul.debug.vip or zuul.debug.host.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(HttpRequestMessage request) int
filterOrder() must also be defined for a filter.protected boolean
patternMatches
(HttpRequestMessage request) Returning true by the pattern or logic implemented in this method will route the request to the specified origin Override this method when using this filter to add your own pattern matching logic.boolean
shouldFilter
(HttpRequestMessage request) a "true" return from this method means that the apply() method should be invokedMethods inherited from class com.netflix.zuul.filters.http.HttpInboundSyncFilter
filterType
Methods inherited from class com.netflix.zuul.filters.BaseSyncFilter
applyAsync, getSyncType
Methods inherited from class com.netflix.zuul.filters.BaseFilter
decrementConcurrency, disablePropertyName, filterName, getDefaultOutput, incrementConcurrency, isDisabled, maxConcurrencyPropertyName, needsBodyBuffered, overrideStopFilterProcessing, processContentChunk, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.netflix.zuul.filters.ZuulFilter
category, decrementConcurrency, filterName, getDefaultOutput, incrementConcurrency, isDisabled, needsBodyBuffered, overrideStopFilterProcessing, processContentChunk
-
Constructor Details
-
SurgicalDebugFilter
public SurgicalDebugFilter()
-
-
Method Details
-
patternMatches
Returning true by the pattern or logic implemented in this method will route the request to the specified origin Override this method when using this filter to add your own pattern matching logic.- Returns:
- true if this request should be routed to the debug origin
-
filterOrder
public int filterOrder()Description copied from interface:ZuulFilter
filterOrder() must also be defined for a filter. Filters may have the same filterOrder if precedence is not important for a filter. filterOrders do not need to be sequential.- Returns:
- the int order of a filter
-
shouldFilter
Description copied from interface:ShouldFilter
a "true" return from this method means that the apply() method should be invoked- Returns:
- true if the apply() method should be invoked. false will not invoke the apply() method
-
apply
-