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.
AbstractEntity.BasicConfigurationSupport, AbstractEntity.BasicEnricherSupport, AbstractEntity.BasicGroupSupport, AbstractEntity.BasicPolicySupport, AbstractEntity.BasicSensorSupport, AbstractEntity.BasicSubscriptionSupport
Entity.AdjunctSupport<T extends EntityAdjunct>, Entity.EnricherSupport, Entity.GroupSupport, Entity.PolicySupport, Entity.SensorSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
EntityInternal.EnricherSupportInternal, EntityInternal.EntitySubscriptionSupportInternal, EntityInternal.FeedSupport, EntityInternal.GroupSupportInternal, EntityInternal.PolicySupportInternal, EntityInternal.SensorSupportInternal
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal
APPLICATION_ID, CATALOG_ID, CHILD_ADDED, CHILD_REMOVED, CONFIG_KEY_ADDED, CONFIG_KEY_REMOVED, DEFAULT_DISPLAY_NAME, EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, ENTITY_ID, GROUP_ADDED, GROUP_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, 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, addFeed, addLocations, addLocationsWithoutPublishing, clearLocations, clearParent, config, configure, configure, destroy, enrichers, equals, feeds, firstLocation, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfig, getCreationTime, getDisplayName, getEffector, getEntityType, getExecutionContext, getIconUrl, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getProxy, getProxyIfAvailable, getRebindSupport, groups, hashCode, invalidateReferences, invoke, invoke, invoke, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStopped, policies, relations, removeChild, removeLocations, requestPersist, resetProxy, sensors, setConfigEvenIfOwned, setConfigEvenIfOwned, setDisplayName, setParent, setProxy, subscriptions, toMetadataRecord, toString
addSearchPath, getCatalogItemId, getCatalogItemIdSearchPath, getId, rebind, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId, tags
getFirst, setMembers, setMembers
addChild, addChild, addMember, addMemberChild, addMemberChild, getCurrentSize, getMembers, hasMember, removeMember
addFeed, clearParent, enrichers, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getCreationTime, getDisplayName, getEntityType, getIconUrl, getId, getLocations, getParent, groups, invoke, policies, relations, removeChild, sensors, setDisplayName, setParent
getCatalogItemId, getCatalogItemIdSearchPath, subscriptions, tags
config, getConfig
addSearchPath, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId
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