public interface ProxyMappingRegistry
All the mapping information should be retrieved from this registry during a reverse proxy processing.
Modifier and Type | Method and Description |
---|---|
boolean |
addAllProxyMappings(Collection<ProxyMapping> proxyMappings)
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. |
boolean addProxyMapping(ProxyMapping proxyMapping)
proxyMapping
- boolean addAllProxyMappings(Collection<ProxyMapping> proxyMappings)
proxyMappings
to the registry.proxyMappings
- boolean removeProxyMapping(ProxyMapping proxyMapping)
proxyMapping
from the registry if exists.
If not exists, it does nothing.proxyMapping
- Collection<ProxyMapping> getProxyMappings()
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.localPath
- 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.remoteURI
- Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.