Package org.distributeme.core.util
Class BaseRegistryUtil
java.lang.Object
org.distributeme.core.util.BaseRegistryUtil
- Direct Known Subclasses:
EventServiceRegistryUtil,RegistryUtil
Base class for registry utilities.
- Version:
- $Id: $Id
- Author:
- lrosenberg
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringURLEncodes a string.protected static StringgetRegistryBaseUrl(String app) Returns the base url of the specified registry application.protected static StringgetRegistryBaseUrl(String app, String host, int port, String protocol, String context) getRegistryBaseUrl.static RegistryLocationstatic byte[]getUrlContent(String url) Reads the server reply to an url and returns it as string.protected static byte[]getUrlContent(String url, boolean silently) getUrlContent.
-
Field Details
-
registryLocation
Location config object.
-
-
Constructor Details
-
BaseRegistryUtil
public BaseRegistryUtil()
-
-
Method Details
-
getRegistryBaseUrl
Returns the base url of the specified registry application. -
getRegistryBaseUrl
protected static String getRegistryBaseUrl(String app, String host, int port, String protocol, String context) getRegistryBaseUrl.
-
getUrlContent
Reads the server reply to an url and returns it as string.- Parameters:
url- as string.- Returns:
- an array of byte.
-
getUrlContent
getUrlContent.
- Parameters:
url- aStringobject.silently- a boolean.- Returns:
- an array of byte.
-
encode
URLEncodes a string.- Parameters:
urlPart- string to encode.- Returns:
- a
Stringobject.
-
getRegistryLocation
-