public class DefaultLocation extends Object implements Location
appType:appName:subAppId;some/parameter
.LOCATION_TYPE_APP, LOCATION_TYPE_SHELL_APP, NOWHERE
Constructor and Description |
---|
DefaultLocation() |
DefaultLocation(String fragment) |
DefaultLocation(String appType,
String appName) |
DefaultLocation(String appType,
String appName,
String subAppId) |
DefaultLocation(String appType,
String appName,
String subAppId,
String parameter) |
Modifier and Type | Method and Description |
---|---|
static String |
decodeFragment(String fragment)
Decodes a fragment using the character encoding from the
AggregationState . |
static String |
decodeFragment(String fragment,
String encoding)
Decodes
application/x-www-form-urlencoded fragment string using a specified encoding scheme if necessary. |
boolean |
equals(Object o) |
static String |
extractAppName(String fragment) |
static String |
extractAppType(String fragment) |
static String |
extractParameter(String fragment) |
static String |
extractSubAppId(String fragment) |
String |
getAppName() |
String |
getAppType() |
String |
getParameter() |
String |
getSubAppId() |
int |
hashCode() |
void |
setAppName(String appName) |
void |
setAppType(String appType) |
void |
setParameter(String parameter) |
void |
setSubAppId(String subAppId) |
String |
toString() |
public DefaultLocation()
public DefaultLocation(String appType, String appName, String subAppId, String parameter)
public DefaultLocation(String fragment)
IllegalArgumentException
- if the passed fragment is null or empty.public String getAppType()
getAppType
in interface Location
public String getAppName()
getAppName
in interface Location
public String getSubAppId()
getSubAppId
in interface Location
public String getParameter()
getParameter
in interface Location
public void setParameter(String parameter)
public void setSubAppId(String subAppId)
public void setAppType(String appType)
public void setAppName(String appName)
public static String decodeFragment(String fragment, String encoding)
application/x-www-form-urlencoded
fragment string using a specified encoding scheme if necessary.Copyright © 2016 Magnolia International Ltd.. All rights reserved.