public class ServletDetectionFilter
extends com.netflix.zuul.ZuulFilter
DispatcherServlet or
ZuulServlet. The purpose was to detect this up-front at the very beginning of
Zuul filter processing and rely on this information in all filters. RequestContext is
used such that the information is accessible to classes which do not have a request
reference.| Constructor and Description |
|---|
ServletDetectionFilter() |
| Modifier and Type | Method and Description |
|---|---|
int |
filterOrder()
Must run before other filters that rely on the difference between DispatcherServlet
and ZuulServlet.
|
String |
filterType() |
Object |
run() |
boolean |
shouldFilter() |
public String filterType()
filterType in class com.netflix.zuul.ZuulFilterpublic int filterOrder()
filterOrder in class com.netflix.zuul.ZuulFilterpublic boolean shouldFilter()
public Object run()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.