|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.request.resource.ResourceReference org.apache.wicket.request.resource.PackageResourceReference
public class PackageResourceReference
This is a ResourceReference that knows how to find and serve resources located in the Java package (i.e. next to the class files).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.ResourceReference |
---|
ResourceReference.Key, ResourceReference.UrlAttributes |
Constructor Summary | |
---|---|
PackageResourceReference(Class<?> scope,
String name)
Construct. |
|
PackageResourceReference(Class<?> scope,
String name,
Locale locale,
String style,
String variation)
Construct. |
|
PackageResourceReference(ResourceReference.Key key)
Construct. |
|
PackageResourceReference(String name)
Construct. |
Method Summary | |
---|---|
protected String |
getMinifiedName()
|
String |
getName()
Returns the name of the file: minified or full version. |
PackageResource |
getResource()
Returns the resource. |
ResourceReference.UrlAttributes |
getUrlAttributes()
Allows to specify which locale, style and variation values will the generated URL for this resource reference have. |
protected void |
removeCompressFlagIfUnnecessary(PackageResource resource)
Method allowing to remove the compress flag if the resource has been detected as a minified one (i.e. |
Methods inherited from class org.apache.wicket.request.resource.ResourceReference |
---|
canBeRegistered, equals, getDependencies, getExtension, getKey, getLocale, getScope, getStyle, getVariation, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PackageResourceReference(ResourceReference.Key key)
key
- public PackageResourceReference(Class<?> scope, String name, Locale locale, String style, String variation)
scope
- name
- locale
- style
- variation
- public PackageResourceReference(Class<?> scope, String name)
scope
- name
- public PackageResourceReference(String name)
name
- Method Detail |
---|
public PackageResource getResource()
ResourceReference
getResource
in class ResourceReference
ResourceReference.getResource()
protected final void removeCompressFlagIfUnnecessary(PackageResource resource)
getResource
if they want to rely on default minification detection handling
see WICKET-5250 for further explanation
resource
- resource to checkprotected String getMinifiedName()
public String getName()
getName
in class ResourceReference
ResourceReference.getName()
public ResourceReference.UrlAttributes getUrlAttributes()
ResourceReference
getUrlAttributes
in class ResourceReference
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |