-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0790e56
commit 7e9ecb8
Showing
10 changed files
with
256 additions
and
45 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
.../portal/portal-impl/src/main/java/com/enonic/xp/portal/impl/VirtualHostContextHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.enonic.xp.portal.impl; | ||
|
||
import com.enonic.xp.context.ContextAccessor; | ||
|
||
public final class VirtualHostContextHelper | ||
{ | ||
public static final String MEDIA_SERVICE_BASE_URL = "mediaService.baseUrl"; | ||
|
||
public static final String MEDIA_SERVICE_SCOPE = "mediaService.scope"; | ||
|
||
private VirtualHostContextHelper() | ||
{ | ||
} | ||
|
||
public static String getProperty( final String property ) | ||
{ | ||
return (String) ContextAccessor.current().getAttribute( property ); | ||
} | ||
|
||
public static String getMediaServiceBaseUrl() | ||
{ | ||
return getProperty( MEDIA_SERVICE_BASE_URL ); | ||
} | ||
|
||
public static String getMediaServiceScope() | ||
{ | ||
return getProperty( MEDIA_SERVICE_SCOPE ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
modules/portal/portal-impl/src/main/java/com/enonic/xp/portal/impl/url/UrlContextHelper.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.