本文整理了Java中com.github.kevinsawicki.http.HttpRequest.getParam()
方法的一些代码示例,展示了HttpRequest.getParam()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpRequest.getParam()
方法的具体详情如下:
包路径:com.github.kevinsawicki.http.HttpRequest
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!