public class BasicFragmentValidator extends Object implements FragmentValidator, ResetCounters, GetCounters, BindHttpDownloader
| Modifier and Type | Field and Description |
|---|---|
protected static String |
COUNTER_PREFIX |
protected OverflowCounter |
downloadedNotMatchRequired |
protected OverflowCounter |
errors |
protected OverflowCounter |
invalidRangeContentStart |
protected Lock |
lock |
protected OverflowCounter |
notPartialContent |
protected OverflowCounter |
nullHttpHeaders |
protected OverflowCounter |
statusCodeInvalid |
| Constructor and Description |
|---|
BasicFragmentValidator() |
BasicFragmentValidator(BasicFragmentValidator src,
Lock lock) |
BasicFragmentValidator(Lock lock) |
protected final Lock lock
protected static final String COUNTER_PREFIX
protected OverflowCounter errors
protected OverflowCounter statusCodeInvalid
protected OverflowCounter nullHttpHeaders
protected OverflowCounter notPartialContent
protected OverflowCounter invalidRangeContentStart
protected OverflowCounter downloadedNotMatchRequired
public BasicFragmentValidator()
public BasicFragmentValidator(Lock lock)
public BasicFragmentValidator(BasicFragmentValidator src, Lock lock)
public BasicFragmentValidator clone()
FragmentValidatorclone in interface FragmentValidatorclone in class Objectpublic BasicFragmentValidator clone(Lock lock)
protected boolean isFinished(GetPart gp)
public Closeable bindHttpDownloader(HttpDownloader downloader)
bindHttpDownloader in interface BindHttpDownloaderpublic Map<String,Counter> getCounters()
getCounters in interface GetCounterspublic void resetCounters()
resetCounters in interface ResetCounterspublic OverflowCounter getErrors()
public void setErrors(OverflowCounter cnt)
protected boolean hasErrors(GetPart gp, ContentFragment cf)
public OverflowCounter getStatusCodeInvalid()
public void seStatusCodeInvalid(OverflowCounter cnt)
protected boolean statusCodeInvalid(GetPart gp, ContentFragment cf)
public OverflowCounter getNullHttpHeaders()
public void setNullHttpHeaders(OverflowCounter cnt)
protected boolean nullHttpHeaders(GetPart gp, ContentFragment cf)
public OverflowCounter getNotPartialContent()
public void setNotPartialContent(OverflowCounter cnt)
protected boolean notPartialContent(GetPart gp, ContentFragment cf)
public OverflowCounter getInvalidRangeContentStart()
public void setInvalidRangeContentStart(OverflowCounter cnt)
protected boolean invalidRangeContentStart(GetPart gp, ContentFragment cf)
public OverflowCounter getDownloadedNotMatchRequired()
public void setDownloadedNotMatchRequired(OverflowCounter cnt)
protected boolean downloadedNotMatchRequired(GetPart gp, ContentFragment cf)
public boolean validate(GetPart gp, ContentFragment cf)
FragmentValidatorvalidate in interface FragmentValidatorgp - Паралельный запросcf - Фрагментprotected void markFailMirror(GetPartMirror gpm)
protected void markSuccessMirror(GetPartMirror gpm)
Copyright © 2017. All rights reserved.