Revert rename of Response closeOutput to completeOutput #4693
Revert the rename of this method and add a deprecated completeOutput to assist those that used the temporary rename. Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
parent
34488b71b6
commit
d45fd14ef8
|
@ -527,7 +527,7 @@ public class Response implements HttpServletResponse
|
||||||
resetBuffer();
|
resetBuffer();
|
||||||
setHeader(HttpHeader.LOCATION, location);
|
setHeader(HttpHeader.LOCATION, location);
|
||||||
setStatus(code);
|
setStatus(code);
|
||||||
completeOutput();
|
closeOutput();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -819,7 +819,7 @@ public class Response implements HttpServletResponse
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
completeOutput();
|
closeOutput();
|
||||||
}
|
}
|
||||||
catch (IOException e)
|
catch (IOException e)
|
||||||
{
|
{
|
||||||
|
@ -857,7 +857,7 @@ public class Response implements HttpServletResponse
|
||||||
return (_contentLength < 0 || written >= _contentLength);
|
return (_contentLength < 0 || written >= _contentLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void completeOutput() throws IOException
|
public void closeOutput() throws IOException
|
||||||
{
|
{
|
||||||
if (_outputType == OutputType.WRITER)
|
if (_outputType == OutputType.WRITER)
|
||||||
_writer.close();
|
_writer.close();
|
||||||
|
@ -865,6 +865,17 @@ public class Response implements HttpServletResponse
|
||||||
_out.close();
|
_out.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* close the output
|
||||||
|
*
|
||||||
|
* @deprecated Use {@link #closeOutput()}
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
public void completeOutput() throws IOException
|
||||||
|
{
|
||||||
|
closeOutput();
|
||||||
|
}
|
||||||
|
|
||||||
public void completeOutput(Callback callback)
|
public void completeOutput(Callback callback)
|
||||||
{
|
{
|
||||||
if (_outputType == OutputType.WRITER)
|
if (_outputType == OutputType.WRITER)
|
||||||
|
|
Loading…
Reference in New Issue