public class HttpRangeProcessor extends Object
Constructor and Description |
---|
HttpRangeProcessor(ContentService contentService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
processRange(HttpServletResponse res,
org.alfresco.service.cmr.repository.ContentReader reader,
String range,
org.alfresco.service.cmr.repository.NodeRef ref,
org.alfresco.service.namespace.QName property,
String mimetype,
String userAgent)
Process a range header for a HttpServletResponse - handles single and multiple range requests.
|
boolean |
processRange(org.springframework.extensions.webscripts.WebScriptResponse res,
org.alfresco.service.cmr.repository.ContentReader reader,
String range,
org.alfresco.service.cmr.repository.NodeRef ref,
org.alfresco.service.namespace.QName property,
String mimetype,
String userAgent)
Process a range header for a WebScriptResponse - handles single and multiple range requests.
|
public HttpRangeProcessor(ContentService contentService)
contentService
- ContentServicepublic boolean processRange(HttpServletResponse res, org.alfresco.service.cmr.repository.ContentReader reader, String range, org.alfresco.service.cmr.repository.NodeRef ref, org.alfresco.service.namespace.QName property, String mimetype, String userAgent) throws IOException
res
- the HTTP servlet responsereader
- the content readerrange
- the byte rangeref
- the content NodeRefproperty
- the content propertymimetype
- the content mimetypeuserAgent
- the user agent stringIOException
public boolean processRange(org.springframework.extensions.webscripts.WebScriptResponse res, org.alfresco.service.cmr.repository.ContentReader reader, String range, org.alfresco.service.cmr.repository.NodeRef ref, org.alfresco.service.namespace.QName property, String mimetype, String userAgent) throws IOException
res
- the webscript responsereader
- the content readerrange
- the byte rangeref
- the content NodeRefproperty
- the content propertymimetype
- the content mimetypeuserAgent
- the user agent stringIOException
Copyright © 2005–2017 Alfresco Software. All rights reserved.