com.github.kevinsawicki.http.HttpRequest.getParam()方法的使用及代码示例

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

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

HttpRequest.getParam介绍

[英]Get parameter value from header value
[中]从标题值获取参数值

代码示例

代码示例来源:origin: com.github.kevinsawicki/http-request

/**
 * Get parameter with given name from header value in response
 *
 * @param headerName
 * @param paramName
 * @return parameter value or null if missing
 */
public String parameter(final String headerName, final String paramName) {
 return getParam(header(headerName), paramName);
}

代码示例来源:origin: lkorth/httpebble-android

/**
 * Get parameter with given name from header value in response
 *
 * @param headerName
 * @param paramName
 * @return parameter value or null if missing
 */
public String parameter(final String headerName, final String paramName) {
  return getParam(header(headerName), paramName);
}

代码示例来源:origin: tcking/GiraffePlayer2

/**
 * Get parameter with given name from header value in response
 *
 * @param headerName
 * @param paramName
 * @return parameter value or null if missing
 */
public String parameter(final String headerName, final String paramName) {
  return getParam(header(headerName), paramName);
}

代码示例来源:origin: com.restfuse/com.eclipsesource.restfuse

/**
 * Get parameter with given name from header value in response
 *
 * @param headerName
 * @param paramName
 * @return parameter value or null if missing
 */
public String parameter(final String headerName, final String paramName) {
 return getParam(header(headerName), paramName);
}

代码示例来源:origin: com.restfuse/com.eclipsesource.restfuse

/**
 * Open output stream
 *
 * @return this request
 * @throws IOException
 */
protected HttpRequest openOutput() throws IOException {
 if (output != null)
  return this;
 connection.setDoOutput(true);
 final String charset = getParam(
   connection.getRequestProperty(HEADER_CONTENT_TYPE), PARAM_CHARSET);
 output = new RequestOutputStream(connection.getOutputStream(), charset,
   bufferSize);
 return this;
}

代码示例来源:origin: lkorth/httpebble-android

/**
 * Open output stream
 *
 * @return this request
 * @throws IOException
 */
protected HttpRequest openOutput() throws IOException {
  if (output != null)
    return this;
  connection.setDoOutput(true);
  final String charset = getParam(
      connection.getRequestProperty(HEADER_CONTENT_TYPE), PARAM_CHARSET);
  output = new RequestOutputStream(connection.getOutputStream(), charset,
      bufferSize);
  return this;
}

代码示例来源:origin: com.github.kevinsawicki/http-request

/**
 * Open output stream
 *
 * @return this request
 * @throws IOException
 */
protected HttpRequest openOutput() throws IOException {
 if (output != null)
  return this;
 getConnection().setDoOutput(true);
 final String charset = getParam(
   getConnection().getRequestProperty(HEADER_CONTENT_TYPE), PARAM_CHARSET);
 output = new RequestOutputStream(getConnection().getOutputStream(), charset,
   bufferSize);
 return this;
}

代码示例来源:origin: tcking/GiraffePlayer2

/**
 * Open output stream
 *
 * @return this request
 * @throws IOException
 */
protected HttpRequest openOutput() throws IOException {
  if (output != null)
    return this;
  getConnection().setDoOutput(true);
  final String charset = getParam(
      getConnection().getRequestProperty(HEADER_CONTENT_TYPE), PARAM_CHARSET);
  output = new RequestOutputStream(getConnection().getOutputStream(), charset,
      bufferSize);
  return this;
}

相关文章

HttpRequest类方法