de.agilecoders.wicket.webjars.collectors
Class ProtocolAwareAssetPathCollector

java.lang.Object
  extended by de.agilecoders.wicket.webjars.collectors.ProtocolAwareAssetPathCollector
All Implemented Interfaces:
AssetPathCollector
Direct Known Subclasses:
FileAssetPathCollector, JarAssetPathCollector, VfsAssetPathCollector

public abstract class ProtocolAwareAssetPathCollector
extends Object
implements AssetPathCollector


Constructor Summary
protected ProtocolAwareAssetPathCollector(String... protocols)
          Construct.
 
Method Summary
 boolean accept(URL url)
          whether this collector supports given url (especially protocol)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.agilecoders.wicket.webjars.collectors.AssetPathCollector
collect
 

Constructor Detail

ProtocolAwareAssetPathCollector

protected ProtocolAwareAssetPathCollector(String... protocols)
Construct.

Parameters:
protocols - the protocols to accept
Method Detail

accept

public boolean accept(URL url)
Description copied from interface: AssetPathCollector
whether this collector supports given url (especially protocol)

Specified by:
accept in interface AssetPathCollector
Parameters:
url - the url to webjars asset
Returns:
true, if given protocol is accepted


Copyright © 2016 agilecoders.de. All Rights Reserved.