|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.app.Utils
public class Utils
Utility class containing various Registry APP (Atom Publishing Protocol) implementation related functionality.
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static String |
calculateEntityTag(Resource r)
Calculate the entity tag based on the resource, this is equivalent to the RegistryAdapter::calculateEntityTag function which calculate entity tag based on the feed |
static String |
encodeRegistryPath(String path)
Method to encode a registry path. |
static EmbeddedRegistryService |
getEmbeddedRegistryService()
Method to obtain the embedded registry service instance. |
static org.apache.abdera.model.Link |
getLinkWithRel(org.apache.abdera.model.Entry entry,
String rel)
|
static UserRegistry |
getRegistry(javax.servlet.http.HttpServletRequest request)
Method to obtain the registry from the session. |
static String |
getUUID(String uri)
Generates a UUID for the given URI. |
static void |
setEmbeddedRegistry(EmbeddedRegistryService registryService)
Method to set the embedded registry service instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static UserRegistry getRegistry(javax.servlet.http.HttpServletRequest request) throws RegistryException
request
- the HTTP Servlet Request.
RegistryException
- if the operation failed.public static void setEmbeddedRegistry(EmbeddedRegistryService registryService)
registryService
- the embedded registry service instance.public static EmbeddedRegistryService getEmbeddedRegistryService() throws RegistryException
RegistryException
- if the embedded registry service is not available.public static String getUUID(String uri)
uri
- the URI.
public static String encodeRegistryPath(String path)
path
- the registry path.
public static String calculateEntityTag(Resource r)
r
- Resource
public static org.apache.abdera.model.Link getLinkWithRel(org.apache.abdera.model.Entry entry, String rel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |