Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
410173e8
Commit
410173e8
authored
14 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
MINOR: Don't hide dss client url behind data_store.
SVN: 16532
parent
6e9226a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/shared/api/v1/DataStoreApiUrlUtilities.java
+2
-14
2 additions, 14 deletions
...s/dss/generic/shared/api/v1/DataStoreApiUrlUtilities.java
with
2 additions
and
14 deletions
datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/shared/api/v1/DataStoreApiUrlUtilities.java
+
2
−
14
View file @
410173e8
...
...
@@ -16,7 +16,6 @@
package
ch.systemsx.cisd.openbis.dss.generic.shared.api.v1
;
import
static
ch
.
systemsx
.
cisd
.
openbis
.
generic
.
shared
.
GenericSharedConstants
.
DATA_STORE_SERVER_APPLICATION_PATH
;
import
static
ch
.
systemsx
.
cisd
.
openbis
.
generic
.
shared
.
GenericSharedConstants
.
DATA_STORE_SERVER_WEB_APPLICATION_NAME
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataStore
;
...
...
@@ -47,30 +46,19 @@ public class DataStoreApiUrlUtilities
public
static
String
getDataStoreUrlFromServerUrl
(
String
dataStoreServerUrl
)
{
String
datastoreUrl
=
dataStoreServerUrl
;
// The url objained form a DataStore object is the *download* url. Convert this to the
// datastore URL
if
(
datastoreUrl
.
endsWith
(
DATA_STORE_SERVER_WEB_APPLICATION_NAME
))
{
datastoreUrl
=
datastoreUrl
.
substring
(
0
,
datastoreUrl
.
length
()
-
DATA_STORE_SERVER_WEB_APPLICATION_NAME
.
length
());
}
if
(
datastoreUrl
.
endsWith
(
"/"
))
{
datastoreUrl
=
datastoreUrl
.
substring
(
0
,
datastoreUrl
.
length
()
-
1
);
}
if
(!
datastoreUrl
.
endsWith
(
DATA_STORE_SERVER_APPLICATION_PATH
))
{
datastoreUrl
=
datastoreUrl
+
"/"
+
DATA_STORE_SERVER_APPLICATION_PATH
;
}
return
datastoreUrl
;
}
public
static
String
getUrlForRpcService
(
String
serviceUrlSuffix
)
{
return
"/"
+
DATA_STORE_SERVER_APPLICATION_
PATH
+
serviceUrlSuffix
;
return
"/"
+
DATA_STORE_SERVER_
WEB_
APPLICATION_
NAME
+
serviceUrlSuffix
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment