mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-06 05:49:50 +00:00
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();
|
||||
setHeader(HttpHeader.LOCATION, location);
|
||||
setStatus(code);
|
||||
completeOutput();
|
||||
closeOutput();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -819,7 +819,7 @@ public class Response implements HttpServletResponse
|
||||
{
|
||||
try
|
||||
{
|
||||
completeOutput();
|
||||
closeOutput();
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
@ -857,7 +857,7 @@ public class Response implements HttpServletResponse
|
||||
return (_contentLength < 0 || written >= _contentLength);
|
||||
}
|
||||
|
||||
public void completeOutput() throws IOException
|
||||
public void closeOutput() throws IOException
|
||||
{
|
||||
if (_outputType == OutputType.WRITER)
|
||||
_writer.close();
|
||||
@ -865,6 +865,17 @@ public class Response implements HttpServletResponse
|
||||
_out.close();
|
||||
}
|
||||
|
||||
/**
|
||||
* close the output
|
||||
*
|
||||
* @deprecated Use {@link #closeOutput()}
|
||||
*/
|
||||
@Deprecated
|
||||
public void completeOutput() throws IOException
|
||||
{
|
||||
closeOutput();
|
||||
}
|
||||
|
||||
public void completeOutput(Callback callback)
|
||||
{
|
||||
if (_outputType == OutputType.WRITER)
|
||||
|
Loading…
x
Reference in New Issue
Block a user