Package org.eclipse.equinox.http.servlet
Class RangeAwareServletContextHelper
java.lang.Object
org.osgi.service.http.context.ServletContextHelper
org.eclipse.equinox.http.servlet.RangeAwareServletContextHelper
A custom servlet context helper type providing support for predicting the
 need for ranged content responses based on the content type and the user
 agent.
- Since:
- 1.5
- 
Field SummaryFields inherited from class org.osgi.service.http.context.ServletContextHelperAUTHENTICATION_TYPE, AUTHORIZATION, REMOTE_USER
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanrangeableContentType(String contentType, String userAgent) Return true if the content type should result in a ranged content response based on the user agent.Methods inherited from class org.osgi.service.http.context.ServletContextHelperfinishSecurity, getMimeType, getRealPath, getResource, getResourcePaths, handleSecurity
- 
Constructor Details- 
RangeAwareServletContextHelperpublic RangeAwareServletContextHelper()
- 
RangeAwareServletContextHelper
 
- 
- 
Method Details- 
rangeableContentTypeReturn true if the content type should result in a ranged content response based on the user agent. The user agent value is obtained from theUser-Agentrequest header.This mechanism is only applicable if the browser didn't make a range request for a known ranged content type. - Parameters:
- contentType- the content type of the request
- userAgent- the value obtained from the "User-Agent" header
 
 
-