|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.ksb.messaging.serviceexporters.ServiceExportManagerImpl.ServiceNameFinder
protected static class ServiceExportManagerImpl.ServiceNameFinder
Looks up service QNameS based on URL StringS. API is Map-like, but non-service specific portions of the URL are trimmed prior to accessing its internal Map.
| Field Summary | |
|---|---|
private ConcurrentMap<String,QName> |
servicePathToQName
A service path to service QName map |
| Constructor Summary | |
|---|---|
protected |
ServiceExportManagerImpl.ServiceNameFinder()
|
| Method Summary | |
|---|---|
QName |
lookup(String serviceUrl)
gets the QName for the service |
void |
register(ServiceDefinition serviceDefinition)
adds a mapping from the service specific portion of the service URL to the service name. |
void |
remove(URL endpointUrl)
removes the mapping (if one exists) for the service specific portion of this url. |
private String |
trimServiceUrlBase(String url)
This method trims the endpoint url base ( Config.getEndPointUrl()) base off of the full service URL, e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private ConcurrentMap<String,QName> servicePathToQName
| Constructor Detail |
|---|
protected ServiceExportManagerImpl.ServiceNameFinder()
| Method Detail |
|---|
private String trimServiceUrlBase(String url)
Config.getEndPointUrl()) base off of the full service URL, e.g.
"http://kuali.edu/kr-dev/remoting/SomeService" -> "SomeService". It makes an effort to do so even if the host
and ip don't match what is in Config.getEndPointUrl() by stripping host/port info.
If the service URL contains the configured subpath for RESTful service, additional trimming is done to
isolate the service name from the rest of the url.
url -
public void register(ServiceDefinition serviceDefinition)
serviceUrl - serviceName - public void remove(URL endpointUrl)
serviceUrl - public QName lookup(String serviceUrl)
serviceUrl -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||