|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.request.resource.PackageResource
public class PackageResource
Nested Class Summary | |
---|---|
static class |
PackageResource.PackageResourceBlockedException
Exception thrown when the creation of a package resource is not allowed. |
Nested classes/interfaces inherited from interface org.apache.wicket.request.resource.IResource |
---|
IResource.Attributes |
Constructor Summary | |
---|---|
protected |
PackageResource(java.lang.Class<?> scope,
java.lang.String name,
java.util.Locale locale,
java.lang.String style,
java.lang.String variation)
Hidden constructor. |
Method Summary | |
---|---|
static boolean |
exists(java.lang.Class<?> scope,
java.lang.String path,
java.util.Locale locale,
java.lang.String style,
java.lang.String variation)
Gets whether a resource for a given set of criteria exists. |
java.lang.Class<?> |
getScope()
Gets the scoping class, used for class loading and to determine the package. |
java.lang.String |
getStyle()
Gets the style. |
void |
respond(IResource.Attributes attributes)
Renders this resource to response using the provided attributes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PackageResource(java.lang.Class<?> scope, java.lang.String name, java.util.Locale locale, java.lang.String style, java.lang.String variation)
scope
- This argument will be used to get the class loader for loading the package
resource, and to determine what package it is inname
- The relative path to the resourcelocale
- The locale of the resourcestyle
- The style of the resourcevariation
- The component's variation (of the style)Method Detail |
---|
public final java.lang.Class<?> getScope()
public final java.lang.String getStyle()
public void respond(IResource.Attributes attributes)
IResource
respond
in interface IResource
public static boolean exists(java.lang.Class<?> scope, java.lang.String path, java.util.Locale locale, java.lang.String style, java.lang.String variation)
scope
- This argument will be used to get the class loader for loading the package
resource, and to determine what package it is in. Typically this is the class in
which you call this methodpath
- The path to the resourcelocale
- The locale of the resourcestyle
- The style of the resource (see Session
)variation
- The component's variation (of the style)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |