public class RestURL extends Object
Constructor and Description |
---|
RestURL() |
Modifier and Type | Method and Description |
---|---|
static String |
encodeURL(String nodeKey)
Encode URL.
|
static String |
get(com.thinkaurelius.titan.core.TitanTransaction graph,
com.thinkaurelius.titan.core.TitanVertex node)
Gets the.
|
static String |
get(com.thinkaurelius.titan.core.TitanTransaction graph,
com.thinkaurelius.titan.core.TitanVertex node,
String apiVersion)
Gets the.
|
static String |
get(com.thinkaurelius.titan.core.TitanTransaction graph,
com.thinkaurelius.titan.core.TitanVertex node,
String apiVersion,
Boolean isLegacyVserverUEB)
Gets the.
|
static String |
get(com.thinkaurelius.titan.core.TitanTransaction graph,
com.thinkaurelius.titan.core.TitanVertex node,
String apiVersion,
Boolean isLegacyVserverUEB,
Boolean isCallbackurl)
Gets the.
|
static LinkedHashMap<String,Object> |
getKeyHashes(String nodeURI)
Gets the key hashes.
|
static LinkedHashMap<String,Object> |
getKeyHashes(String nodeURI,
String apiVersion)
Gets the key hashes.
|
static LinkedHashMap<String,Object> |
getKeyHashes(com.thinkaurelius.titan.core.TitanTransaction graph,
com.thinkaurelius.titan.core.TitanVertex node)
Gets the key hashes.
|
static LinkedHashMap<String,Object> |
getKeyHashes(com.thinkaurelius.titan.core.TitanTransaction graph,
com.thinkaurelius.titan.core.TitanVertex node,
String apiVersion)
Gets the key hashes.
|
static String |
getSearchUrl(com.thinkaurelius.titan.core.TitanTransaction graph,
com.thinkaurelius.titan.core.TitanVertex node,
String apiVersion)
Gets the search url.
|
static void |
main(String[] args)
The main method.
|
static AAIResource |
parseUri(HashMap<String,String> allKeys,
LinkedHashMap<String,LinkedHashMap<String,Object>> keyList,
String uri,
AAIExtensionMap aaiExtMap)
Parses the uri.
|
public static String get(com.thinkaurelius.titan.core.TitanTransaction graph, com.thinkaurelius.titan.core.TitanVertex node, String apiVersion, Boolean isLegacyVserverUEB, Boolean isCallbackurl) throws AAIException, UnsupportedEncodingException
graph
- the graphnode
- the nodeapiVersion
- the api versionisLegacyVserverUEB
- the is legacy vserver UEBisCallbackurl
- the is callbackurlAAIException
- the AAI exceptionUnsupportedEncodingException
- the unsupported encoding exceptionpublic static String getSearchUrl(com.thinkaurelius.titan.core.TitanTransaction graph, com.thinkaurelius.titan.core.TitanVertex node, String apiVersion) throws AAIException, UnsupportedEncodingException
graph
- the graphnode
- the nodeapiVersion
- the api versionAAIException
- the AAI exceptionUnsupportedEncodingException
- the unsupported encoding exceptionpublic static String get(com.thinkaurelius.titan.core.TitanTransaction graph, com.thinkaurelius.titan.core.TitanVertex node) throws AAIException, UnsupportedEncodingException
graph
- the graphnode
- the nodeAAIException
- the AAI exceptionUnsupportedEncodingException
- the unsupported encoding exceptionpublic static String get(com.thinkaurelius.titan.core.TitanTransaction graph, com.thinkaurelius.titan.core.TitanVertex node, String apiVersion) throws AAIException, UnsupportedEncodingException
graph
- the graphnode
- the nodeapiVersion
- the api versionAAIException
- the AAI exceptionUnsupportedEncodingException
- the unsupported encoding exceptionpublic static String get(com.thinkaurelius.titan.core.TitanTransaction graph, com.thinkaurelius.titan.core.TitanVertex node, String apiVersion, Boolean isLegacyVserverUEB) throws AAIException, UnsupportedEncodingException
graph
- the graphnode
- the nodeapiVersion
- the api versionisLegacyVserverUEB
- the is legacy vserver UEBAAIException
- the AAI exceptionUnsupportedEncodingException
- the unsupported encoding exceptionpublic static LinkedHashMap<String,Object> getKeyHashes(com.thinkaurelius.titan.core.TitanTransaction graph, com.thinkaurelius.titan.core.TitanVertex node) throws AAIException, UnsupportedEncodingException
graph
- the graphnode
- the nodeAAIException
- the AAI exceptionUnsupportedEncodingException
- the unsupported encoding exceptionpublic static final String encodeURL(String nodeKey) throws UnsupportedEncodingException
nodeKey
- the node keyUnsupportedEncodingException
- the unsupported encoding exceptionpublic static LinkedHashMap<String,Object> getKeyHashes(com.thinkaurelius.titan.core.TitanTransaction graph, com.thinkaurelius.titan.core.TitanVertex node, String apiVersion) throws AAIException, UnsupportedEncodingException
graph
- the graphnode
- the nodeapiVersion
- the api versionAAIException
- the AAI exceptionUnsupportedEncodingException
- the unsupported encoding exceptionpublic static LinkedHashMap<String,Object> getKeyHashes(String nodeURI) throws AAIException, UnsupportedEncodingException
nodeURI
- the node URIAAIException
- the AAI exceptionUnsupportedEncodingException
- the unsupported encoding exceptionpublic static LinkedHashMap<String,Object> getKeyHashes(String nodeURI, String apiVersion) throws AAIException, UnsupportedEncodingException
nodeURI
- the node URIapiVersion
- the api versionAAIException
- the AAI exceptionUnsupportedEncodingException
- the unsupported encoding exceptionpublic static AAIResource parseUri(HashMap<String,String> allKeys, LinkedHashMap<String,LinkedHashMap<String,Object>> keyList, String uri, AAIExtensionMap aaiExtMap) throws UnsupportedEncodingException, AAIException
allKeys
- the all keyskeyList
- the key listuri
- the uriaaiExtMap
- the aai ext mapUnsupportedEncodingException
- the unsupported encoding exceptionAAIException
- the AAI exceptionpublic static void main(String[] args) throws UnsupportedEncodingException, AAIException
args
- the argumentsUnsupportedEncodingException
- the unsupported encoding exceptionAAIException
- the AAI exceptionCopyright © 2017. All Rights Reserved.