org.apache.http.HttpResponse.setStatusLine()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(223)

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

HttpResponse.setStatusLine介绍

[英]Sets the status line of this response. The reason phrase will be determined based on the current #getLocale.
[中]设置此响应的状态行。原因短语将根据当前的#getLocale确定。

代码示例

代码示例来源:origin: rest-assured/rest-assured

public void setStatusLine( ProtocolVersion arg0, int arg1, String arg2 ) {
  responseBase.setStatusLine( arg0, arg1, arg2 );
}

代码示例来源:origin: rest-assured/rest-assured

public void setStatusLine( StatusLine arg0 ) {
  responseBase.setStatusLine( arg0 );
}

代码示例来源:origin: rest-assured/rest-assured

public void setStatusLine( ProtocolVersion arg0, int arg1 ) {
  responseBase.setStatusLine( arg0, arg1 );
}

代码示例来源:origin: com.jayway.restassured/rest-assured

public void setStatusLine( ProtocolVersion arg0, int arg1 ) {
  responseBase.setStatusLine( arg0, arg1 );
}

代码示例来源:origin: com.jayway.restassured/rest-assured

public void setStatusLine( StatusLine arg0 ) {
  responseBase.setStatusLine( arg0 );
}

代码示例来源:origin: com.jayway.restassured/rest-assured

public void setStatusLine( ProtocolVersion arg0, int arg1, String arg2 ) {
  responseBase.setStatusLine( arg0, arg1, arg2 );
}

代码示例来源:origin: ibinti/bugvm

@Override
public void setStatusLine(final ProtocolVersion ver, final int code, final String reason) {
  original.setStatusLine(ver, code, reason);
}

代码示例来源:origin: ibinti/bugvm

@Override
public void setStatusLine(final ProtocolVersion ver, final int code) {
  original.setStatusLine(ver, code);
}

代码示例来源:origin: org.esigate/esigate-core

@Override
public void setStatusLine(StatusLine statusline) {
  httpResponse.setStatusLine(statusline);
}

代码示例来源:origin: org.esigate/esigate-core

@Override
public void setStatusLine(ProtocolVersion ver, int code) {
  httpResponse.setStatusLine(ver, code);
}

代码示例来源:origin: ibinti/bugvm

@Override
public void setStatusLine(final StatusLine statusline) {
  original.setStatusLine(statusline);
}

代码示例来源:origin: org.codehaus.groovy.modules.http-builder/http-builder

public void setStatusLine( ProtocolVersion arg0, int arg1, String arg2 ) {
  responseBase.setStatusLine( arg0, arg1, arg2 );
}

代码示例来源:origin: kingthy/TVRemoteIME

httpResponse.setStatusLine(
    new BasicStatusLine(
        new ProtocolVersion("HTTP", 1, responseMsg.getOperation().getHttpMinorVersion()),

代码示例来源:origin: com.bugvm/bugvm-rt

@Override
public void setStatusLine(final ProtocolVersion ver, final int code) {
  original.setStatusLine(ver, code);
}

代码示例来源:origin: com.hynnet/httpclient

@Override
public void setStatusLine(final StatusLine statusline) {
  original.setStatusLine(statusline);
}

代码示例来源:origin: com.jkoolcloud/jesl

/**
 * {@inheritDoc}
 */
@Override
public void setStatusLine(ProtocolVersion ver, int code, String reason) {
  if (response != null) {
    response.setStatusLine(ver, code, reason);
  } else {
    super.setStatusLine(ver, code, reason);
  }
}

代码示例来源:origin: com.jkoolcloud/jesl

/**
 * {@inheritDoc}
 */
@Override
public void setStatusLine(StatusLine statusline) {
  if (response != null) {
    response.setStatusLine(statusline);
  } else {
    super.setStatusLine(statusline);
  }
}

代码示例来源:origin: com.jkoolcloud/jesl

/**
 * {@inheritDoc}
 */
@Override
public void setStatusLine(ProtocolVersion ver, int code) {
  if (response != null) {
    response.setStatusLine(ver, code);
  } else {
    super.setStatusLine(ver, code);
  }
}

代码示例来源:origin: org.apache.axis2/axis2-transport-http

public void sendError(int sc, final String msg) {
  assertNotCommitted();
  ProtocolVersion ver = this.response.getProtocolVersion();
  this.response.setStatusLine(ver, sc, msg);
}

代码示例来源:origin: apache/axis2-java

public void sendError(int sc, final String msg) {
  assertNotCommitted();
  ProtocolVersion ver = this.response.getProtocolVersion();
  this.response.setStatusLine(ver, sc, msg);
}

相关文章