public class DecoratingUrlReadingCondition extends Object implements DecoratingCondition
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
params |
protected UrlReadingCondition |
urlReadingCondition |
| Constructor and Description |
|---|
DecoratingUrlReadingCondition(UrlReadingCondition urlReadingCondition,
Map<String,String> params) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToUrl(UrlBuilder urlBuilder,
UrlBuildingStrategy urlBuilderStrategy)
Called when constructing the URL as the hosting HTML page is being served.
|
boolean |
canEncodeStateIntoUrl() |
Dimensions |
computeDimensions() |
Map<String,String> |
getParams() |
UrlReadingCondition |
getUrlReadingCondition() |
DecoratingCondition |
invertCondition() |
boolean |
shouldDisplay(QueryParams params)
Determine whether the web fragment should be displayed.
|
boolean |
shouldDisplayImmediate(Map<String,Object> context,
UrlBuildingStrategy urlBuilderStrategy)
Calls the legacy condition's wrapped shouldDisplay(Map context) method.
|
protected final UrlReadingCondition urlReadingCondition
public DecoratingUrlReadingCondition(UrlReadingCondition urlReadingCondition, Map<String,String> params)
public Dimensions computeDimensions()
computeDimensions in interface DecoratingConditionpublic void addToUrl(UrlBuilder urlBuilder, UrlBuildingStrategy urlBuilderStrategy)
DecoratingConditionaddToUrl in interface DecoratingConditionurlBuilder - interface for contributing to the URLpublic boolean canEncodeStateIntoUrl()
canEncodeStateIntoUrl in interface DecoratingConditionpublic boolean shouldDisplayImmediate(Map<String,Object> context, UrlBuildingStrategy urlBuilderStrategy)
DecoratingConditionDecoratingCondition.canEncodeStateIntoUrl() returns true, this should never be called.shouldDisplayImmediate in interface DecoratingConditioncontext - passed by conditionspublic boolean shouldDisplay(QueryParams params)
DecoratingConditionshouldDisplay in interface DecoratingConditionparams - query paramspublic DecoratingCondition invertCondition()
invertCondition in interface DecoratingConditionpublic UrlReadingCondition getUrlReadingCondition()
Copyright © 2017 Atlassian. All rights reserved.