public class DefaultProxyMappingRegistry extends Object implements ProxyMappingRegistry
ProxyMappingRegistry.| Constructor and Description |
|---|
DefaultProxyMappingRegistry() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllProxyMappings(Collection<ProxyMapping> proxyMappingsCollection)
Adds all the reverse proxy mappings in
proxyMappings to the registry. |
boolean |
addProxyMapping(ProxyMapping proxyMapping)
Adds a reverse proxy mapping to the registry.
|
ProxyMapping |
findProxyMappingByLocalPath(String localPath)
Finds and returns a reverse proxy mapping for the specific
localPath
which represents the path info of the request from the client or caller. |
ProxyMapping |
findProxyMappingByRemoteURI(URI remoteURI)
Finds and returns a reverse proxy mapping for the specific
remoteURI
which represents the remote target URI at the background. |
Collection<ProxyMapping> |
getProxyMappings()
Returns all the reverse proxy mappings in a collection.
|
boolean |
removeProxyMapping(ProxyMapping proxyMapping)
Removes the specified
proxyMapping from the registry if exists. |
public boolean addProxyMapping(ProxyMapping proxyMapping)
addProxyMapping in interface ProxyMappingRegistrypublic boolean addAllProxyMappings(Collection<ProxyMapping> proxyMappingsCollection)
proxyMappings to the registry.addAllProxyMappings in interface ProxyMappingRegistrypublic boolean removeProxyMapping(ProxyMapping proxyMapping)
proxyMapping from the registry if exists.
If not exists, it does nothing.removeProxyMapping in interface ProxyMappingRegistrypublic Collection<ProxyMapping> getProxyMappings()
getProxyMappings in interface ProxyMappingRegistrypublic ProxyMapping findProxyMappingByLocalPath(String localPath)
localPath
which represents the path info of the request from the client or caller.
If there's no reverse proxy mapping for the local request path, then it returns null.findProxyMappingByLocalPath in interface ProxyMappingRegistrypublic ProxyMapping findProxyMappingByRemoteURI(URI remoteURI)
remoteURI
which represents the remote target URI at the background.
If there's no reverse proxy mapping for the remote target URI, then it returns null.findProxyMappingByRemoteURI in interface ProxyMappingRegistryCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.