com.twitter.common.application.http
Class HttpAssetConfig

java.lang.Object
  extended by com.twitter.common.application.http.HttpAssetConfig

public class HttpAssetConfig
extends Object

Configuration for a static HTTP-served asset. TODO(William Farner): Move this to a more appropriate package after initial AppLauncher check-in.


Field Summary
 AssetHandler handler
           
 String path
           
 boolean silent
           
 
Constructor Summary
HttpAssetConfig(String path, URL asset, String contentType, boolean silent)
          Creates a new asset configuration.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

public final String path

handler

public final AssetHandler handler

silent

public final boolean silent
Constructor Detail

HttpAssetConfig

public HttpAssetConfig(String path,
                       URL asset,
                       String contentType,
                       boolean silent)
Creates a new asset configuration.

Parameters:
path - HTTP path the asset should be accessible from.
asset - Asset resource URL.
contentType - HTTP content-type to report for the asset.
silent - Whether the asset should be visible on the default index page.