public final class SnapUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HEADER_SNAP_CONTEXT_PATH |
static java.lang.String |
HEADER_SNAP_HOST |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
boundContextPath(java.lang.String hostContextPath,
java.lang.String snapContextPath)
Concatenate the host and snap context paths, unless host context path ends with a path separator.
null String s are converted to the empty string "" . |
static java.lang.String |
determineSnapContextPath(javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getSnapContextPath(org.osgi.framework.Bundle bundle) |
static java.util.Set<SnapHostDefinition> |
getSnapHostHeader(org.eclipse.virgo.util.osgi.manifest.BundleManifest manifest) |
static boolean |
hasSnapHostHeader(org.eclipse.virgo.util.osgi.manifest.BundleManifest manifest) |
public static final java.lang.String HEADER_SNAP_HOST
public static final java.lang.String HEADER_SNAP_CONTEXT_PATH
public static java.lang.String determineSnapContextPath(javax.servlet.http.HttpServletRequest request)
public static boolean hasSnapHostHeader(org.eclipse.virgo.util.osgi.manifest.BundleManifest manifest)
public static java.util.Set<SnapHostDefinition> getSnapHostHeader(org.eclipse.virgo.util.osgi.manifest.BundleManifest manifest)
public static java.lang.String getSnapContextPath(org.osgi.framework.Bundle bundle)
public static java.lang.String boundContextPath(java.lang.String hostContextPath, java.lang.String snapContextPath)
null
String
s are converted to the empty string ""
.hostContextPath
- the host context pathsnapContextPath
- the snap context path