@Component public class ProtocolRegistry extends Object
| Constructor and Description |
|---|
ProtocolRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
registerHost(String url)
memorize the host supports XML only
|
boolean |
supportV1Json(String url)
indicate if the host support V1 Json
|
boolean |
supportXml(String url)
indicate if the host supports xml
|
void |
unregisterHost(String url)
unregister a host (mainly usefull for testing purpose).
|
public void registerHost(String url)
url - url of the hostpublic void unregisterHost(String url)
url - url of the hostpublic boolean supportV1Json(String url)
url - of the hostpublic boolean supportXml(String url)
url - of the hostCopyright © 2016 Orange. All rights reserved.