Tree PREV CLASS NEXT CLASS SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD com.ibm.portal.resourceaggregator.combiner
Interface ResourceURIVariations
public interface ResourceURIVariationsA ResourceURIVariations object represents a selection of resources.
The resource aggregation framework will choose just one URI out of the set of resources. The purpose of the Resource object is to provide different types of the same resource and let the framework chose which one of the resources fits best within the current rendering context. For instance one could provide multiple resources like this:From above set the system would choose the debug resource when debug mode is turned on, or it would choose the RTL version when accessing with a RTL language such as Arabic.
- Default Resource, e.g. res:/contextroot/path/file.min.css
- Debug Resource, e.g. res:/contextroot/path/file.css
- RTL Resource, e.g. res:/contextroot/path/fileRTL.min.css
- RTL Debug Resource, e.g. res:/contextroot/path/fileRTL.css
- Since:
- 8.5.0.3
Method Summary ResourceURIVariations add(java.lang.String uri)
Adds a Resource object to the resource variation and initializes it with the given parameters.ResourceURIVariations add(java.lang.String uri, java.util.Locale locale)
Adds a Resource object to the resource variation and initializes it with the given parameters.ResourceURIVariations add(java.lang.String uri, java.util.Locale locale, Resource.URIType... uritypes)
Adds a Resource object to the resource variation and initializes it with the given parameters.ResourceURIVariations add(java.lang.String uri, Resource.URIType... uritypes)
Adds a Resource object to the resource variation and initializes it with the given parameters.ResourceURIVariations add(java.lang.String uri, java.lang.String deviceClass)
Adds a Resource object to the resource variation and initializes it with the given parameters.ResourceURIVariations add(java.lang.String uri, java.lang.String deviceClass, java.util.Locale locale)
Adds a Resource object to the resource variation and initializes it with the given parameters.ResourceURIVariations add(java.lang.String uri, java.lang.String deviceClass, java.util.Locale locale, Resource.URIType... uritypes)
Adds a Resource object to the resource variation and initializes it with the given parameters.ResourceURIVariations add(java.lang.String uri, java.lang.String deviceClass, Resource.URIType... uritypes)
Adds a Resource object to the resource variation and initializes it with the given parameters.
Method Detail add
ResourceURIVariations add(java.lang.String uri)
- Adds a Resource object to the resource variation and initializes it with the given parameters. Calling this function multiple times allows to add multiple resources into this resource variation.
- Parameters:
- uri - the uri of the resource. Must not be null.
- Returns:
- returns this object again in order to support chaining calls such as .add().add()
add
ResourceURIVariations add(java.lang.String uri, Resource.URIType... uritypes)
- Adds a Resource object to the resource variation and initializes it with the given parameters. Calling this function multiple times allows to add multiple resources into this resource variation.
- Parameters:
- uri - the uri of the resource. Must not be null.
- uritypes - the type(s) of the resource
- Returns:
- returns this object again in order to support chaining calls such as .add().add()
add
ResourceURIVariations add(java.lang.String uri, java.lang.String deviceClass)
- Adds a Resource object to the resource variation and initializes it with the given parameters. Calling this function multiple times allows to add multiple resources into this resource variation.
- Parameters:
- uri - the uri of the resource. Must not be null.
- deviceClass - the device class or device class equation. Must not be null.
- Returns:
- returns this object again in order to support chaining calls such as .add().add()
add
ResourceURIVariations add(java.lang.String uri, java.lang.String deviceClass, Resource.URIType... uritypes)
- Adds a Resource object to the resource variation and initializes it with the given parameters. Calling this function multiple times allows to add multiple resources into this resource variation.
- Parameters:
- uri - the uri of the resource. Must not be null.
- deviceClass - the device class or device class equation. Must not be null.
- uritypes - the type(s) of the resource
- Returns:
- returns this object again in order to support chaining calls such as .add().add()
add
ResourceURIVariations add(java.lang.String uri, java.lang.String deviceClass, java.util.Locale locale)
- Adds a Resource object to the resource variation and initializes it with the given parameters. Calling this function multiple times allows to add multiple resources into this resource variation.
- Parameters:
- uri - the uri of the resource. Must not be null.
- deviceClass - the device class or device class equation. Must not be null.
- locale - the locale this resource is bound to. Must not be null.
- Returns:
- returns this object again in order to support chaining calls such as .add().add()
add
ResourceURIVariations add(java.lang.String uri, java.lang.String deviceClass, java.util.Locale locale, Resource.URIType... uritypes)
- Adds a Resource object to the resource variation and initializes it with the given parameters. Calling this function multiple times allows to add multiple resources into this resource variation.
- Parameters:
- uri - the uri of the resource. Must not be null.
- deviceClass - the device class or device class equation. Must not be null.
- uritypes - the type(s) of the resource
- locale - the locale this resource is bound to. Must not be null.
- Returns:
- returns this object again in order to support chaining calls such as .add().add()
add
ResourceURIVariations add(java.lang.String uri, java.util.Locale locale, Resource.URIType... uritypes)
- Adds a Resource object to the resource variation and initializes it with the given parameters. Calling this function multiple times allows to add multiple resources into this resource variation.
- Parameters:
- uri - the uri of the resource. Must not be null.
- uritypes - the type(s) of the resource
- locale - the locale this resource is bound to. Must not be null.
- Returns:
- returns this object again in order to support chaining calls such as .add().add()
add
ResourceURIVariations add(java.lang.String uri, java.util.Locale locale)
- Adds a Resource object to the resource variation and initializes it with the given parameters. Calling this function multiple times allows to add multiple resources into this resource variation.
- Parameters:
- uri - the uri of the resource. Must not be null.
- locale - the locale this resource is bound to. Must not be null.
- Returns:
- returns this object again in order to support chaining calls such as .add().add()
Tree PREV CLASS NEXT CLASS SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD