public class AssetHandler extends Object implements Route.Handler, Route.Aware
Constructor and Description |
---|
AssetHandler(AssetSource... sources) |
Modifier and Type | Method and Description |
---|---|
Object |
apply(Context ctx) |
AssetHandler |
etag(boolean etag) |
AssetHandler |
lastModified(boolean lastModified) |
AssetHandler |
maxAge(long maxAge) |
void |
setRoute(Route route) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, next, then
public AssetHandler(AssetSource... sources)
@Nonnull public Object apply(@Nonnull Context ctx) throws Exception
apply
in interface Route.Handler
Exception
public AssetHandler etag(boolean etag)
public AssetHandler lastModified(boolean lastModified)
public AssetHandler maxAge(long maxAge)
public void setRoute(Route route)
setRoute
in interface Route.Aware
Copyright © 2019. All rights reserved.