public abstract class RangeAwareServletContextHelper
extends ServletContextHelper
| Constructor and Description |
|---|
RangeAwareServletContextHelper() |
RangeAwareServletContextHelper(Bundle bundle) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
rangeableContentType(java.lang.String contentType,
java.lang.String userAgent)
Return true if the content type should result in a ranged content response
based on the user agent.
|
public RangeAwareServletContextHelper()
public RangeAwareServletContextHelper(Bundle bundle)
public boolean rangeableContentType(java.lang.String contentType,
java.lang.String userAgent)
User-Agent request header.
This mechanism is only applicable if the browser didn't make a range request for a known ranged content type.
contentType - the content type of the requestuserAgent - the value obtained from the "User-Agent" header