Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- ALLOWED_CONTEXT_PATHS_PARAMETER - Static variable in class org.apache.nifi.web.util.RequestUriBuilder
- ALLOWED_CONTEXT_PATHS_PARAMETER_NAME - Static variable in class org.apache.nifi.web.filter.SanitizeContextPathFilter
- allowedContextPaths - Variable in class org.apache.nifi.web.filter.SanitizeContextPathFilter
- anyNotBlank(String...) - Static method in class org.apache.nifi.web.util.WebUtils
-
Returns true if any of the provided arguments are not blank.
B
- build() - Method in class org.apache.nifi.web.util.RequestUriBuilder
-
Build URI using configured properties
C
- COMMA_SEPARATOR - Static variable in class org.apache.nifi.web.util.RequestUriBuilder
- contextPath - Variable in class org.apache.nifi.web.util.RequestUriBuilder
- createClient(ClientConfig) - Static method in class org.apache.nifi.web.util.WebUtils
-
Creates a client for non-secure requests.
- createClient(ClientConfig, SSLContext) - Static method in class org.apache.nifi.web.util.WebUtils
-
Creates a client for secure requests.
- createClientHelper(ClientConfig, SSLContext) - Static method in class org.apache.nifi.web.util.WebUtils
-
A helper method for creating clients.
D
- destroy() - Method in class org.apache.nifi.web.filter.SanitizeContextPathFilter
- determineContextPath(HttpServletRequest) - Static method in class org.apache.nifi.web.util.WebUtils
-
Determines the context path if populated in
X-ProxyContextPath
,X-ForwardContext
, orX-Forwarded-Prefix
headers. - determineProxiedHost(HttpServletRequest) - Static method in class org.apache.nifi.web.util.WebUtils
-
Determines the host based on considering proxy related headers first and falling back to the host of the servlet request.
- determineProxiedHost(String) - Static method in class org.apache.nifi.web.util.WebUtils
-
Determines the host from the given header.
- determineProxiedPort(HttpServletRequest) - Static method in class org.apache.nifi.web.util.WebUtils
-
Determines the port based on first considering proxy related headers and falling back to the port of the servlet request.
- determineProxiedPort(String, String) - Static method in class org.apache.nifi.web.util.WebUtils
-
Determines the port based on the header values.
- determineProxiedScheme(HttpServletRequest) - Static method in class org.apache.nifi.web.util.WebUtils
-
Determines the scheme based on considering proxy related headers first and then falling back to the scheme of the servlet request.
- doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class org.apache.nifi.web.filter.SanitizeContextPathFilter
E
F
- FORWARDED_CONTEXT_HTTP_HEADER - Static variable in class org.apache.nifi.web.util.WebUtils
- FORWARDED_HOST_HTTP_HEADER - Static variable in class org.apache.nifi.web.util.WebUtils
- FORWARDED_PORT_HTTP_HEADER - Static variable in class org.apache.nifi.web.util.WebUtils
- FORWARDED_PREFIX_HTTP_HEADER - Static variable in class org.apache.nifi.web.util.WebUtils
- FORWARDED_PROTO_HTTP_HEADER - Static variable in class org.apache.nifi.web.util.WebUtils
- fragment - Variable in class org.apache.nifi.web.util.RequestUriBuilder
- fragment(String) - Method in class org.apache.nifi.web.util.RequestUriBuilder
-
Set Fragment appended on build
- fromHttpServletRequest(HttpServletRequest) - Static method in class org.apache.nifi.web.util.RequestUriBuilder
-
Return Builder from HTTP Servlet Request using Scheme, Host, Port, and Context Path reading from headers
- fromHttpServletRequest(HttpServletRequest, List<String>) - Static method in class org.apache.nifi.web.util.RequestUriBuilder
-
Return Builder from HTTP Servlet Request using Scheme, Host, Port, and Context Path reading from headers
G
- getAllowedContextPaths() - Method in class org.apache.nifi.web.filter.SanitizeContextPathFilter
-
Getter for allowed context paths.
- getAllowedContextPathsConfigured(HttpServletRequest) - Static method in class org.apache.nifi.web.util.RequestUriBuilder
- getContext(Class<?>) - Method in class org.apache.nifi.web.util.ObjectMapperResolver
- getFirstHeaderValue(HttpServletRequest, String...) - Static method in class org.apache.nifi.web.util.WebUtils
-
Returns the value for the first key discovered when inspecting the current request.
- getServerPort(HttpServletRequest) - Static method in class org.apache.nifi.web.util.WebUtils
-
Get Server Port based on Proxy Headers with fallback to HttpServletRequest.getServerPort()
H
- host - Variable in class org.apache.nifi.web.util.RequestUriBuilder
- HOST_HEADER - Static variable in class org.apache.nifi.web.util.WebUtils
I
- init(FilterConfig) - Method in class org.apache.nifi.web.filter.SanitizeContextPathFilter
- injectContextPathAttribute(ServletRequest) - Method in class org.apache.nifi.web.filter.SanitizeContextPathFilter
-
Determines, sanitizes, and injects the
contextPath
attribute into therequest
.
L
M
- mapper - Variable in class org.apache.nifi.web.util.ObjectMapperResolver
N
- normalizeContextPath(String) - Static method in class org.apache.nifi.web.util.WebUtils
-
Returns a normalized context path (leading /, no trailing /).
O
- ObjectMapperResolver - Class in org.apache.nifi.web.util
- ObjectMapperResolver() - Constructor for class org.apache.nifi.web.util.ObjectMapperResolver
- org.apache.nifi.web.filter - package org.apache.nifi.web.filter
- org.apache.nifi.web.util - package org.apache.nifi.web.util
P
- parsedAllowedContextPaths - Variable in class org.apache.nifi.web.filter.SanitizeContextPathFilter
- path - Variable in class org.apache.nifi.web.util.RequestUriBuilder
- path(String) - Method in class org.apache.nifi.web.util.RequestUriBuilder
-
Set Path appended to Context Path on build
- port - Variable in class org.apache.nifi.web.util.RequestUriBuilder
- PROXY_CONTEXT_PATH_HTTP_HEADER - Static variable in class org.apache.nifi.web.util.WebUtils
- PROXY_HOST_HTTP_HEADER - Static variable in class org.apache.nifi.web.util.WebUtils
- PROXY_PORT_HTTP_HEADER - Static variable in class org.apache.nifi.web.util.WebUtils
- PROXY_SCHEME_HTTP_HEADER - Static variable in class org.apache.nifi.web.util.WebUtils
R
- RequestUriBuilder - Class in org.apache.nifi.web.util
-
Request URI Builder encapsulates URI construction handling supported HTTP proxy request headers
- RequestUriBuilder(String, String, int, String) - Constructor for class org.apache.nifi.web.util.RequestUriBuilder
S
- sanitizeContextPath(ServletRequest, List<String>, String) - Static method in class org.apache.nifi.web.util.WebUtils
-
Returns a "safe" context path value from the request headers to use in a proxy environment.
- SanitizeContextPathFilter - Class in org.apache.nifi.web.filter
-
This filter intercepts a request and populates the
contextPath
attribute on the request with a sanitized value (originally) retrieved fromnifi.properties
. - SanitizeContextPathFilter() - Constructor for class org.apache.nifi.web.filter.SanitizeContextPathFilter
- scheme - Variable in class org.apache.nifi.web.util.RequestUriBuilder
V
- verifyContextPath(List<String>, String) - Static method in class org.apache.nifi.web.util.WebUtils
-
Throws an exception if the provided context path is not in the allowed context paths list.
W
- WebUtils - Class in org.apache.nifi.web.util
-
Common utilities related to web development.
- WebUtils() - Constructor for class org.apache.nifi.web.util.WebUtils
All Classes and Interfaces|All Packages|Constant Field Values