public class DataspaceURL
extends java.lang.Object
Title: Dataspace Framework
Description: Dataspace underlying provider implementation
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROTO_HTTP |
static java.lang.String |
PROTO_HTTPS |
static java.lang.String |
PROTO_TLP |
static java.lang.String |
remote_protocol_type |
static java.lang.String |
S_FILE |
static java.lang.String |
S_LOCAL |
static java.lang.String |
S_MEM |
static java.lang.String |
S_REMOTE |
static java.lang.String |
S_RUNTIME |
static java.lang.String |
S_URL_HTTP_PREFIX |
static java.lang.String |
S_URL_HTTPS_PREFIX |
static java.lang.String |
S_URL_INTERNAL |
static java.lang.String |
S_URL_PREFIX |
static java.lang.String |
url_connection_type |
Constructor and Description |
---|
DataspaceURL() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isFileBasedDatabaseType(java.lang.String type)
Returns true if type represents an in-process connection to a file backed
database.
|
static boolean |
isInProcessDatabaseType(com.streamscape.ds.persist.BaseStoreProperties props) |
static boolean |
isInProcessDatabaseType(java.lang.String type)
Returns true if type represents an in-process connection to database.
|
static com.streamscape.ds.persist.BaseStoreProperties |
parseURL(java.lang.String url,
boolean hasPrefix,
boolean noPath)
Parses the url into components that are returned in a properties object.
|
static java.util.List |
validateUrls(java.lang.String urls) |
public static final java.lang.String url_connection_type
public static final java.lang.String S_MEM
public static final java.lang.String S_FILE
public static final java.lang.String S_LOCAL
public static final java.lang.String S_RUNTIME
public static final java.lang.String S_REMOTE
public static final java.lang.String S_URL_PREFIX
public static final java.lang.String S_URL_HTTP_PREFIX
public static final java.lang.String S_URL_HTTPS_PREFIX
public static final java.lang.String S_URL_INTERNAL
public static final java.lang.String remote_protocol_type
public static final java.lang.String PROTO_TLP
public static final java.lang.String PROTO_HTTP
public static final java.lang.String PROTO_HTTPS
public static boolean isFileBasedDatabaseType(java.lang.String type)
public static boolean isInProcessDatabaseType(java.lang.String type)
public static boolean isInProcessDatabaseType(com.streamscape.ds.persist.BaseStoreProperties props)
public static com.streamscape.ds.persist.BaseStoreProperties parseURL(java.lang.String url, boolean hasPrefix, boolean noPath) throws SQLException
The following components are isolated:
connection_type: a static string that indicate the protocol. If the url does not begin with a valid protocol, null is returned by this method instead of the properties object.
host: name of host in networked modes in lowercase
port: port number in networked mode, or 0 if not present
path: path of the resource on server in networked modes, minimum (slash) with path elements appended apart from servlet path which is (slash) plus the name of the servlet
database: database name. For memory, networked modes, this is returned in lowercase, for file: and res: databases the original case of characters is preserved. Returns empty string if name is not present in the url.
for each protocol if port number is not in the url
Additional connection properties specified as key/value pairs.
url
- StringhasPrefix
- indicates URL prefix is presentnoPath
- indicates empty path and verbatim use of path elements as
databaseSQLException
public static java.util.List validateUrls(java.lang.String urls) throws SQLException
SQLException
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.