441073 isEarlyEOF on HttpInput

This commit is contained in:
Greg Wilkins 2014-08-07 15:05:22 +10:00
parent 229cdf2532
commit 1d5998f02e
1 changed files with 11 additions and 1 deletions

View File

@ -248,6 +248,15 @@ public abstract class HttpInput<T> extends ServletInputStream implements Runnabl
_channelState.onReadPossible(); _channelState.onReadPossible();
} }
public boolean isEarlyEOF()
{
synchronized (lock())
{
return _contentState==EARLY_EOF;
}
}
/** /**
* This method should be called to signal that all the expected * This method should be called to signal that all the expected
* content arrived. * content arrived.
@ -318,6 +327,7 @@ public abstract class HttpInput<T> extends ServletInputStream implements Runnabl
} }
} }
@Override @Override
public boolean isReady() public boolean isReady()
{ {
@ -473,7 +483,7 @@ public abstract class HttpInput<T> extends ServletInputStream implements Runnabl
@Override @Override
public int noContent() throws IOException public int noContent() throws IOException
{ {
throw new EofException(); throw new EofException("Early EOF");
} }
@Override @Override