Package io.milton.http.http11
Interface PartialllyUpdateableResource
- All Superinterfaces:
ReplaceableResource,Resource
A resource which, as well as being completely replaceable, can have its content
partially replaced. ie individual ranges can be set
While PutHandler will do this for you even if you don't implement this interface,
the approach used might not be efficient. Ie milton will retrieve your complete
content, then insert the update, then set the entire content back again like
a regular put.
By implementing this interface you have control over how you manage the
updated resource.
- Author:
- brad
-
Method Summary
Modifier and TypeMethodDescriptionvoidreplacePartialContent(Range range, InputStream in) Update the content with the date in the given inputstream, affecting only those bytes in the given range.Methods inherited from interface io.milton.resource.ReplaceableResource
replaceContentMethods inherited from interface io.milton.resource.Resource
authenticate, authorise, checkRedirect, getModifiedDate, getName, getRealm, getUniqueId
-
Method Details
-
replacePartialContent
Update the content with the date in the given inputstream, affecting only those bytes in the given range. Note that the range positions are zero-based, so the first byte is 0- Parameters:
range- - the range to updatein- - the inputstream containing the data
-