org.apache.wicket.request.resource
Class CssPackageResource

java.lang.Object
  extended by org.apache.wicket.request.resource.AbstractResource
      extended by org.apache.wicket.request.resource.PackageResource
          extended by org.apache.wicket.request.resource.CssPackageResource
All Implemented Interfaces:
Serializable, IResource

public class CssPackageResource
extends PackageResource

Package resource for css files. It strips comments and whitespace from css.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.PackageResource
PackageResource.PackageResourceBlockedException
 
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.AbstractResource
AbstractResource.ResourceResponse, AbstractResource.WriteCallback
 
Nested classes/interfaces inherited from interface org.apache.wicket.request.resource.IResource
IResource.Attributes
 
Constructor Summary
CssPackageResource(Class<?> scope, String name, Locale locale, String style, String variation)
          Construct.
 
Method Summary
protected  byte[] processResponse(IResource.Attributes attributes, byte[] bytes)
          Gives a chance to modify the resource going to be written in the response
 
Methods inherited from class org.apache.wicket.request.resource.PackageResource
equals, exists, getResourceStream, getScope, getStyle, hashCode, newResourceResponse, toString
 
Methods inherited from class org.apache.wicket.request.resource.AbstractResource
configureCache, respond
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CssPackageResource

public CssPackageResource(Class<?> scope,
                          String name,
                          Locale locale,
                          String style,
                          String variation)
Construct.

Parameters:
scope -
name -
locale -
style -
variation -
Method Detail

processResponse

protected byte[] processResponse(IResource.Attributes attributes,
                                 byte[] bytes)
Description copied from class: PackageResource
Gives a chance to modify the resource going to be written in the response

Overrides:
processResponse in class PackageResource
Parameters:
attributes - current request attributes from client
bytes - the original response
Returns:
the processed response


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.