Class PathInterceptor
- java.lang.Object
-
- io.vertx.rxjava3.httpproxy.interceptors.PathInterceptor
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<PathInterceptor>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description PathInterceptor(PathInterceptor delegate)
PathInterceptor(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProxyInterceptor
addPrefix(String prefix)
Remove a prefix to the URI.static ProxyInterceptor
changePath(java.util.function.Function<String,String> pattern)
Apply a callback to change the request URI when the proxy receives it.boolean
equals(Object o)
PathInterceptor
getDelegate()
int
hashCode()
static PathInterceptor
newInstance(PathInterceptor arg)
static ProxyInterceptor
removePrefix(String prefix)
Add a prefix to the URI.String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<PathInterceptor> __TYPE_ARG
-
-
Constructor Detail
-
PathInterceptor
public PathInterceptor(PathInterceptor delegate)
-
PathInterceptor
public PathInterceptor(Object delegate)
-
-
Method Detail
-
getDelegate
public PathInterceptor getDelegate()
-
changePath
public static ProxyInterceptor changePath(java.util.function.Function<String,String> pattern)
Apply a callback to change the request URI when the proxy receives it.- Parameters:
pattern
- the operation that applied to the path- Returns:
- the created interceptor
-
removePrefix
public static ProxyInterceptor removePrefix(String prefix)
Add a prefix to the URI.- Parameters:
prefix
- the prefix that need to be added- Returns:
- the created interceptor
-
addPrefix
public static ProxyInterceptor addPrefix(String prefix)
Remove a prefix to the URI. Do nothing if it doesn't exist.- Parameters:
prefix
- the prefix that need to be removed- Returns:
- the created interceptor
-
newInstance
public static PathInterceptor newInstance(PathInterceptor arg)
-
-