com.sun.grizzly.tcp.http11.GrizzlyResponse.finishResponse()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中com.sun.grizzly.tcp.http11.GrizzlyResponse.finishResponse()方法的一些代码示例,展示了GrizzlyResponse.finishResponse()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GrizzlyResponse.finishResponse()方法的具体详情如下:
包路径:com.sun.grizzly.tcp.http11.GrizzlyResponse
类名称:GrizzlyResponse
方法名:finishResponse

GrizzlyResponse.finishResponse介绍

[英]Perform whatever actions are required to flush and close the output stream or writer, in a single operation.
[中]在单个操作中执行刷新和关闭输出流或写入程序所需的任何操作。

代码示例

代码示例来源:origin: org.jvnet.jax-ws-commons/jaxws-grizzly-httpspi

@Override
public void close() throws IOException {
  response.finishResponse();
}

代码示例来源:origin: com.sun.grizzly/grizzly-utils

@Override
public boolean timeout(){
  // If the buffers are empty, commit the response header
  try{                             
    cancel();
  } finally {
    if (!grizzlyResponse.isCommitted()){
      try{
        grizzlyResponse.finishResponse();
      } catch (IOException ex){
        // Swallow?
      }
    }
  }
  return true;
}

代码示例来源:origin: com.sun.grizzly/grizzly-utils

@Override
public void resume(){
  getCompletionHandler().resumed(getAttachment());
  try{
    grizzlyResponse.finishResponse();
  } catch (IOException ex){
    LoggerUtils.getLogger().log(Level.FINEST,"resume",ex);
  }
}

代码示例来源:origin: com.sun.grizzly/grizzly-http-utils

@Override
public void resume(){
  getCompletionHandler().resumed(getAttachment());
  try{
    gres.finishResponse();
  } catch (IOException ex){
    LoggerUtils.getLogger().log(Level.FINEST,"resume",ex);
  }
}

代码示例来源:origin: com.sun.grizzly/grizzly-http-utils

@Override
public void timeout(boolean forceClose){
  // If the buffers are empty, commit the response header
  try{                             
    getCompletionHandler().cancelled(getAttachment());   
  } finally {
    if (forceClose &&!gres.isCommitted()){
      try{
        gres.finishResponse();
      } catch (IOException ex){
        // Swallow?
      }
    }
  }
}

代码示例来源:origin: com.sun.grizzly/grizzly-http-utils

response.finishResponse();

代码示例来源:origin: com.sun.grizzly/grizzly-utils

response.finishResponse();

代码示例来源:origin: org.glassfish.external/grizzly-module

response.finishResponse();

相关文章

微信公众号

最新文章

更多