本文整理了Java中org.apache.http.HttpRequest.headerIterator()
方法的一些代码示例,展示了HttpRequest.headerIterator()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpRequest.headerIterator()
方法的具体详情如下:
包路径:org.apache.http.HttpRequest
类名称:HttpRequest
方法名:headerIterator
暂无
代码示例来源:origin: soabase/soabase
@Override
public HeaderIterator headerIterator(String name)
{
return implementation.headerIterator(name);
}
代码示例来源:origin: apache/axis2-java
public HeaderIterator headerIterator() {
return this.request.headerIterator();
}
代码示例来源:origin: soabase/soabase
@Override
public HeaderIterator headerIterator()
{
return implementation.headerIterator();
}
代码示例来源:origin: org.apache.axis2/axis2-transport-http
public HeaderIterator headerIterator() {
return this.request.headerIterator();
}
代码示例来源:origin: apache/axis2-java
public HeaderIterator headerIterator(final String name) {
return this.request.headerIterator(name);
}
代码示例来源:origin: org.apache.axis2/axis2-transport-http
public HeaderIterator headerIterator(final String name) {
return this.request.headerIterator(name);
}
代码示例来源:origin: org.apache.httpcomponents/httpcore-ab
private static void resetHeader(final HttpRequest request) {
for (final HeaderIterator it = request.headerIterator(); it.hasNext();) {
final Header header = it.nextHeader();
if (!(header instanceof DefaultHeader)) {
it.remove();
}
}
}
代码示例来源:origin: com.gitee.rslai.commons/http
return;
HeaderIterator it = request.headerIterator(SM.COOKIE);
addCookie(it, cookieSpec, cookieOrigin, cookieStore);
it = request.headerIterator(SM.SET_COOKIE2);
addCookie(it, cookieSpec, cookieOrigin, cookieStore);
代码示例来源:origin: org.apache.axis2/axis2-transport-http
public HttpRequest receiveRequest() throws HttpException, IOException {
HttpRequest request = (HttpRequest) this.requestParser.parse();
if (HEADERLOG.isDebugEnabled()) {
HEADERLOG.debug(">> " + request.getRequestLine().toString());
for (HeaderIterator it = request.headerIterator(); it.hasNext(); ) {
HEADERLOG.debug(">> " + it.nextHeader().toString());
}
}
// Prepare input stream
this.in = null;
if (request instanceof HttpEntityEnclosingRequest) {
long len = this.contentLenStrategy.determineLength(request);
if (len == ContentLengthStrategy.CHUNKED) {
this.in = new ChunkedInputStream(this.inbuffer);
} else if (len == ContentLengthStrategy.IDENTITY) {
this.in = new IdentityInputStream(this.inbuffer);
} else {
this.in = new ContentLengthInputStream(inbuffer, len);
}
}
return request;
}
代码示例来源:origin: apache/axis2-java
public HttpRequest receiveRequest() throws HttpException, IOException {
HttpRequest request = (HttpRequest) this.requestParser.parse();
if (HEADERLOG.isDebugEnabled()) {
HEADERLOG.debug(">> " + request.getRequestLine().toString());
for (HeaderIterator it = request.headerIterator(); it.hasNext(); ) {
HEADERLOG.debug(">> " + it.nextHeader().toString());
}
}
// Prepare input stream
this.in = null;
if (request instanceof HttpEntityEnclosingRequest) {
long len = this.contentLenStrategy.determineLength(request);
if (len == ContentLengthStrategy.CHUNKED) {
this.in = new ChunkedInputStream(this.inbuffer);
} else if (len == ContentLengthStrategy.IDENTITY) {
this.in = new IdentityInputStream(this.inbuffer);
} else {
this.in = new ContentLengthInputStream(inbuffer, len);
}
}
return request;
}
代码示例来源:origin: org.bluestemsoftware.open.eoa.ext/ext-client-test
se.build();
callback.setResponse(se);
Iterator<?> headerItr = request.headerIterator();
Map<String, String> headers = new HashMap<String, String>();
while (headerItr.hasNext()) {
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
if (request != null) {
try {
final TokenIterator ti = new BasicTokenIterator(request.headerIterator(HttpHeaders.CONNECTION));
while (ti.hasNext()) {
final String token = ti.nextToken();
代码示例来源:origin: org.apache.httpcomponents/httpclient-android
if (!redirect.headerIterator().hasNext()) {
final HttpRequest original = request.getOriginal();
redirect.setHeaders(original.getAllHeaders());
代码示例来源:origin: ibinti/bugvm
if (!redirect.headerIterator().hasNext()) {
final HttpRequest original = request.getOriginal();
redirect.setHeaders(original.getAllHeaders());
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.httpcomponents.httpclient
if (!redirect.headerIterator().hasNext()) {
final HttpRequest original = request.getOriginal();
redirect.setHeaders(original.getAllHeaders());
代码示例来源:origin: com.bugvm/bugvm-rt
if (!redirect.headerIterator().hasNext()) {
final HttpRequest original = request.getOriginal();
redirect.setHeaders(original.getAllHeaders());
代码示例来源:origin: com.hynnet/httpclient
if (!redirect.headerIterator().hasNext()) {
final HttpRequest original = request.getOriginal();
redirect.setHeaders(original.getAllHeaders());
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
if (!redirect.headerIterator().hasNext()) {
final HttpRequest original = request.getOriginal();
redirect.setHeaders(original.getAllHeaders());
代码示例来源:origin: Nextdoor/bender
if (!redirect.headerIterator().hasNext()) {
final HttpRequest original = request.getOriginal();
redirect.setHeaders(original.getAllHeaders());
内容来源于网络,如有侵权,请联系作者删除!