public class UrlMappingImpl extends AbstractGroupImpl implements UrlMapping
Configuration requires a domain and some mechanism for finding members. The easiest way to find members is using a target whose children will be tracked, but alternative membership policies can also be used.
BrooklynObject.TagSupport
Configurable.ConfigurationSupport
EntityInternal.FeedSupport
BrooklynObjectInternal.ConfigurationSupportInternal
CHILD_ADDED, CHILD_REMOVED, EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, LOCATION_ADDED, LOCATION_REMOVED, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED
DISCARD, DOMAIN, LABEL, PATH, REWRITES, SSL_CONFIG, TARGET_ADDRESSES, TARGET_PARENT
FIRST, FIRST_MEMBER, GROUP_MEMBERS, MEMBER_DELEGATE_CHILDREN, MEMBER_DELEGATE_NAME_FORMAT, RUNNING_QUORUM_CHECK, UP_QUORUM_CHECK
GROUP_SIZE, MEMBER_ADDED, MEMBER_REMOVED
Constructor and Description |
---|
UrlMappingImpl() |
Modifier and Type | Method and Description |
---|---|
UrlMapping |
addRewrite(java.lang.String from,
java.lang.String to)
adds a rewrite rule, must be called at config time.
|
UrlMapping |
addRewrite(UrlRewriteRule rule)
adds a rewrite rule, must be called at config time.
|
void |
discard() |
java.lang.String |
getDomain() |
java.lang.String |
getPath() |
ProxySslConfig |
getSsl() |
Entity |
getTarget() |
java.util.Collection<java.lang.String> |
getTargetAddresses() |
java.lang.String |
getUniqueLabel() |
void |
onManagementStarting()
Invoked by
EntityManagementSupport when this entity is becoming managed (i.e. |
void |
recompute() |
void |
setTarget(Entity target) |
addMember, addMemberChild, addMemberChild, addMemberInternal, getCurrentSize, getMembers, hasMember, init, removeMember, setManagementContext, setMembers, setMembers
addChild, addChild, addEnricher, addEnricher, addFeed, addGroup, addLocations, addPolicy, addPolicy, addTag, clearLocations, clearParent, config, configure, configure, configure, configure, configure, containsTag, destroy, emit, emitInternal, equals, feeds, firstLocation, getAllAttributes, getAllConfig, getAllConfigBag, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getConfig, getConfig, getConfig, getConfig, getConfigMap, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEffector, getEnrichers, getEntityType, getExecutionContext, getFeedSupport, getGroups, getIconUrl, getLocalConfigBag, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getTags, hashCode, invalidateReferences, invoke, invoke, invoke, modifyAttribute, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStopped, refreshInheritedConfig, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeGroup, removeLocations, removePolicy, removeTag, requestPersist, resetProxy, setAttribute, setAttribute, setAttributeWithoutPublishing, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setDisplayName, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toMetadataRecord, toString, unsubscribe, unsubscribe
getCatalogItemId, getId, getTagSupport, rebind, setCatalogItemId, tags
setMembers, setMembers
addChild, addChild, addMember, addMemberChild, addMemberChild, getCurrentSize, getMembers, hasMember, removeMember
addEnricher, addEnricher, addFeed, addGroup, addPolicy, addPolicy, addTag, clearParent, containsTag, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfig, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, getTags, invoke, removeChild, removeEnricher, removeGroup, removePolicy, removeTag, setParent
getCatalogItemId, getTagSupport, tags
config, setConfig
setCatalogItemId
public java.lang.String getUniqueLabel()
getUniqueLabel
in interface UrlMapping
public UrlMapping addRewrite(java.lang.String from, java.lang.String to)
UrlRewriteRule
for more info.addRewrite
in interface UrlMapping
public UrlMapping addRewrite(UrlRewriteRule rule)
UrlRewriteRule
for more info.addRewrite
in interface UrlMapping
public java.lang.String getDomain()
getDomain
in interface UrlMapping
public java.lang.String getPath()
getPath
in interface UrlMapping
public Entity getTarget()
getTarget
in interface UrlMapping
public void setTarget(Entity target)
setTarget
in interface UrlMapping
public void onManagementStarting()
AbstractEntity
EntityManagementSupport
when this entity is becoming managed (i.e. it has a working
management context, but before the entity is visible to other entities), including during a rebind.onManagementStarting
in class AbstractEntity
public java.util.Collection<java.lang.String> getTargetAddresses()
getTargetAddresses
in interface UrlMapping
public ProxySslConfig getSsl()
getSsl
in interface UrlMapping
public void recompute()
recompute
in interface UrlMapping
public void discard()
discard
in interface UrlMapping