Package org.apache.cxf.transport.http
Class DestinationRegistryImpl
- java.lang.Object
-
- org.apache.cxf.transport.http.DestinationRegistryImpl
-
- All Implemented Interfaces:
DestinationRegistry
,ServletConfigAware
public class DestinationRegistryImpl extends Object implements DestinationRegistry, ServletConfigAware
-
-
Constructor Summary
Constructors Constructor Description DestinationRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDestination(AbstractHTTPDestination destination)
AbstractHTTPDestination
checkRestfulRequest(String address)
AbstractHTTPDestination
getDestinationForPath(String path)
AbstractHTTPDestination
getDestinationForPath(String path, boolean tryDecoding)
Collection<AbstractHTTPDestination>
getDestinations()
Set<String>
getDestinationsPaths()
org.apache.cxf.transport.AbstractDestination[]
getSortedDestinations()
String
getTrimmedPath(String path)
Remove the transport protocol from the path and make it starts with /void
onServletConfigAvailable(javax.servlet.ServletConfig config)
void
removeDestination(String path)
-
-
-
Method Detail
-
addDestination
public void addDestination(AbstractHTTPDestination destination)
- Specified by:
addDestination
in interfaceDestinationRegistry
-
removeDestination
public void removeDestination(String path)
- Specified by:
removeDestination
in interfaceDestinationRegistry
-
getDestinationForPath
public AbstractHTTPDestination getDestinationForPath(String path)
- Specified by:
getDestinationForPath
in interfaceDestinationRegistry
-
getDestinationForPath
public AbstractHTTPDestination getDestinationForPath(String path, boolean tryDecoding)
- Specified by:
getDestinationForPath
in interfaceDestinationRegistry
-
checkRestfulRequest
public AbstractHTTPDestination checkRestfulRequest(String address)
- Specified by:
checkRestfulRequest
in interfaceDestinationRegistry
-
getDestinations
public Collection<AbstractHTTPDestination> getDestinations()
- Specified by:
getDestinations
in interfaceDestinationRegistry
-
getSortedDestinations
public org.apache.cxf.transport.AbstractDestination[] getSortedDestinations()
- Specified by:
getSortedDestinations
in interfaceDestinationRegistry
-
getDestinationsPaths
public Set<String> getDestinationsPaths()
- Specified by:
getDestinationsPaths
in interfaceDestinationRegistry
-
getTrimmedPath
public String getTrimmedPath(String path)
Remove the transport protocol from the path and make it starts with /- Parameters:
path
-- Returns:
- trimmed path
-
onServletConfigAvailable
public void onServletConfigAvailable(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
- Specified by:
onServletConfigAvailable
in interfaceServletConfigAware
- Throws:
javax.servlet.ServletException
-
-