public class UriHandler
extends java.lang.Object
| Constructor and Description |
|---|
UriHandler() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
addJarFactoryPrefix(java.lang.String theJarFile)
Add the jar factory prefix to define a jar file in the local services folder.
|
static java.lang.String |
addLocalFileUriPrefix(java.lang.String theFilePath)
Add the uri file prefix to define a file in the local system.
|
static java.lang.String |
createJarFactoryUri(java.lang.String ipAddress,
java.lang.String password,
java.lang.String jarFileName)
Create the jar factory uri string from the required values.
|
static java.lang.String |
getFileName(java.lang.String uriString)
Try to parse the uri object to extract the final file name from the path.
|
static java.lang.String[] |
getJarFactoryParsed(java.lang.String theJarFile)
Get an array the stores the different jar file values for retrieving
from a remote server's jar factory.
|
static boolean |
isJarfactoryFile(java.lang.String fileUri)
Return true if the file is defined as a file from the local services folder.
|
static java.lang.String |
removeJarFactoryPrefix(java.lang.String theJarFile)
Remove the jar factory prefix from the jar file description if it exists.
|
static java.lang.String |
removeLocalFileUriPrefix(java.lang.String theFilePath)
Remove the the uri file prefix from the local file description if it exists.
|
public static boolean isJarfactoryFile(java.lang.String fileUri)
fileUri - the file uri path.public static java.lang.String addLocalFileUriPrefix(java.lang.String theFilePath)
theFilePath - the file path for the jar file.public static java.lang.String removeLocalFileUriPrefix(java.lang.String theFilePath)
theFilePath - the file path for the jar file.public static java.lang.String addJarFactoryPrefix(java.lang.String theJarFile)
theJarFile - the file path for the jar file.public static java.lang.String removeJarFactoryPrefix(java.lang.String theJarFile)
theJarFile - the file path for the jar file.public static java.lang.String createJarFactoryUri(java.lang.String ipAddress,
java.lang.String password,
java.lang.String jarFileName)
ipAddress - the ip address of the server the factory runs on.password - the server password.jarFileName - the name of the jar file.public static java.lang.String[] getJarFactoryParsed(java.lang.String theJarFile)
theJarFile - the original jar uri.public static java.lang.String getFileName(java.lang.String uriString)
uriString - the full path as a string-based description.