Java: update test cases and add stubs

This commit is contained in:
Jami Cogswell
2023-04-07 09:49:19 -04:00
parent 6890434d63
commit 0445509080
116 changed files with 2332 additions and 781 deletions

View File

@@ -1,22 +1,24 @@
import java.io.IOException;
import java.net.URI;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.Method;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
// org.apache.hc.client5.http.async.methods
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.Method;
import org.apache.hc.core5.http.impl.bootstrap.HttpAsyncRequester;
import org.apache.hc.core5.http.impl.io.DefaultClassicHttpRequestFactory;
import org.apache.hc.core5.http.impl.nio.DefaultHttpRequestFactory;
import org.apache.hc.core5.http.io.support.ClassicRequestBuilder;
import org.apache.hc.core5.http.message.BasicClassicHttpRequest;
import org.apache.hc.core5.http.message.BasicHttpRequest;
import org.apache.hc.core5.http.message.HttpRequestWrapper;
import org.apache.hc.client5.http.async.methods.BasicHttpRequests;
import org.apache.hc.client5.http.async.methods.ConfigurableHttpRequest;
import org.apache.hc.client5.http.async.methods.SimpleHttpRequest;
import org.apache.hc.client5.http.async.methods.SimpleHttpRequests;
import org.apache.hc.client5.http.async.methods.SimpleRequestBuilder;
// org.apache.hc.client5.http.classic.methods
import org.apache.hc.client5.http.classic.methods.ClassicHttpRequests;
import org.apache.hc.client5.http.classic.methods.HttpDelete;
import org.apache.hc.client5.http.classic.methods.HttpGet;
@@ -27,21 +29,9 @@ import org.apache.hc.client5.http.classic.methods.HttpPost;
import org.apache.hc.client5.http.classic.methods.HttpPut;
import org.apache.hc.client5.http.classic.methods.HttpTrace;
import org.apache.hc.client5.http.classic.methods.HttpUriRequestBase;
import org.apache.hc.client5.http.fluent.Request;
import org.apache.hc.core5.http.impl.bootstrap.HttpAsyncRequester;
import org.apache.hc.core5.http.impl.io.DefaultClassicHttpRequestFactory;
import org.apache.hc.core5.http.impl.nio.DefaultHttpRequestFactory;
import org.apache.hc.core5.http.io.support.ClassicRequestBuilder;
import org.apache.hc.core5.http.message.BasicClassicHttpRequest;
import org.apache.hc.core5.http.message.BasicHttpRequest;
import org.apache.hc.core5.http.message.HttpRequestWrapper;
public class ApacheHttp5SSRF extends HttpServlet {
public class ApacheHttpSSRFVersion5 extends HttpServlet {
// org.apache.hc.client5.http.async.methods
protected void doGet1(HttpServletRequest request, HttpServletResponse response)
@@ -309,7 +299,6 @@ public class ApacheHttp5SSRF extends HttpServlet {
HttpHost host = new HttpHost(hostSink);
// org.apache.hc.core5.http.impl.bootstrap
//AsyncRequesterBootstrap asyncReq = new AsyncRequesterBootstrap();
HttpAsyncRequester httpAsyncReq = new HttpAsyncRequester(null, null, null, null, null, null);
httpAsyncReq.connect(host, null); // $ SSRF
httpAsyncReq.connect(host, null, null, null); // $ SSRF

View File

@@ -1 +1 @@
//semmle-extractor-options: --javac-args -source 11 -target 11 -cp ${testdir}/../../../stubs/springframework-5.3.8:${testdir}/../../../stubs/javax-ws-rs-api-2.1.1:${testdir}/../../../stubs/javax-ws-rs-api-3.0.0:${testdir}/../../../stubs/apache-http-4.4.13/:${testdir}/../../../stubs/projectreactor-3.4.3/:${testdir}/../../../stubs/postgresql-42.3.3/:${testdir}/../../../stubs/HikariCP-3.4.5/:${testdir}/../../../stubs/spring-jdbc-5.3.8/:${testdir}/../../../stubs/jdbi3-core-3.27.2/:${testdir}/../../../stubs/cargo:${testdir}/../../../stubs/javafx-web:${testdir}/../../../stubs/apache-commons-jelly-1.0.1:${testdir}/../../../stubs/dom4j-2.1.1:${testdir}/../../../stubs/jaxen-1.2.0:${testdir}/../../../stubs/stapler-1.263:${testdir}/../../../stubs/javax-servlet-2.5:${testdir}/../../../stubs/apache-commons-fileupload-1.4:${testdir}/../../../stubs/saxon-xqj-9.x:${testdir}/../../../stubs/apache-commons-beanutils:${testdir}/../../../stubs/apache-commons-lang:${testdir}/../../../stubs/apache-http-5-TEMP/
//semmle-extractor-options: --javac-args -source 11 -target 11 -cp ${testdir}/../../../stubs/springframework-5.3.8:${testdir}/../../../stubs/javax-ws-rs-api-2.1.1:${testdir}/../../../stubs/javax-ws-rs-api-3.0.0:${testdir}/../../../stubs/apache-http-4.4.13/:${testdir}/../../../stubs/projectreactor-3.4.3/:${testdir}/../../../stubs/postgresql-42.3.3/:${testdir}/../../../stubs/HikariCP-3.4.5/:${testdir}/../../../stubs/spring-jdbc-5.3.8/:${testdir}/../../../stubs/jdbi3-core-3.27.2/:${testdir}/../../../stubs/cargo:${testdir}/../../../stubs/javafx-web:${testdir}/../../../stubs/apache-commons-jelly-1.0.1:${testdir}/../../../stubs/dom4j-2.1.1:${testdir}/../../../stubs/jaxen-1.2.0:${testdir}/../../../stubs/stapler-1.263:${testdir}/../../../stubs/javax-servlet-2.5:${testdir}/../../../stubs/apache-commons-fileupload-1.4:${testdir}/../../../stubs/saxon-xqj-9.x:${testdir}/../../../stubs/apache-commons-beanutils:${testdir}/../../../stubs/apache-commons-lang:${testdir}/../../../stubs/apache-http-5

View File

@@ -0,0 +1,42 @@
// Generated automatically from org.apache.hc.client5.http.async.methods.BasicHttpRequests for testing purposes
package org.apache.hc.client5.http.async.methods;
import java.net.URI;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.Method;
import org.apache.hc.core5.http.message.BasicHttpRequest;
public class BasicHttpRequests
{
public BasicHttpRequests(){}
public static BasicHttpRequest create(Method p0, HttpHost p1, String p2){ return null; }
public static BasicHttpRequest create(Method p0, String p1){ return null; }
public static BasicHttpRequest create(Method p0, URI p1){ return null; }
public static BasicHttpRequest create(String p0, String p1){ return null; }
public static BasicHttpRequest create(String p0, URI p1){ return null; }
public static BasicHttpRequest delete(HttpHost p0, String p1){ return null; }
public static BasicHttpRequest delete(String p0){ return null; }
public static BasicHttpRequest delete(URI p0){ return null; }
public static BasicHttpRequest get(HttpHost p0, String p1){ return null; }
public static BasicHttpRequest get(String p0){ return null; }
public static BasicHttpRequest get(URI p0){ return null; }
public static BasicHttpRequest head(HttpHost p0, String p1){ return null; }
public static BasicHttpRequest head(String p0){ return null; }
public static BasicHttpRequest head(URI p0){ return null; }
public static BasicHttpRequest options(HttpHost p0, String p1){ return null; }
public static BasicHttpRequest options(String p0){ return null; }
public static BasicHttpRequest options(URI p0){ return null; }
public static BasicHttpRequest patch(HttpHost p0, String p1){ return null; }
public static BasicHttpRequest patch(String p0){ return null; }
public static BasicHttpRequest patch(URI p0){ return null; }
public static BasicHttpRequest post(HttpHost p0, String p1){ return null; }
public static BasicHttpRequest post(String p0){ return null; }
public static BasicHttpRequest post(URI p0){ return null; }
public static BasicHttpRequest put(HttpHost p0, String p1){ return null; }
public static BasicHttpRequest put(String p0){ return null; }
public static BasicHttpRequest put(URI p0){ return null; }
public static BasicHttpRequest trace(HttpHost p0, String p1){ return null; }
public static BasicHttpRequest trace(String p0){ return null; }
public static BasicHttpRequest trace(URI p0){ return null; }
}

View File

@@ -0,0 +1,21 @@
// Generated automatically from org.apache.hc.client5.http.async.methods.ConfigurableHttpRequest for testing purposes
package org.apache.hc.client5.http.async.methods;
import java.net.URI;
import org.apache.hc.client5.http.config.Configurable;
import org.apache.hc.client5.http.config.RequestConfig;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.message.BasicHttpRequest;
import org.apache.hc.core5.net.URIAuthority;
public class ConfigurableHttpRequest extends BasicHttpRequest implements Configurable
{
protected ConfigurableHttpRequest() {}
public ConfigurableHttpRequest(String p0, HttpHost p1, String p2){}
public ConfigurableHttpRequest(String p0, String p1){}
public ConfigurableHttpRequest(String p0, String p1, URIAuthority p2, String p3){}
public ConfigurableHttpRequest(String p0, URI p1){}
public RequestConfig getConfig(){ return null; }
public void setConfig(RequestConfig p0){}
}

View File

@@ -0,0 +1,16 @@
// Generated automatically from org.apache.hc.client5.http.async.methods.SimpleBody for testing purposes
package org.apache.hc.client5.http.async.methods;
import org.apache.hc.core5.http.ContentType;
public class SimpleBody
{
protected SimpleBody() {}
public ContentType getContentType(){ return null; }
public String getBodyText(){ return null; }
public String toString(){ return null; }
public boolean isBytes(){ return false; }
public boolean isText(){ return false; }
public byte[] getBodyBytes(){ return null; }
}

View File

@@ -0,0 +1,36 @@
// Generated automatically from org.apache.hc.client5.http.async.methods.SimpleHttpRequest for testing purposes
package org.apache.hc.client5.http.async.methods;
import java.net.URI;
import org.apache.hc.client5.http.async.methods.ConfigurableHttpRequest;
import org.apache.hc.client5.http.async.methods.SimpleBody;
import org.apache.hc.core5.http.ContentType;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.HttpRequest;
import org.apache.hc.core5.http.Method;
import org.apache.hc.core5.net.URIAuthority;
public class SimpleHttpRequest extends ConfigurableHttpRequest
{
protected SimpleHttpRequest() {}
public ContentType getContentType(){ return null; }
public SimpleBody getBody(){ return null; }
public SimpleHttpRequest(Method p0, HttpHost p1, String p2){}
public SimpleHttpRequest(Method p0, URI p1){}
public SimpleHttpRequest(String p0, HttpHost p1, String p2){}
public SimpleHttpRequest(String p0, String p1){}
public SimpleHttpRequest(String p0, String p1, URIAuthority p2, String p3){}
public SimpleHttpRequest(String p0, URI p1){}
public String getBodyText(){ return null; }
public byte[] getBodyBytes(){ return null; }
public static SimpleHttpRequest copy(HttpRequest p0){ return null; }
public static SimpleHttpRequest create(Method p0, HttpHost p1, String p2){ return null; }
public static SimpleHttpRequest create(Method p0, URI p1){ return null; }
public static SimpleHttpRequest create(String p0, String p1){ return null; }
public static SimpleHttpRequest create(String p0, String p1, URIAuthority p2, String p3){ return null; }
public static SimpleHttpRequest create(String p0, URI p1){ return null; }
public void setBody(SimpleBody p0){}
public void setBody(String p0, ContentType p1){}
public void setBody(byte[] p0, ContentType p1){}
}

View File

@@ -0,0 +1,42 @@
// Generated automatically from org.apache.hc.client5.http.async.methods.SimpleHttpRequests for testing purposes
package org.apache.hc.client5.http.async.methods;
import java.net.URI;
import org.apache.hc.client5.http.async.methods.SimpleHttpRequest;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.Method;
public class SimpleHttpRequests
{
public SimpleHttpRequests(){}
public static SimpleHttpRequest create(Method p0, HttpHost p1, String p2){ return null; }
public static SimpleHttpRequest create(Method p0, String p1){ return null; }
public static SimpleHttpRequest create(Method p0, URI p1){ return null; }
public static SimpleHttpRequest create(String p0, String p1){ return null; }
public static SimpleHttpRequest create(String p0, URI p1){ return null; }
public static SimpleHttpRequest delete(HttpHost p0, String p1){ return null; }
public static SimpleHttpRequest delete(String p0){ return null; }
public static SimpleHttpRequest delete(URI p0){ return null; }
public static SimpleHttpRequest get(HttpHost p0, String p1){ return null; }
public static SimpleHttpRequest get(String p0){ return null; }
public static SimpleHttpRequest get(URI p0){ return null; }
public static SimpleHttpRequest head(HttpHost p0, String p1){ return null; }
public static SimpleHttpRequest head(String p0){ return null; }
public static SimpleHttpRequest head(URI p0){ return null; }
public static SimpleHttpRequest options(HttpHost p0, String p1){ return null; }
public static SimpleHttpRequest options(String p0){ return null; }
public static SimpleHttpRequest options(URI p0){ return null; }
public static SimpleHttpRequest patch(HttpHost p0, String p1){ return null; }
public static SimpleHttpRequest patch(String p0){ return null; }
public static SimpleHttpRequest patch(URI p0){ return null; }
public static SimpleHttpRequest post(HttpHost p0, String p1){ return null; }
public static SimpleHttpRequest post(String p0){ return null; }
public static SimpleHttpRequest post(URI p0){ return null; }
public static SimpleHttpRequest put(HttpHost p0, String p1){ return null; }
public static SimpleHttpRequest put(String p0){ return null; }
public static SimpleHttpRequest put(URI p0){ return null; }
public static SimpleHttpRequest trace(HttpHost p0, String p1){ return null; }
public static SimpleHttpRequest trace(String p0){ return null; }
public static SimpleHttpRequest trace(URI p0){ return null; }
}

View File

@@ -0,0 +1,80 @@
// Generated automatically from org.apache.hc.client5.http.async.methods.SimpleRequestBuilder for testing purposes
package org.apache.hc.client5.http.async.methods;
import java.net.URI;
import java.nio.charset.Charset;
import org.apache.hc.client5.http.async.methods.SimpleBody;
import org.apache.hc.client5.http.async.methods.SimpleHttpRequest;
import org.apache.hc.client5.http.config.RequestConfig;
import org.apache.hc.core5.http.ContentType;
import org.apache.hc.core5.http.Header;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.HttpRequest;
import org.apache.hc.core5.http.Method;
import org.apache.hc.core5.http.NameValuePair;
import org.apache.hc.core5.http.ProtocolVersion;
import org.apache.hc.core5.http.support.AbstractRequestBuilder;
import org.apache.hc.core5.net.URIAuthority;
public class SimpleRequestBuilder extends AbstractRequestBuilder<SimpleHttpRequest>
{
protected SimpleRequestBuilder() {}
protected void digest(HttpRequest p0){}
protected void digest(SimpleHttpRequest p0){}
public RequestConfig getRequestConfig(){ return null; }
public SimpleBody getBody(){ return null; }
public SimpleHttpRequest build(){ return null; }
public SimpleRequestBuilder addHeader(Header p0){ return null; }
public SimpleRequestBuilder addHeader(String p0, String p1){ return null; }
public SimpleRequestBuilder addParameter(NameValuePair p0){ return null; }
public SimpleRequestBuilder addParameter(String p0, String p1){ return null; }
public SimpleRequestBuilder addParameters(NameValuePair... p0){ return null; }
public SimpleRequestBuilder removeHeader(Header p0){ return null; }
public SimpleRequestBuilder removeHeaders(String p0){ return null; }
public SimpleRequestBuilder setAbsoluteRequestUri(boolean p0){ return null; }
public SimpleRequestBuilder setAuthority(URIAuthority p0){ return null; }
public SimpleRequestBuilder setBody(SimpleBody p0){ return null; }
public SimpleRequestBuilder setBody(String p0, ContentType p1){ return null; }
public SimpleRequestBuilder setBody(byte[] p0, ContentType p1){ return null; }
public SimpleRequestBuilder setCharset(Charset p0){ return null; }
public SimpleRequestBuilder setHeader(Header p0){ return null; }
public SimpleRequestBuilder setHeader(String p0, String p1){ return null; }
public SimpleRequestBuilder setHeaders(Header... p0){ return null; }
public SimpleRequestBuilder setHttpHost(HttpHost p0){ return null; }
public SimpleRequestBuilder setPath(String p0){ return null; }
public SimpleRequestBuilder setRequestConfig(RequestConfig p0){ return null; }
public SimpleRequestBuilder setScheme(String p0){ return null; }
public SimpleRequestBuilder setUri(String p0){ return null; }
public SimpleRequestBuilder setUri(URI p0){ return null; }
public SimpleRequestBuilder setVersion(ProtocolVersion p0){ return null; }
public String toString(){ return null; }
public static SimpleRequestBuilder copy(HttpRequest p0){ return null; }
public static SimpleRequestBuilder copy(SimpleHttpRequest p0){ return null; }
public static SimpleRequestBuilder create(Method p0){ return null; }
public static SimpleRequestBuilder create(String p0){ return null; }
public static SimpleRequestBuilder delete(){ return null; }
public static SimpleRequestBuilder delete(String p0){ return null; }
public static SimpleRequestBuilder delete(URI p0){ return null; }
public static SimpleRequestBuilder get(){ return null; }
public static SimpleRequestBuilder get(String p0){ return null; }
public static SimpleRequestBuilder get(URI p0){ return null; }
public static SimpleRequestBuilder head(){ return null; }
public static SimpleRequestBuilder head(String p0){ return null; }
public static SimpleRequestBuilder head(URI p0){ return null; }
public static SimpleRequestBuilder options(){ return null; }
public static SimpleRequestBuilder options(String p0){ return null; }
public static SimpleRequestBuilder options(URI p0){ return null; }
public static SimpleRequestBuilder patch(){ return null; }
public static SimpleRequestBuilder patch(String p0){ return null; }
public static SimpleRequestBuilder patch(URI p0){ return null; }
public static SimpleRequestBuilder post(){ return null; }
public static SimpleRequestBuilder post(String p0){ return null; }
public static SimpleRequestBuilder post(URI p0){ return null; }
public static SimpleRequestBuilder put(){ return null; }
public static SimpleRequestBuilder put(String p0){ return null; }
public static SimpleRequestBuilder put(URI p0){ return null; }
public static SimpleRequestBuilder trace(){ return null; }
public static SimpleRequestBuilder trace(String p0){ return null; }
public static SimpleRequestBuilder trace(URI p0){ return null; }
}

View File

@@ -0,0 +1,22 @@
// Generated automatically from org.apache.hc.client5.http.classic.HttpClient for testing purposes
package org.apache.hc.client5.http.classic;
import org.apache.hc.core5.http.ClassicHttpRequest;
import org.apache.hc.core5.http.ClassicHttpResponse;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.HttpResponse;
import org.apache.hc.core5.http.io.HttpClientResponseHandler;
import org.apache.hc.core5.http.protocol.HttpContext;
public interface HttpClient
{
<T> T execute(ClassicHttpRequest p0, HttpContext p1, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> p2);
<T> T execute(ClassicHttpRequest p0, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> p1);
<T> T execute(HttpHost p0, ClassicHttpRequest p1, HttpContext p2, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> p3);
<T> T execute(HttpHost p0, ClassicHttpRequest p1, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> p2);
ClassicHttpResponse execute(HttpHost p0, ClassicHttpRequest p1);
HttpResponse execute(ClassicHttpRequest p0);
HttpResponse execute(ClassicHttpRequest p0, HttpContext p1);
HttpResponse execute(HttpHost p0, ClassicHttpRequest p1, HttpContext p2);
}

View File

@@ -0,0 +1,32 @@
// Generated automatically from org.apache.hc.client5.http.classic.methods.ClassicHttpRequests for testing purposes
package org.apache.hc.client5.http.classic.methods;
import java.net.URI;
import org.apache.hc.client5.http.classic.methods.HttpUriRequest;
import org.apache.hc.core5.http.Method;
public class ClassicHttpRequests
{
public ClassicHttpRequests(){}
public static HttpUriRequest create(Method p0, String p1){ return null; }
public static HttpUriRequest create(Method p0, URI p1){ return null; }
public static HttpUriRequest create(String p0, String p1){ return null; }
public static HttpUriRequest create(String p0, URI p1){ return null; }
public static HttpUriRequest delete(String p0){ return null; }
public static HttpUriRequest delete(URI p0){ return null; }
public static HttpUriRequest get(String p0){ return null; }
public static HttpUriRequest get(URI p0){ return null; }
public static HttpUriRequest head(String p0){ return null; }
public static HttpUriRequest head(URI p0){ return null; }
public static HttpUriRequest options(String p0){ return null; }
public static HttpUriRequest options(URI p0){ return null; }
public static HttpUriRequest patch(String p0){ return null; }
public static HttpUriRequest patch(URI p0){ return null; }
public static HttpUriRequest post(String p0){ return null; }
public static HttpUriRequest post(URI p0){ return null; }
public static HttpUriRequest put(String p0){ return null; }
public static HttpUriRequest put(URI p0){ return null; }
public static HttpUriRequest trace(String p0){ return null; }
public static HttpUriRequest trace(URI p0){ return null; }
}

View File

@@ -0,0 +1,14 @@
// Generated automatically from org.apache.hc.client5.http.classic.methods.HttpDelete for testing purposes
package org.apache.hc.client5.http.classic.methods;
import java.net.URI;
import org.apache.hc.client5.http.classic.methods.HttpUriRequestBase;
public class HttpDelete extends HttpUriRequestBase
{
protected HttpDelete() {}
public HttpDelete(String p0){}
public HttpDelete(URI p0){}
public static String METHOD_NAME = null;
}

View File

@@ -0,0 +1,14 @@
// Generated automatically from org.apache.hc.client5.http.classic.methods.HttpGet for testing purposes
package org.apache.hc.client5.http.classic.methods;
import java.net.URI;
import org.apache.hc.client5.http.classic.methods.HttpUriRequestBase;
public class HttpGet extends HttpUriRequestBase
{
protected HttpGet() {}
public HttpGet(String p0){}
public HttpGet(URI p0){}
public static String METHOD_NAME = null;
}

View File

@@ -0,0 +1,14 @@
// Generated automatically from org.apache.hc.client5.http.classic.methods.HttpHead for testing purposes
package org.apache.hc.client5.http.classic.methods;
import java.net.URI;
import org.apache.hc.client5.http.classic.methods.HttpUriRequestBase;
public class HttpHead extends HttpUriRequestBase
{
protected HttpHead() {}
public HttpHead(String p0){}
public HttpHead(URI p0){}
public static String METHOD_NAME = null;
}

View File

@@ -0,0 +1,18 @@
// Generated automatically from org.apache.hc.client5.http.classic.methods.HttpOptions for testing purposes
package org.apache.hc.client5.http.classic.methods;
import java.net.URI;
import java.util.Set;
import org.apache.hc.client5.http.classic.methods.HttpUriRequestBase;
import org.apache.hc.core5.http.HttpResponse;
public class HttpOptions extends HttpUriRequestBase
{
protected HttpOptions() {}
public HttpOptions(String p0){}
public HttpOptions(URI p0){}
public Set<String> getAllowedMethods(HttpResponse p0){ return null; }
public String getMethod(){ return null; }
public static String METHOD_NAME = null;
}

View File

@@ -0,0 +1,14 @@
// Generated automatically from org.apache.hc.client5.http.classic.methods.HttpPatch for testing purposes
package org.apache.hc.client5.http.classic.methods;
import java.net.URI;
import org.apache.hc.client5.http.classic.methods.HttpUriRequestBase;
public class HttpPatch extends HttpUriRequestBase
{
protected HttpPatch() {}
public HttpPatch(String p0){}
public HttpPatch(URI p0){}
public static String METHOD_NAME = null;
}

View File

@@ -0,0 +1,14 @@
// Generated automatically from org.apache.hc.client5.http.classic.methods.HttpPost for testing purposes
package org.apache.hc.client5.http.classic.methods;
import java.net.URI;
import org.apache.hc.client5.http.classic.methods.HttpUriRequestBase;
public class HttpPost extends HttpUriRequestBase
{
protected HttpPost() {}
public HttpPost(String p0){}
public HttpPost(URI p0){}
public static String METHOD_NAME = null;
}

View File

@@ -0,0 +1,14 @@
// Generated automatically from org.apache.hc.client5.http.classic.methods.HttpPut for testing purposes
package org.apache.hc.client5.http.classic.methods;
import java.net.URI;
import org.apache.hc.client5.http.classic.methods.HttpUriRequestBase;
public class HttpPut extends HttpUriRequestBase
{
protected HttpPut() {}
public HttpPut(String p0){}
public HttpPut(URI p0){}
public static String METHOD_NAME = null;
}

View File

@@ -0,0 +1,16 @@
// Generated automatically from org.apache.hc.client5.http.classic.methods.HttpTrace for testing purposes
package org.apache.hc.client5.http.classic.methods;
import java.net.URI;
import org.apache.hc.client5.http.classic.methods.HttpUriRequestBase;
import org.apache.hc.core5.http.HttpEntity;
public class HttpTrace extends HttpUriRequestBase
{
protected HttpTrace() {}
public HttpTrace(String p0){}
public HttpTrace(URI p0){}
public static String METHOD_NAME = null;
public void setEntity(HttpEntity p0){}
}

View File

@@ -0,0 +1,12 @@
// Generated automatically from org.apache.hc.client5.http.classic.methods.HttpUriRequest for testing purposes
package org.apache.hc.client5.http.classic.methods;
import org.apache.hc.client5.http.config.Configurable;
import org.apache.hc.core5.http.ClassicHttpRequest;
public interface HttpUriRequest extends ClassicHttpRequest, Configurable
{
boolean isAborted();
void abort();
}

View File

@@ -0,0 +1,25 @@
// Generated automatically from org.apache.hc.client5.http.classic.methods.HttpUriRequestBase for testing purposes
package org.apache.hc.client5.http.classic.methods;
import java.net.URI;
import org.apache.hc.client5.http.classic.methods.HttpUriRequest;
import org.apache.hc.client5.http.config.RequestConfig;
import org.apache.hc.core5.concurrent.Cancellable;
import org.apache.hc.core5.concurrent.CancellableDependency;
import org.apache.hc.core5.http.message.BasicClassicHttpRequest;
public class HttpUriRequestBase extends BasicClassicHttpRequest implements CancellableDependency, HttpUriRequest
{
protected HttpUriRequestBase() {}
public HttpUriRequestBase(String p0, URI p1){}
public RequestConfig getConfig(){ return null; }
public String toString(){ return null; }
public boolean cancel(){ return false; }
public boolean isAborted(){ return false; }
public boolean isCancelled(){ return false; }
public void abort(){}
public void reset(){}
public void setConfig(RequestConfig p0){}
public void setDependency(Cancellable p0){}
}

View File

@@ -0,0 +1,10 @@
// Generated automatically from org.apache.hc.client5.http.config.Configurable for testing purposes
package org.apache.hc.client5.http.config;
import org.apache.hc.client5.http.config.RequestConfig;
public interface Configurable
{
RequestConfig getConfig();
}

View File

@@ -0,0 +1,57 @@
// Generated automatically from org.apache.hc.client5.http.config.RequestConfig for testing purposes
package org.apache.hc.client5.http.config;
import java.util.Collection;
import java.util.concurrent.TimeUnit;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.util.TimeValue;
import org.apache.hc.core5.util.Timeout;
public class RequestConfig implements Cloneable
{
protected RequestConfig clone(){ return null; }
protected RequestConfig(){}
public Collection<String> getProxyPreferredAuthSchemes(){ return null; }
public Collection<String> getTargetPreferredAuthSchemes(){ return null; }
public HttpHost getProxy(){ return null; }
public String getCookieSpec(){ return null; }
public String toString(){ return null; }
public TimeValue getConnectionKeepAlive(){ return null; }
public Timeout getConnectTimeout(){ return null; }
public Timeout getConnectionRequestTimeout(){ return null; }
public Timeout getResponseTimeout(){ return null; }
public boolean isAuthenticationEnabled(){ return false; }
public boolean isCircularRedirectsAllowed(){ return false; }
public boolean isContentCompressionEnabled(){ return false; }
public boolean isExpectContinueEnabled(){ return false; }
public boolean isHardCancellationEnabled(){ return false; }
public boolean isRedirectsEnabled(){ return false; }
public int getMaxRedirects(){ return 0; }
public static RequestConfig DEFAULT = null;
public static RequestConfig.Builder copy(RequestConfig p0){ return null; }
public static RequestConfig.Builder custom(){ return null; }
static public class Builder
{
public RequestConfig build(){ return null; }
public RequestConfig.Builder setAuthenticationEnabled(boolean p0){ return null; }
public RequestConfig.Builder setCircularRedirectsAllowed(boolean p0){ return null; }
public RequestConfig.Builder setConnectTimeout(Timeout p0){ return null; }
public RequestConfig.Builder setConnectTimeout(long p0, TimeUnit p1){ return null; }
public RequestConfig.Builder setConnectionKeepAlive(TimeValue p0){ return null; }
public RequestConfig.Builder setConnectionRequestTimeout(Timeout p0){ return null; }
public RequestConfig.Builder setConnectionRequestTimeout(long p0, TimeUnit p1){ return null; }
public RequestConfig.Builder setContentCompressionEnabled(boolean p0){ return null; }
public RequestConfig.Builder setCookieSpec(String p0){ return null; }
public RequestConfig.Builder setDefaultKeepAlive(long p0, TimeUnit p1){ return null; }
public RequestConfig.Builder setExpectContinueEnabled(boolean p0){ return null; }
public RequestConfig.Builder setHardCancellationEnabled(boolean p0){ return null; }
public RequestConfig.Builder setMaxRedirects(int p0){ return null; }
public RequestConfig.Builder setProxy(HttpHost p0){ return null; }
public RequestConfig.Builder setProxyPreferredAuthSchemes(Collection<String> p0){ return null; }
public RequestConfig.Builder setRedirectsEnabled(boolean p0){ return null; }
public RequestConfig.Builder setResponseTimeout(Timeout p0){ return null; }
public RequestConfig.Builder setResponseTimeout(long p0, TimeUnit p1){ return null; }
public RequestConfig.Builder setTargetPreferredAuthSchemes(Collection<String> p0){ return null; }
}
}

View File

@@ -0,0 +1,20 @@
// Generated automatically from org.apache.hc.client5.http.fluent.Content for testing purposes
package org.apache.hc.client5.http.fluent;
import java.io.InputStream;
import java.nio.charset.Charset;
import org.apache.hc.core5.http.ContentType;
public class Content
{
protected Content() {}
public Content(byte[] p0, ContentType p1){}
public ContentType getType(){ return null; }
public InputStream asStream(){ return null; }
public String asString(){ return null; }
public String asString(Charset p0){ return null; }
public String toString(){ return null; }
public byte[] asBytes(){ return null; }
public static Content NO_CONTENT = null;
}

View File

@@ -0,0 +1,81 @@
// Generated automatically from org.apache.hc.client5.http.fluent.Request for testing purposes
package org.apache.hc.client5.http.fluent;
import java.io.File;
import java.io.InputStream;
import java.net.URI;
import java.nio.charset.Charset;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
import org.apache.hc.client5.http.fluent.Response;
import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;
import org.apache.hc.core5.http.ContentType;
import org.apache.hc.core5.http.Header;
import org.apache.hc.core5.http.HttpEntity;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.HttpVersion;
import org.apache.hc.core5.http.Method;
import org.apache.hc.core5.http.NameValuePair;
import org.apache.hc.core5.util.Timeout;
public class Request
{
protected Request() {}
public Request addHeader(Header p0){ return null; }
public Request addHeader(String p0, String p1){ return null; }
public Request body(HttpEntity p0){ return null; }
public Request bodyByteArray(byte[] p0){ return null; }
public Request bodyByteArray(byte[] p0, ContentType p1){ return null; }
public Request bodyByteArray(byte[] p0, int p1, int p2){ return null; }
public Request bodyByteArray(byte[] p0, int p1, int p2, ContentType p3){ return null; }
public Request bodyFile(File p0, ContentType p1){ return null; }
public Request bodyForm(Iterable<? extends NameValuePair> p0){ return null; }
public Request bodyForm(Iterable<? extends NameValuePair> p0, Charset p1){ return null; }
public Request bodyForm(NameValuePair... p0){ return null; }
public Request bodyStream(InputStream p0){ return null; }
public Request bodyStream(InputStream p0, ContentType p1){ return null; }
public Request bodyString(String p0, ContentType p1){ return null; }
public Request connectTimeout(Timeout p0){ return null; }
public Request removeHeader(Header p0){ return null; }
public Request removeHeaders(String p0){ return null; }
public Request responseTimeout(Timeout p0){ return null; }
public Request setCacheControl(String p0){ return null; }
public Request setDate(Date p0){ return null; }
public Request setHeader(Header p0){ return null; }
public Request setHeader(String p0, String p1){ return null; }
public Request setHeaders(Header... p0){ return null; }
public Request setIfModifiedSince(Date p0){ return null; }
public Request setIfUnmodifiedSince(Date p0){ return null; }
public Request useExpectContinue(){ return null; }
public Request userAgent(String p0){ return null; }
public Request version(HttpVersion p0){ return null; }
public Request viaProxy(HttpHost p0){ return null; }
public Request viaProxy(String p0){ return null; }
public Response execute(){ return null; }
public Response execute(CloseableHttpClient p0){ return null; }
public String toString(){ return null; }
public static Locale DATE_LOCALE = null;
public static Request create(Method p0, URI p1){ return null; }
public static Request create(String p0, String p1){ return null; }
public static Request create(String p0, URI p1){ return null; }
public static Request delete(String p0){ return null; }
public static Request delete(URI p0){ return null; }
public static Request get(String p0){ return null; }
public static Request get(URI p0){ return null; }
public static Request head(String p0){ return null; }
public static Request head(URI p0){ return null; }
public static Request options(String p0){ return null; }
public static Request options(URI p0){ return null; }
public static Request patch(String p0){ return null; }
public static Request patch(URI p0){ return null; }
public static Request post(String p0){ return null; }
public static Request post(URI p0){ return null; }
public static Request put(String p0){ return null; }
public static Request put(URI p0){ return null; }
public static Request trace(String p0){ return null; }
public static Request trace(URI p0){ return null; }
public static String DATE_FORMAT = null;
public static TimeZone TIME_ZONE = null;
}

View File

@@ -0,0 +1,18 @@
// Generated automatically from org.apache.hc.client5.http.fluent.Response for testing purposes
package org.apache.hc.client5.http.fluent;
import java.io.File;
import org.apache.hc.client5.http.fluent.Content;
import org.apache.hc.core5.http.HttpResponse;
import org.apache.hc.core5.http.io.HttpClientResponseHandler;
public class Response
{
protected Response() {}
public <T> T handleResponse(HttpClientResponseHandler<T> p0){ return null; }
public Content returnContent(){ return null; }
public HttpResponse returnResponse(){ return null; }
public void discardContent(){}
public void saveContent(File p0){}
}

View File

@@ -0,0 +1,25 @@
// Generated automatically from org.apache.hc.client5.http.impl.classic.CloseableHttpClient for testing purposes
package org.apache.hc.client5.http.impl.classic;
import org.apache.hc.client5.http.classic.HttpClient;
import org.apache.hc.client5.http.impl.classic.CloseableHttpResponse;
import org.apache.hc.core5.http.ClassicHttpRequest;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.io.HttpClientResponseHandler;
import org.apache.hc.core5.http.protocol.HttpContext;
import org.apache.hc.core5.io.ModalCloseable;
abstract public class CloseableHttpClient implements HttpClient, ModalCloseable
{
protected abstract CloseableHttpResponse doExecute(HttpHost p0, ClassicHttpRequest p1, HttpContext p2);
public <T> T execute(ClassicHttpRequest p0, HttpContext p1, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> p2){ return null; }
public <T> T execute(ClassicHttpRequest p0, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> p1){ return null; }
public <T> T execute(HttpHost p0, ClassicHttpRequest p1, HttpContext p2, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> p3){ return null; }
public <T> T execute(HttpHost p0, ClassicHttpRequest p1, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> p2){ return null; }
public CloseableHttpClient(){}
public CloseableHttpResponse execute(ClassicHttpRequest p0){ return null; }
public CloseableHttpResponse execute(ClassicHttpRequest p0, HttpContext p1){ return null; }
public CloseableHttpResponse execute(HttpHost p0, ClassicHttpRequest p1){ return null; }
public CloseableHttpResponse execute(HttpHost p0, ClassicHttpRequest p1, HttpContext p2){ return null; }
}

View File

@@ -0,0 +1,43 @@
// Generated automatically from org.apache.hc.client5.http.impl.classic.CloseableHttpResponse for testing purposes
package org.apache.hc.client5.http.impl.classic;
import java.util.Iterator;
import java.util.Locale;
import org.apache.hc.core5.http.ClassicHttpResponse;
import org.apache.hc.core5.http.Header;
import org.apache.hc.core5.http.HttpEntity;
import org.apache.hc.core5.http.ProtocolVersion;
public class CloseableHttpResponse implements ClassicHttpResponse
{
protected CloseableHttpResponse() {}
public Header getFirstHeader(String p0){ return null; }
public Header getHeader(String p0){ return null; }
public Header getLastHeader(String p0){ return null; }
public Header[] getHeaders(){ return null; }
public Header[] getHeaders(String p0){ return null; }
public HttpEntity getEntity(){ return null; }
public Iterator<Header> headerIterator(){ return null; }
public Iterator<Header> headerIterator(String p0){ return null; }
public Locale getLocale(){ return null; }
public ProtocolVersion getVersion(){ return null; }
public String getReasonPhrase(){ return null; }
public String toString(){ return null; }
public boolean containsHeader(String p0){ return false; }
public boolean removeHeader(Header p0){ return false; }
public boolean removeHeaders(String p0){ return false; }
public int countHeaders(String p0){ return 0; }
public int getCode(){ return 0; }
public void addHeader(Header p0){}
public void addHeader(String p0, Object p1){}
public void close(){}
public void setCode(int p0){}
public void setEntity(HttpEntity p0){}
public void setHeader(Header p0){}
public void setHeader(String p0, Object p1){}
public void setHeaders(Header... p0){}
public void setLocale(Locale p0){}
public void setReasonPhrase(String p0){}
public void setVersion(ProtocolVersion p0){}
}

View File

@@ -0,0 +1,9 @@
// Generated automatically from org.apache.hc.core5.concurrent.Cancellable for testing purposes
package org.apache.hc.core5.concurrent;
public interface Cancellable
{
boolean cancel();
}

View File

@@ -0,0 +1,11 @@
// Generated automatically from org.apache.hc.core5.concurrent.CancellableDependency for testing purposes
package org.apache.hc.core5.concurrent;
import org.apache.hc.core5.concurrent.Cancellable;
public interface CancellableDependency extends Cancellable
{
boolean isCancelled();
void setDependency(Cancellable p0);
}

View File

@@ -0,0 +1,11 @@
// Generated automatically from org.apache.hc.core5.concurrent.FutureCallback for testing purposes
package org.apache.hc.core5.concurrent;
public interface FutureCallback<T>
{
void cancelled();
void completed(T p0);
void failed(Exception p0);
}

View File

@@ -0,0 +1,9 @@
// Generated automatically from org.apache.hc.core5.function.Callback for testing purposes
package org.apache.hc.core5.function;
public interface Callback<T>
{
void execute(T p0);
}

View File

@@ -0,0 +1,9 @@
// Generated automatically from org.apache.hc.core5.function.Decorator for testing purposes
package org.apache.hc.core5.function;
public interface Decorator<T>
{
T decorate(T p0);
}

View File

@@ -0,0 +1,9 @@
// Generated automatically from org.apache.hc.core5.function.Resolver for testing purposes
package org.apache.hc.core5.function;
public interface Resolver<I, O>
{
O resolve(I p0);
}

View File

@@ -1,33 +1,9 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.hc.core5.function.Supplier for testing purposes
package org.apache.hc.core5.function;
public interface Supplier<T> {
T get();
public interface Supplier<T>
{
T get();
}

View File

@@ -1,36 +1,10 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.hc.core5.http.ClassicHttpRequest for testing purposes
package org.apache.hc.core5.http;
/**
* 'Classic' {@link HttpRequest} message that can enclose {@link HttpEntity}.
*
* @since 5.0
*/
public interface ClassicHttpRequest extends HttpRequest, HttpEntityContainer {
import org.apache.hc.core5.http.HttpEntityContainer;
import org.apache.hc.core5.http.HttpRequest;
public interface ClassicHttpRequest extends HttpEntityContainer, HttpRequest
{
}

View File

@@ -1,33 +1,11 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.hc.core5.http.ClassicHttpResponse for testing purposes
package org.apache.hc.core5.http;
import java.io.Closeable;
import org.apache.hc.core5.http.HttpEntityContainer;
import org.apache.hc.core5.http.HttpResponse;
public interface ClassicHttpResponse extends HttpResponse, HttpEntityContainer, Closeable {
public interface ClassicHttpResponse extends Closeable, HttpEntityContainer, HttpResponse
{
}

View File

@@ -1,159 +1,60 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.hc.core5.http.ContentType for testing purposes
package org.apache.hc.core5.http;
import java.io.Serializable;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.charset.UnsupportedCharsetException;
public final class ContentType implements Serializable {
public static final ContentType APPLICATION_ATOM_XML = null;
public static final ContentType APPLICATION_FORM_URLENCODED = null;
public static final ContentType APPLICATION_JSON = null;
public static final ContentType APPLICATION_NDJSON = null;
public static final ContentType APPLICATION_OCTET_STREAM = null;
public static final ContentType APPLICATION_PDF = null;
public static final ContentType APPLICATION_SOAP_XML = null;
public static final ContentType APPLICATION_SVG_XML = null;
public static final ContentType APPLICATION_XHTML_XML = null;
public static final ContentType APPLICATION_XML = null;
public static final ContentType APPLICATION_PROBLEM_JSON = null;
public static final ContentType APPLICATION_PROBLEM_XML = null;
public static final ContentType APPLICATION_RSS_XML = null;
public static final ContentType IMAGE_BMP = null;
public static final ContentType IMAGE_GIF = null;
public static final ContentType IMAGE_JPEG = null;
public static final ContentType IMAGE_PNG = null;
public static final ContentType IMAGE_SVG = null;
public static final ContentType IMAGE_TIFF = null;
public static final ContentType IMAGE_WEBP = null;
public static final ContentType MULTIPART_FORM_DATA = null;
public static final ContentType MULTIPART_MIXED = null;
public static final ContentType MULTIPART_RELATED = null;
public static final ContentType TEXT_HTML = null;
public static final ContentType TEXT_MARKDOWN = null;
public static final ContentType TEXT_PLAIN = null;
public static final ContentType TEXT_XML = null;
public static final ContentType TEXT_EVENT_STREAM = null;
public static final ContentType WILDCARD = null;
private static final NameValuePair[] EMPTY_NAME_VALUE_PAIR_ARRAY = new NameValuePair[0];
public String getMimeType() {
return null;
}
public Charset getCharset() {
return null;
}
public String getParameter(final String name) {
return null;
}
@Override
public String toString() {
return null;
}
public static ContentType create(final String mimeType, final Charset charset) {
return null;
}
public static ContentType create(final String mimeType) {
return null;
}
public static ContentType create(
final String mimeType, final String charset) throws UnsupportedCharsetException {
return null;
}
public static ContentType create(
final String mimeType, final NameValuePair... params) throws UnsupportedCharsetException {
return null;
}
public static ContentType parse(final CharSequence s) throws UnsupportedCharsetException {
return null;
}
public static ContentType parseLenient(final CharSequence s) throws UnsupportedCharsetException {
return null;
}
public static ContentType getByMimeType(final String mimeType) {
return null;
}
public ContentType withCharset(final Charset charset) {
return null;
}
public ContentType withCharset(final String charset) {
return null;
}
public ContentType withParameters(
final NameValuePair... params) throws UnsupportedCharsetException {
return null;
}
public boolean isSameMimeType(final ContentType contentType) {
return false;
}
import org.apache.hc.core5.http.NameValuePair;
public class ContentType implements Serializable
{
protected ContentType() {}
public Charset getCharset(){ return null; }
public Charset getCharset(Charset p0){ return null; }
public ContentType withCharset(Charset p0){ return null; }
public ContentType withCharset(String p0){ return null; }
public ContentType withParameters(NameValuePair... p0){ return null; }
public String getMimeType(){ return null; }
public String getParameter(String p0){ return null; }
public String toString(){ return null; }
public boolean isSameMimeType(ContentType p0){ return false; }
public static Charset getCharset(ContentType p0, Charset p1){ return null; }
public static ContentType APPLICATION_ATOM_XML = null;
public static ContentType APPLICATION_FORM_URLENCODED = null;
public static ContentType APPLICATION_JSON = null;
public static ContentType APPLICATION_NDJSON = null;
public static ContentType APPLICATION_OCTET_STREAM = null;
public static ContentType APPLICATION_PDF = null;
public static ContentType APPLICATION_PROBLEM_JSON = null;
public static ContentType APPLICATION_PROBLEM_XML = null;
public static ContentType APPLICATION_RSS_XML = null;
public static ContentType APPLICATION_SOAP_XML = null;
public static ContentType APPLICATION_SVG_XML = null;
public static ContentType APPLICATION_XHTML_XML = null;
public static ContentType APPLICATION_XML = null;
public static ContentType DEFAULT_BINARY = null;
public static ContentType DEFAULT_TEXT = null;
public static ContentType IMAGE_BMP = null;
public static ContentType IMAGE_GIF = null;
public static ContentType IMAGE_JPEG = null;
public static ContentType IMAGE_PNG = null;
public static ContentType IMAGE_SVG = null;
public static ContentType IMAGE_TIFF = null;
public static ContentType IMAGE_WEBP = null;
public static ContentType MULTIPART_FORM_DATA = null;
public static ContentType MULTIPART_MIXED = null;
public static ContentType MULTIPART_RELATED = null;
public static ContentType TEXT_EVENT_STREAM = null;
public static ContentType TEXT_HTML = null;
public static ContentType TEXT_MARKDOWN = null;
public static ContentType TEXT_PLAIN = null;
public static ContentType TEXT_XML = null;
public static ContentType WILDCARD = null;
public static ContentType create(String p0){ return null; }
public static ContentType create(String p0, Charset p1){ return null; }
public static ContentType create(String p0, NameValuePair... p1){ return null; }
public static ContentType create(String p0, String p1){ return null; }
public static ContentType getByMimeType(String p0){ return null; }
public static ContentType parse(CharSequence p0){ return null; }
public static ContentType parseLenient(CharSequence p0){ return null; }
}

View File

@@ -1,43 +1,14 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.hc.core5.http.EntityDetails for testing purposes
package org.apache.hc.core5.http;
import java.util.Set;
public interface EntityDetails {
long getContentLength();
String getContentType();
String getContentEncoding();
boolean isChunked();
public interface EntityDetails
{
Set<String> getTrailerNames();
String getContentEncoding();
String getContentType();
boolean isChunked();
long getContentLength();
}

View File

@@ -1,39 +1,10 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.hc.core5.http.Header for testing purposes
package org.apache.hc.core5.http;
/**
* Represents an HTTP header field consisting of a field name and a field
* value.
*
* @since 4.0
*/
public interface Header extends NameValuePair {
boolean isSensitive();
import org.apache.hc.core5.http.NameValuePair;
public interface Header extends NameValuePair
{
boolean isSensitive();
}

View File

@@ -1,48 +1,20 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.hc.core5.http.HttpEntity for testing purposes
package org.apache.hc.core5.http;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import org.apache.hc.core5.function.Supplier;
import org.apache.hc.core5.http.EntityDetails;
import org.apache.hc.core5.http.Header;
public interface HttpEntity extends EntityDetails, Closeable {
boolean isRepeatable();
InputStream getContent() throws IOException, UnsupportedOperationException;
void writeTo(OutputStream outStream) throws IOException;
boolean isStreaming();
public interface HttpEntity extends Closeable, EntityDetails
{
InputStream getContent();
Supplier<List<? extends Header>> getTrailers();
boolean isRepeatable();
boolean isStreaming();
void writeTo(OutputStream p0);
}

View File

@@ -1,40 +1,11 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.hc.core5.http.HttpEntityContainer for testing purposes
package org.apache.hc.core5.http;
/**
* Contains an {@link HttpEntity}.
*
* @since 5.0
*/
public interface HttpEntityContainer {
import org.apache.hc.core5.http.HttpEntity;
public interface HttpEntityContainer
{
HttpEntity getEntity();
void setEntity(HttpEntity entity);
void setEntity(HttpEntity p0);
}

View File

@@ -0,0 +1,37 @@
// Generated automatically from org.apache.hc.core5.http.HttpHost for testing purposes
package org.apache.hc.core5.http;
import java.io.Serializable;
import java.net.InetAddress;
import java.net.URI;
import org.apache.hc.core5.http.URIScheme;
import org.apache.hc.core5.net.NamedEndpoint;
import org.apache.hc.core5.net.URIAuthority;
public class HttpHost implements NamedEndpoint, Serializable
{
protected HttpHost() {}
public HttpHost(InetAddress p0){}
public HttpHost(InetAddress p0, int p1){}
public HttpHost(String p0){}
public HttpHost(String p0, InetAddress p1, String p2, int p3){}
public HttpHost(String p0, InetAddress p1, int p2){}
public HttpHost(String p0, NamedEndpoint p1){}
public HttpHost(String p0, String p1){}
public HttpHost(String p0, String p1, int p2){}
public HttpHost(String p0, int p1){}
public HttpHost(URIAuthority p0){}
public InetAddress getAddress(){ return null; }
public String getHostName(){ return null; }
public String getSchemeName(){ return null; }
public String toHostString(){ return null; }
public String toString(){ return null; }
public String toURI(){ return null; }
public boolean equals(Object p0){ return false; }
public int getPort(){ return 0; }
public int hashCode(){ return 0; }
public static HttpHost create(String p0){ return null; }
public static HttpHost create(URI p0){ return null; }
public static URIScheme DEFAULT_SCHEME = null;
}

View File

@@ -1,55 +1,20 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.hc.core5.http.HttpMessage for testing purposes
package org.apache.hc.core5.http;
/**
* HTTP messages consist of requests from client to server and responses
* from server to client.
*
* @since 4.0
*/
public interface HttpMessage extends MessageHeaders {
void setVersion(ProtocolVersion version);
import org.apache.hc.core5.http.Header;
import org.apache.hc.core5.http.MessageHeaders;
import org.apache.hc.core5.http.ProtocolVersion;
public interface HttpMessage extends MessageHeaders
{
ProtocolVersion getVersion();
void addHeader(Header header);
void addHeader(String name, Object value);
void setHeader(Header header);
void setHeader(String name, Object value);
void setHeaders(Header... headers);
boolean removeHeader(Header header);
boolean removeHeaders(String name);
boolean removeHeader(Header p0);
boolean removeHeaders(String p0);
void addHeader(Header p0);
void addHeader(String p0, Object p1);
void setHeader(Header p0);
void setHeader(String p0, Object p1);
void setHeaders(Header... p0);
void setVersion(ProtocolVersion p0);
}

View File

@@ -1,56 +1,21 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.hc.core5.http.HttpRequest for testing purposes
package org.apache.hc.core5.http;
import java.net.URI;
import java.net.URISyntaxException;
import org.apache.hc.core5.http.HttpMessage;
import org.apache.hc.core5.net.URIAuthority;
public interface HttpRequest extends HttpMessage {
public interface HttpRequest extends HttpMessage
{
String getMethod();
String getPath();
void setPath(String path);
String getScheme();
void setScheme(String scheme);
URIAuthority getAuthority();
void setAuthority(URIAuthority authority);
String getRequestUri();
URI getUri() throws URISyntaxException;
void setUri(final URI requestUri);
String getScheme();
URI getUri();
URIAuthority getAuthority();
void setAuthority(URIAuthority p0);
void setPath(String p0);
void setScheme(String p0);
void setUri(URI p0);
}

View File

@@ -0,0 +1,12 @@
// Generated automatically from org.apache.hc.core5.http.HttpRequestFactory for testing purposes
package org.apache.hc.core5.http;
import java.net.URI;
import org.apache.hc.core5.http.HttpRequest;
public interface HttpRequestFactory<T extends HttpRequest>
{
T newHttpRequest(String p0, String p1);
T newHttpRequest(String p0, URI p1);
}

View File

@@ -1,45 +1,16 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.hc.core5.http.HttpResponse for testing purposes
package org.apache.hc.core5.http;
import java.util.Locale;
import org.apache.hc.core5.http.HttpMessage;
public interface HttpResponse extends HttpMessage {
int getCode();
void setCode(int code);
String getReasonPhrase();
void setReasonPhrase(String reason);
public interface HttpResponse extends HttpMessage
{
Locale getLocale();
void setLocale(Locale loc);
String getReasonPhrase();
int getCode();
void setCode(int p0);
void setLocale(Locale p0);
void setReasonPhrase(String p0);
}

View File

@@ -0,0 +1,20 @@
// Generated automatically from org.apache.hc.core5.http.HttpVersion for testing purposes
package org.apache.hc.core5.http;
import org.apache.hc.core5.http.ProtocolVersion;
public class HttpVersion extends ProtocolVersion
{
protected HttpVersion() {}
public HttpVersion(int p0, int p1){}
public static HttpVersion DEFAULT = null;
public static HttpVersion HTTP_0_9 = null;
public static HttpVersion HTTP_1_0 = null;
public static HttpVersion HTTP_1_1 = null;
public static HttpVersion HTTP_2 = null;
public static HttpVersion HTTP_2_0 = null;
public static HttpVersion get(int p0, int p1){ return null; }
public static HttpVersion[] ALL = null;
public static String HTTP = null;
}

View File

@@ -1,51 +1,19 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.hc.core5.http.MessageHeaders for testing purposes
package org.apache.hc.core5.http;
import java.util.Iterator;
import org.apache.hc.core5.http.Header;
public interface MessageHeaders {
boolean containsHeader(String name);
int countHeaders(String name);
Header getFirstHeader(String name);
Header getHeader(String name) throws ProtocolException;
public interface MessageHeaders
{
Header getFirstHeader(String p0);
Header getHeader(String p0);
Header getLastHeader(String p0);
Header[] getHeaders();
Header[] getHeaders(String name);
Header getLastHeader(String name);
Header[] getHeaders(String p0);
Iterator<Header> headerIterator();
Iterator<Header> headerIterator(String name);
Iterator<Header> headerIterator(String p0);
boolean containsHeader(String p0);
int countHeaders(String p0);
}

View File

@@ -0,0 +1,16 @@
// Generated automatically from org.apache.hc.core5.http.Method for testing purposes
package org.apache.hc.core5.http;
public enum Method
{
CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE;
private Method() {}
public boolean isIdempotent(){ return false; }
public boolean isSafe(){ return false; }
public boolean isSame(String p0){ return false; }
public static Method normalizedValueOf(String p0){ return null; }
public static boolean isIdempotent(String p0){ return false; }
public static boolean isSafe(String p0){ return false; }
}

View File

@@ -1,40 +1,10 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.hc.core5.http.NameValuePair for testing purposes
package org.apache.hc.core5.http;
/**
* A name-value pair parameter used as an element of HTTP messages.
*
* @since 4.0
*/
public interface NameValuePair {
public interface NameValuePair
{
String getName();
String getValue();
}

View File

@@ -1,87 +1,23 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.hc.core5.http.ProtocolVersion for testing purposes
package org.apache.hc.core5.http;
import java.io.Serializable;
public class ProtocolVersion implements Serializable {
public ProtocolVersion(final String protocol, final int major, final int minor) {
}
public final String getProtocol() {
return null;
}
public final int getMajor() {
return 0;
}
public final int getMinor() {
return 0;
}
@Override
public final int hashCode() {
return 0;
}
public final boolean equals(final int major, final int minor) {
return false;
}
@Override
public final boolean equals(final Object obj) {
return false;
}
public String format() {
return null;
}
public boolean isComparable(final ProtocolVersion that) {
return false;
}
public int compareToVersion(final ProtocolVersion that) {
return 0;
}
public final boolean greaterEquals(final ProtocolVersion version) {
return false;
}
public final boolean lessEquals(final ProtocolVersion version) {
return false;
}
@Override
public String toString() {
return null;
}
public class ProtocolVersion implements Serializable
{
protected ProtocolVersion() {}
public ProtocolVersion(String p0, int p1, int p2){}
public String format(){ return null; }
public String toString(){ return null; }
public boolean isComparable(ProtocolVersion p0){ return false; }
public final String getProtocol(){ return null; }
public final boolean equals(Object p0){ return false; }
public final boolean equals(int p0, int p1){ return false; }
public final boolean greaterEquals(ProtocolVersion p0){ return false; }
public final boolean lessEquals(ProtocolVersion p0){ return false; }
public final int getMajor(){ return 0; }
public final int getMinor(){ return 0; }
public final int hashCode(){ return 0; }
public int compareToVersion(ProtocolVersion p0){ return 0; }
}

View File

@@ -0,0 +1,12 @@
// Generated automatically from org.apache.hc.core5.http.SocketModalCloseable for testing purposes
package org.apache.hc.core5.http;
import org.apache.hc.core5.io.ModalCloseable;
import org.apache.hc.core5.util.Timeout;
public interface SocketModalCloseable extends ModalCloseable
{
Timeout getSocketTimeout();
void setSocketTimeout(Timeout p0);
}

View File

@@ -0,0 +1,14 @@
// Generated automatically from org.apache.hc.core5.http.URIScheme for testing purposes
package org.apache.hc.core5.http;
public enum URIScheme
{
HTTP, HTTPS;
private URIScheme() {}
public String getId(){ return null; }
public String toString(){ return null; }
public boolean same(String p0){ return false; }
public final String id = null;
}

View File

@@ -0,0 +1,16 @@
// Generated automatically from org.apache.hc.core5.http.impl.bootstrap.AbstractConnectionInitiatorBase for testing purposes
package org.apache.hc.core5.http.impl.bootstrap;
import java.net.SocketAddress;
import java.util.concurrent.Future;
import org.apache.hc.core5.concurrent.FutureCallback;
import org.apache.hc.core5.net.NamedEndpoint;
import org.apache.hc.core5.reactor.ConnectionInitiator;
import org.apache.hc.core5.reactor.IOSession;
import org.apache.hc.core5.util.Timeout;
abstract class AbstractConnectionInitiatorBase implements ConnectionInitiator
{
public final Future<IOSession> connect(NamedEndpoint p0, SocketAddress p1, SocketAddress p2, Timeout p3, Object p4, FutureCallback<IOSession> p5){ return null; }
}

View File

@@ -0,0 +1,34 @@
// Generated automatically from org.apache.hc.core5.http.impl.bootstrap.AsyncRequester for testing purposes
package org.apache.hc.core5.http.impl.bootstrap;
import java.net.InetSocketAddress;
import java.util.concurrent.Future;
import org.apache.hc.core5.concurrent.FutureCallback;
import org.apache.hc.core5.function.Callback;
import org.apache.hc.core5.function.Decorator;
import org.apache.hc.core5.function.Resolver;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.impl.bootstrap.AbstractConnectionInitiatorBase;
import org.apache.hc.core5.io.CloseMode;
import org.apache.hc.core5.reactor.IOEventHandlerFactory;
import org.apache.hc.core5.reactor.IOReactorConfig;
import org.apache.hc.core5.reactor.IOReactorService;
import org.apache.hc.core5.reactor.IOReactorStatus;
import org.apache.hc.core5.reactor.IOSession;
import org.apache.hc.core5.reactor.IOSessionListener;
import org.apache.hc.core5.util.TimeValue;
import org.apache.hc.core5.util.Timeout;
public class AsyncRequester extends AbstractConnectionInitiatorBase implements IOReactorService
{
protected AsyncRequester() {}
public AsyncRequester(IOEventHandlerFactory p0, IOReactorConfig p1, Decorator<IOSession> p2, Callback<Exception> p3, IOSessionListener p4, Callback<IOSession> p5, Resolver<HttpHost, InetSocketAddress> p6){}
public Future<IOSession> requestSession(HttpHost p0, Timeout p1, Object p2, FutureCallback<IOSession> p3){ return null; }
public IOReactorStatus getStatus(){ return null; }
public void awaitShutdown(TimeValue p0){}
public void close(){}
public void close(CloseMode p0){}
public void initiateShutdown(){}
public void start(){}
}

View File

@@ -0,0 +1,59 @@
// Generated automatically from org.apache.hc.core5.http.impl.bootstrap.HttpAsyncRequester for testing purposes
package org.apache.hc.core5.http.impl.bootstrap;
import java.util.Set;
import java.util.concurrent.Future;
import org.apache.hc.core5.concurrent.FutureCallback;
import org.apache.hc.core5.function.Callback;
import org.apache.hc.core5.function.Decorator;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.impl.bootstrap.AsyncRequester;
import org.apache.hc.core5.http.nio.AsyncClientEndpoint;
import org.apache.hc.core5.http.nio.AsyncClientExchangeHandler;
import org.apache.hc.core5.http.nio.AsyncPushConsumer;
import org.apache.hc.core5.http.nio.AsyncRequestProducer;
import org.apache.hc.core5.http.nio.AsyncResponseConsumer;
import org.apache.hc.core5.http.nio.HandlerFactory;
import org.apache.hc.core5.http.nio.ResourceHolder;
import org.apache.hc.core5.http.nio.ssl.TlsStrategy;
import org.apache.hc.core5.http.protocol.HttpContext;
import org.apache.hc.core5.io.ModalCloseable;
import org.apache.hc.core5.net.NamedEndpoint;
import org.apache.hc.core5.pool.ConnPoolControl;
import org.apache.hc.core5.pool.ManagedConnPool;
import org.apache.hc.core5.pool.PoolStats;
import org.apache.hc.core5.reactor.IOEventHandlerFactory;
import org.apache.hc.core5.reactor.IOReactorConfig;
import org.apache.hc.core5.reactor.IOSession;
import org.apache.hc.core5.reactor.IOSessionListener;
import org.apache.hc.core5.reactor.ProtocolIOSession;
import org.apache.hc.core5.util.TimeValue;
import org.apache.hc.core5.util.Timeout;
public class HttpAsyncRequester extends AsyncRequester implements ConnPoolControl<HttpHost>
{
protected HttpAsyncRequester() {}
protected Future<AsyncClientEndpoint> doConnect(HttpHost p0, Timeout p1, Object p2, FutureCallback<AsyncClientEndpoint> p3){ return null; }
protected void doTlsUpgrade(ProtocolIOSession p0, NamedEndpoint p1, FutureCallback<ProtocolIOSession> p2){}
public Future<AsyncClientEndpoint> connect(HttpHost p0, Timeout p1){ return null; }
public Future<AsyncClientEndpoint> connect(HttpHost p0, Timeout p1, Object p2, FutureCallback<AsyncClientEndpoint> p3){ return null; }
public HttpAsyncRequester(IOReactorConfig p0, IOEventHandlerFactory p1, Decorator<IOSession> p2, Callback<Exception> p3, IOSessionListener p4, ManagedConnPool<HttpHost, IOSession> p5){}
public HttpAsyncRequester(IOReactorConfig p0, IOEventHandlerFactory p1, Decorator<IOSession> p2, Callback<Exception> p3, IOSessionListener p4, ManagedConnPool<HttpHost, IOSession> p5, TlsStrategy p6, Timeout p7){}
public PoolStats getStats(HttpHost p0){ return null; }
public PoolStats getTotalStats(){ return null; }
public Set<HttpHost> getRoutes(){ return null; }
public final <T> java.util.concurrent.Future<T> execute(AsyncRequestProducer p0, org.apache.hc.core5.http.nio.AsyncResponseConsumer<T> p1, HandlerFactory<AsyncPushConsumer> p2, Timeout p3, HttpContext p4, org.apache.hc.core5.concurrent.FutureCallback<T> p5){ return null; }
public final <T> java.util.concurrent.Future<T> execute(AsyncRequestProducer p0, org.apache.hc.core5.http.nio.AsyncResponseConsumer<T> p1, Timeout p2, HttpContext p3, org.apache.hc.core5.concurrent.FutureCallback<T> p4){ return null; }
public final <T> java.util.concurrent.Future<T> execute(AsyncRequestProducer p0, org.apache.hc.core5.http.nio.AsyncResponseConsumer<T> p1, Timeout p2, org.apache.hc.core5.concurrent.FutureCallback<T> p3){ return null; }
public int getDefaultMaxPerRoute(){ return 0; }
public int getMaxPerRoute(HttpHost p0){ return 0; }
public int getMaxTotal(){ return 0; }
public void closeExpired(){}
public void closeIdle(TimeValue p0){}
public void execute(AsyncClientExchangeHandler p0, HandlerFactory<AsyncPushConsumer> p1, Timeout p2, HttpContext p3){}
public void execute(AsyncClientExchangeHandler p0, Timeout p1, HttpContext p2){}
public void setDefaultMaxPerRoute(int p0){}
public void setMaxPerRoute(HttpHost p0, int p1){}
public void setMaxTotal(int p0){}
}

View File

@@ -0,0 +1,16 @@
// Generated automatically from org.apache.hc.core5.http.impl.io.DefaultClassicHttpRequestFactory for testing purposes
package org.apache.hc.core5.http.impl.io;
import java.net.URI;
import org.apache.hc.core5.http.ClassicHttpRequest;
import org.apache.hc.core5.http.HttpRequest;
import org.apache.hc.core5.http.HttpRequestFactory;
public class DefaultClassicHttpRequestFactory implements HttpRequestFactory<ClassicHttpRequest>
{
public ClassicHttpRequest newHttpRequest(String p0, String p1){ return null; }
public ClassicHttpRequest newHttpRequest(String p0, URI p1){ return null; }
public DefaultClassicHttpRequestFactory(){}
public static DefaultClassicHttpRequestFactory INSTANCE = null;
}

View File

@@ -0,0 +1,15 @@
// Generated automatically from org.apache.hc.core5.http.impl.nio.DefaultHttpRequestFactory for testing purposes
package org.apache.hc.core5.http.impl.nio;
import java.net.URI;
import org.apache.hc.core5.http.HttpRequest;
import org.apache.hc.core5.http.HttpRequestFactory;
public class DefaultHttpRequestFactory implements HttpRequestFactory<HttpRequest>
{
public DefaultHttpRequestFactory(){}
public HttpRequest newHttpRequest(String p0, String p1){ return null; }
public HttpRequest newHttpRequest(String p0, URI p1){ return null; }
public static DefaultHttpRequestFactory INSTANCE = null;
}

View File

@@ -0,0 +1,10 @@
// Generated automatically from org.apache.hc.core5.http.io.HttpClientResponseHandler for testing purposes
package org.apache.hc.core5.http.io;
import org.apache.hc.core5.http.ClassicHttpResponse;
public interface HttpClientResponseHandler<T>
{
T handleResponse(ClassicHttpResponse p0);
}

View File

@@ -0,0 +1,73 @@
// Generated automatically from org.apache.hc.core5.http.io.support.ClassicRequestBuilder for testing purposes
package org.apache.hc.core5.http.io.support;
import java.net.URI;
import java.nio.charset.Charset;
import org.apache.hc.core5.http.ClassicHttpRequest;
import org.apache.hc.core5.http.ContentType;
import org.apache.hc.core5.http.Header;
import org.apache.hc.core5.http.HttpEntity;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.NameValuePair;
import org.apache.hc.core5.http.ProtocolVersion;
import org.apache.hc.core5.http.support.AbstractRequestBuilder;
import org.apache.hc.core5.net.URIAuthority;
public class ClassicRequestBuilder extends AbstractRequestBuilder<ClassicHttpRequest>
{
protected ClassicRequestBuilder() {}
protected void digest(ClassicHttpRequest p0){}
public ClassicHttpRequest build(){ return null; }
public ClassicRequestBuilder addHeader(Header p0){ return null; }
public ClassicRequestBuilder addHeader(String p0, String p1){ return null; }
public ClassicRequestBuilder addParameter(NameValuePair p0){ return null; }
public ClassicRequestBuilder addParameter(String p0, String p1){ return null; }
public ClassicRequestBuilder addParameters(NameValuePair... p0){ return null; }
public ClassicRequestBuilder removeHeader(Header p0){ return null; }
public ClassicRequestBuilder removeHeaders(String p0){ return null; }
public ClassicRequestBuilder setAbsoluteRequestUri(boolean p0){ return null; }
public ClassicRequestBuilder setAuthority(URIAuthority p0){ return null; }
public ClassicRequestBuilder setCharset(Charset p0){ return null; }
public ClassicRequestBuilder setEntity(HttpEntity p0){ return null; }
public ClassicRequestBuilder setEntity(String p0){ return null; }
public ClassicRequestBuilder setEntity(String p0, ContentType p1){ return null; }
public ClassicRequestBuilder setEntity(byte[] p0, ContentType p1){ return null; }
public ClassicRequestBuilder setHeader(Header p0){ return null; }
public ClassicRequestBuilder setHeader(String p0, String p1){ return null; }
public ClassicRequestBuilder setHeaders(Header... p0){ return null; }
public ClassicRequestBuilder setHttpHost(HttpHost p0){ return null; }
public ClassicRequestBuilder setPath(String p0){ return null; }
public ClassicRequestBuilder setScheme(String p0){ return null; }
public ClassicRequestBuilder setUri(String p0){ return null; }
public ClassicRequestBuilder setUri(URI p0){ return null; }
public ClassicRequestBuilder setVersion(ProtocolVersion p0){ return null; }
public HttpEntity getEntity(){ return null; }
public String toString(){ return null; }
public static ClassicRequestBuilder copy(ClassicHttpRequest p0){ return null; }
public static ClassicRequestBuilder create(String p0){ return null; }
public static ClassicRequestBuilder delete(){ return null; }
public static ClassicRequestBuilder delete(String p0){ return null; }
public static ClassicRequestBuilder delete(URI p0){ return null; }
public static ClassicRequestBuilder get(){ return null; }
public static ClassicRequestBuilder get(String p0){ return null; }
public static ClassicRequestBuilder get(URI p0){ return null; }
public static ClassicRequestBuilder head(){ return null; }
public static ClassicRequestBuilder head(String p0){ return null; }
public static ClassicRequestBuilder head(URI p0){ return null; }
public static ClassicRequestBuilder options(){ return null; }
public static ClassicRequestBuilder options(String p0){ return null; }
public static ClassicRequestBuilder options(URI p0){ return null; }
public static ClassicRequestBuilder patch(){ return null; }
public static ClassicRequestBuilder patch(String p0){ return null; }
public static ClassicRequestBuilder patch(URI p0){ return null; }
public static ClassicRequestBuilder post(){ return null; }
public static ClassicRequestBuilder post(String p0){ return null; }
public static ClassicRequestBuilder post(URI p0){ return null; }
public static ClassicRequestBuilder put(){ return null; }
public static ClassicRequestBuilder put(String p0){ return null; }
public static ClassicRequestBuilder put(URI p0){ return null; }
public static ClassicRequestBuilder trace(){ return null; }
public static ClassicRequestBuilder trace(String p0){ return null; }
public static ClassicRequestBuilder trace(URI p0){ return null; }
}

View File

@@ -0,0 +1,33 @@
// Generated automatically from org.apache.hc.core5.http.message.AbstractMessageWrapper for testing purposes
package org.apache.hc.core5.http.message;
import java.util.Iterator;
import org.apache.hc.core5.http.Header;
import org.apache.hc.core5.http.HttpMessage;
import org.apache.hc.core5.http.ProtocolVersion;
abstract public class AbstractMessageWrapper implements HttpMessage
{
protected AbstractMessageWrapper() {}
public AbstractMessageWrapper(HttpMessage p0){}
public Header getFirstHeader(String p0){ return null; }
public Header getHeader(String p0){ return null; }
public Header getLastHeader(String p0){ return null; }
public Header[] getHeaders(){ return null; }
public Header[] getHeaders(String p0){ return null; }
public Iterator<Header> headerIterator(){ return null; }
public Iterator<Header> headerIterator(String p0){ return null; }
public ProtocolVersion getVersion(){ return null; }
public String toString(){ return null; }
public boolean containsHeader(String p0){ return false; }
public boolean removeHeader(Header p0){ return false; }
public boolean removeHeaders(String p0){ return false; }
public int countHeaders(String p0){ return 0; }
public void addHeader(Header p0){}
public void addHeader(String p0, Object p1){}
public void setHeader(Header p0){}
public void setHeader(String p0, Object p1){}
public void setHeaders(Header... p0){}
public void setVersion(ProtocolVersion p0){}
}

View File

@@ -0,0 +1,25 @@
// Generated automatically from org.apache.hc.core5.http.message.BasicClassicHttpRequest for testing purposes
package org.apache.hc.core5.http.message;
import java.net.URI;
import org.apache.hc.core5.http.ClassicHttpRequest;
import org.apache.hc.core5.http.HttpEntity;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.Method;
import org.apache.hc.core5.http.message.BasicHttpRequest;
import org.apache.hc.core5.net.URIAuthority;
public class BasicClassicHttpRequest extends BasicHttpRequest implements ClassicHttpRequest
{
protected BasicClassicHttpRequest() {}
public BasicClassicHttpRequest(Method p0, HttpHost p1, String p2){}
public BasicClassicHttpRequest(Method p0, String p1){}
public BasicClassicHttpRequest(Method p0, URI p1){}
public BasicClassicHttpRequest(String p0, HttpHost p1, String p2){}
public BasicClassicHttpRequest(String p0, String p1){}
public BasicClassicHttpRequest(String p0, String p1, URIAuthority p2, String p3){}
public BasicClassicHttpRequest(String p0, URI p1){}
public HttpEntity getEntity(){ return null; }
public void setEntity(HttpEntity p0){}
}

View File

@@ -0,0 +1,39 @@
// Generated automatically from org.apache.hc.core5.http.message.BasicHttpRequest for testing purposes
package org.apache.hc.core5.http.message;
import java.net.URI;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.HttpRequest;
import org.apache.hc.core5.http.Method;
import org.apache.hc.core5.http.ProtocolVersion;
import org.apache.hc.core5.http.message.HeaderGroup;
import org.apache.hc.core5.net.URIAuthority;
public class BasicHttpRequest extends HeaderGroup implements HttpRequest
{
protected BasicHttpRequest() {}
public BasicHttpRequest(Method p0, HttpHost p1, String p2){}
public BasicHttpRequest(Method p0, String p1){}
public BasicHttpRequest(Method p0, URI p1){}
public BasicHttpRequest(String p0, HttpHost p1, String p2){}
public BasicHttpRequest(String p0, String p1){}
public BasicHttpRequest(String p0, String p1, URIAuthority p2, String p3){}
public BasicHttpRequest(String p0, URI p1){}
public ProtocolVersion getVersion(){ return null; }
public String getMethod(){ return null; }
public String getPath(){ return null; }
public String getRequestUri(){ return null; }
public String getScheme(){ return null; }
public String toString(){ return null; }
public URI getUri(){ return null; }
public URIAuthority getAuthority(){ return null; }
public void addHeader(String p0, Object p1){}
public void setAbsoluteRequestUri(boolean p0){}
public void setAuthority(URIAuthority p0){}
public void setHeader(String p0, Object p1){}
public void setPath(String p0){}
public void setScheme(String p0){}
public void setUri(URI p0){}
public void setVersion(ProtocolVersion p0){}
}

View File

@@ -0,0 +1,31 @@
// Generated automatically from org.apache.hc.core5.http.message.HeaderGroup for testing purposes
package org.apache.hc.core5.http.message;
import java.io.Serializable;
import java.util.Iterator;
import org.apache.hc.core5.http.Header;
import org.apache.hc.core5.http.MessageHeaders;
public class HeaderGroup implements MessageHeaders, Serializable
{
public Header getCondensedHeader(String p0){ return null; }
public Header getFirstHeader(String p0){ return null; }
public Header getHeader(String p0){ return null; }
public Header getLastHeader(String p0){ return null; }
public HeaderGroup(){}
public Header[] getHeaders(){ return null; }
public Header[] getHeaders(String p0){ return null; }
public Iterator<Header> headerIterator(){ return null; }
public Iterator<Header> headerIterator(String p0){ return null; }
public String toString(){ return null; }
public boolean containsHeader(String p0){ return false; }
public boolean removeHeader(Header p0){ return false; }
public boolean removeHeaders(Header p0){ return false; }
public boolean removeHeaders(String p0){ return false; }
public int countHeaders(String p0){ return 0; }
public void addHeader(Header p0){}
public void clear(){}
public void setHeader(Header p0){}
public void setHeaders(Header... p0){}
}

View File

@@ -0,0 +1,24 @@
// Generated automatically from org.apache.hc.core5.http.message.HttpRequestWrapper for testing purposes
package org.apache.hc.core5.http.message;
import java.net.URI;
import org.apache.hc.core5.http.HttpRequest;
import org.apache.hc.core5.http.message.AbstractMessageWrapper;
import org.apache.hc.core5.net.URIAuthority;
public class HttpRequestWrapper extends AbstractMessageWrapper implements HttpRequest
{
protected HttpRequestWrapper() {}
public HttpRequestWrapper(HttpRequest p0){}
public String getMethod(){ return null; }
public String getPath(){ return null; }
public String getRequestUri(){ return null; }
public String getScheme(){ return null; }
public URI getUri(){ return null; }
public URIAuthority getAuthority(){ return null; }
public void setAuthority(URIAuthority p0){}
public void setPath(String p0){}
public void setScheme(String p0){}
public void setUri(URI p0){}
}

View File

@@ -0,0 +1,26 @@
// Generated automatically from org.apache.hc.core5.http.nio.AsyncClientEndpoint for testing purposes
package org.apache.hc.core5.http.nio;
import java.util.concurrent.Future;
import org.apache.hc.core5.concurrent.FutureCallback;
import org.apache.hc.core5.http.nio.AsyncClientExchangeHandler;
import org.apache.hc.core5.http.nio.AsyncPushConsumer;
import org.apache.hc.core5.http.nio.AsyncRequestProducer;
import org.apache.hc.core5.http.nio.AsyncResponseConsumer;
import org.apache.hc.core5.http.nio.HandlerFactory;
import org.apache.hc.core5.http.nio.ResourceHolder;
import org.apache.hc.core5.http.protocol.HttpContext;
abstract public class AsyncClientEndpoint
{
public AsyncClientEndpoint(){}
public abstract boolean isConnected();
public abstract void execute(AsyncClientExchangeHandler p0, HandlerFactory<AsyncPushConsumer> p1, HttpContext p2);
public abstract void releaseAndDiscard();
public abstract void releaseAndReuse();
public final <T> java.util.concurrent.Future<T> execute(AsyncRequestProducer p0, org.apache.hc.core5.http.nio.AsyncResponseConsumer<T> p1, HandlerFactory<AsyncPushConsumer> p2, HttpContext p3, org.apache.hc.core5.concurrent.FutureCallback<T> p4){ return null; }
public final <T> java.util.concurrent.Future<T> execute(AsyncRequestProducer p0, org.apache.hc.core5.http.nio.AsyncResponseConsumer<T> p1, HttpContext p2, org.apache.hc.core5.concurrent.FutureCallback<T> p3){ return null; }
public final <T> java.util.concurrent.Future<T> execute(AsyncRequestProducer p0, org.apache.hc.core5.http.nio.AsyncResponseConsumer<T> p1, org.apache.hc.core5.concurrent.FutureCallback<T> p2){ return null; }
public void execute(AsyncClientExchangeHandler p0, HttpContext p1){}
}

View File

@@ -0,0 +1,17 @@
// Generated automatically from org.apache.hc.core5.http.nio.AsyncClientExchangeHandler for testing purposes
package org.apache.hc.core5.http.nio;
import org.apache.hc.core5.http.EntityDetails;
import org.apache.hc.core5.http.HttpResponse;
import org.apache.hc.core5.http.nio.AsyncDataExchangeHandler;
import org.apache.hc.core5.http.nio.RequestChannel;
import org.apache.hc.core5.http.protocol.HttpContext;
public interface AsyncClientExchangeHandler extends AsyncDataExchangeHandler
{
void cancel();
void consumeInformation(HttpResponse p0, HttpContext p1);
void consumeResponse(HttpResponse p0, EntityDetails p1, HttpContext p2);
void produceRequest(RequestChannel p0, HttpContext p1);
}

View File

@@ -0,0 +1,16 @@
// Generated automatically from org.apache.hc.core5.http.nio.AsyncDataConsumer for testing purposes
package org.apache.hc.core5.http.nio;
import java.nio.ByteBuffer;
import java.util.List;
import org.apache.hc.core5.http.Header;
import org.apache.hc.core5.http.nio.CapacityChannel;
import org.apache.hc.core5.http.nio.ResourceHolder;
public interface AsyncDataConsumer extends ResourceHolder
{
void consume(ByteBuffer p0);
void streamEnd(List<? extends Header> p0);
void updateCapacity(CapacityChannel p0);
}

View File

@@ -0,0 +1,11 @@
// Generated automatically from org.apache.hc.core5.http.nio.AsyncDataExchangeHandler for testing purposes
package org.apache.hc.core5.http.nio;
import org.apache.hc.core5.http.nio.AsyncDataConsumer;
import org.apache.hc.core5.http.nio.AsyncDataProducer;
public interface AsyncDataExchangeHandler extends AsyncDataConsumer, AsyncDataProducer
{
void failed(Exception p0);
}

View File

@@ -0,0 +1,12 @@
// Generated automatically from org.apache.hc.core5.http.nio.AsyncDataProducer for testing purposes
package org.apache.hc.core5.http.nio;
import org.apache.hc.core5.http.nio.DataStreamChannel;
import org.apache.hc.core5.http.nio.ResourceHolder;
public interface AsyncDataProducer extends ResourceHolder
{
int available();
void produce(DataStreamChannel p0);
}

View File

@@ -0,0 +1,15 @@
// Generated automatically from org.apache.hc.core5.http.nio.AsyncPushConsumer for testing purposes
package org.apache.hc.core5.http.nio;
import org.apache.hc.core5.http.EntityDetails;
import org.apache.hc.core5.http.HttpRequest;
import org.apache.hc.core5.http.HttpResponse;
import org.apache.hc.core5.http.nio.AsyncDataConsumer;
import org.apache.hc.core5.http.protocol.HttpContext;
public interface AsyncPushConsumer extends AsyncDataConsumer
{
void consumePromise(HttpRequest p0, HttpResponse p1, EntityDetails p2, HttpContext p3);
void failed(Exception p0);
}

View File

@@ -0,0 +1,14 @@
// Generated automatically from org.apache.hc.core5.http.nio.AsyncRequestProducer for testing purposes
package org.apache.hc.core5.http.nio;
import org.apache.hc.core5.http.nio.AsyncDataProducer;
import org.apache.hc.core5.http.nio.RequestChannel;
import org.apache.hc.core5.http.protocol.HttpContext;
public interface AsyncRequestProducer extends AsyncDataProducer
{
boolean isRepeatable();
void failed(Exception p0);
void sendRequest(RequestChannel p0, HttpContext p1);
}

View File

@@ -0,0 +1,16 @@
// Generated automatically from org.apache.hc.core5.http.nio.AsyncResponseConsumer for testing purposes
package org.apache.hc.core5.http.nio;
import org.apache.hc.core5.concurrent.FutureCallback;
import org.apache.hc.core5.http.EntityDetails;
import org.apache.hc.core5.http.HttpResponse;
import org.apache.hc.core5.http.nio.AsyncDataConsumer;
import org.apache.hc.core5.http.protocol.HttpContext;
public interface AsyncResponseConsumer<T> extends AsyncDataConsumer
{
void consumeResponse(HttpResponse p0, EntityDetails p1, HttpContext p2, org.apache.hc.core5.concurrent.FutureCallback<T> p3);
void failed(Exception p0);
void informationResponse(HttpResponse p0, HttpContext p1);
}

View File

@@ -0,0 +1,9 @@
// Generated automatically from org.apache.hc.core5.http.nio.CapacityChannel for testing purposes
package org.apache.hc.core5.http.nio;
public interface CapacityChannel
{
void update(int p0);
}

View File

@@ -0,0 +1,16 @@
// Generated automatically from org.apache.hc.core5.http.nio.DataStreamChannel for testing purposes
package org.apache.hc.core5.http.nio;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.util.List;
import org.apache.hc.core5.http.Header;
import org.apache.hc.core5.http.nio.StreamChannel;
public interface DataStreamChannel extends StreamChannel<ByteBuffer>
{
int write(ByteBuffer p0);
void endStream(List<? extends Header> p0);
void requestOutput();
}

View File

@@ -0,0 +1,12 @@
// Generated automatically from org.apache.hc.core5.http.nio.HandlerFactory for testing purposes
package org.apache.hc.core5.http.nio;
import org.apache.hc.core5.http.HttpRequest;
import org.apache.hc.core5.http.nio.ResourceHolder;
import org.apache.hc.core5.http.protocol.HttpContext;
public interface HandlerFactory<T extends ResourceHolder>
{
T create(HttpRequest p0, HttpContext p1);
}

View File

@@ -0,0 +1,12 @@
// Generated automatically from org.apache.hc.core5.http.nio.RequestChannel for testing purposes
package org.apache.hc.core5.http.nio;
import org.apache.hc.core5.http.EntityDetails;
import org.apache.hc.core5.http.HttpRequest;
import org.apache.hc.core5.http.protocol.HttpContext;
public interface RequestChannel
{
void sendRequest(HttpRequest p0, EntityDetails p1, HttpContext p2);
}

View File

@@ -0,0 +1,9 @@
// Generated automatically from org.apache.hc.core5.http.nio.ResourceHolder for testing purposes
package org.apache.hc.core5.http.nio;
public interface ResourceHolder
{
void releaseResources();
}

View File

@@ -0,0 +1,11 @@
// Generated automatically from org.apache.hc.core5.http.nio.StreamChannel for testing purposes
package org.apache.hc.core5.http.nio;
import java.nio.Buffer;
public interface StreamChannel<T extends Buffer>
{
int write(T p0);
void endStream();
}

View File

@@ -0,0 +1,16 @@
// Generated automatically from org.apache.hc.core5.http.nio.ssl.TlsStrategy for testing purposes
package org.apache.hc.core5.http.nio.ssl;
import java.net.SocketAddress;
import org.apache.hc.core5.concurrent.FutureCallback;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.net.NamedEndpoint;
import org.apache.hc.core5.reactor.ssl.TransportSecurityLayer;
import org.apache.hc.core5.util.Timeout;
public interface TlsStrategy
{
boolean upgrade(TransportSecurityLayer p0, HttpHost p1, SocketAddress p2, SocketAddress p3, Object p4, Timeout p5);
default void upgrade(TransportSecurityLayer p0, NamedEndpoint p1, Object p2, Timeout p3, FutureCallback<TransportSecurityLayer> p4){}
}

View File

@@ -1,42 +1,15 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.hc.core5.http.protocol.HttpContext for testing purposes
package org.apache.hc.core5.http.protocol;
import org.apache.hc.core5.http.ProtocolVersion;
public interface HttpContext {
public interface HttpContext
{
Object getAttribute(String p0);
Object removeAttribute(String p0);
Object setAttribute(String p0, Object p1);
ProtocolVersion getProtocolVersion();
void setProtocolVersion(ProtocolVersion version);
Object getAttribute(String id);
Object setAttribute(String id, Object obj);
Object removeAttribute(String id);
static String RESERVED_PREFIX = null;
void setProtocolVersion(ProtocolVersion p0);
}

View File

@@ -0,0 +1,30 @@
// Generated automatically from org.apache.hc.core5.http.support.AbstractMessageBuilder for testing purposes
package org.apache.hc.core5.http.support;
import java.util.Iterator;
import org.apache.hc.core5.http.Header;
import org.apache.hc.core5.http.HttpMessage;
import org.apache.hc.core5.http.ProtocolVersion;
abstract public class AbstractMessageBuilder<T>
{
protected AbstractMessageBuilder(){}
protected abstract T build();
protected void digest(HttpMessage p0){}
public AbstractMessageBuilder<T> addHeader(Header p0){ return null; }
public AbstractMessageBuilder<T> addHeader(String p0, String p1){ return null; }
public AbstractMessageBuilder<T> removeHeader(Header p0){ return null; }
public AbstractMessageBuilder<T> removeHeaders(String p0){ return null; }
public AbstractMessageBuilder<T> setHeader(Header p0){ return null; }
public AbstractMessageBuilder<T> setHeader(String p0, String p1){ return null; }
public AbstractMessageBuilder<T> setHeaders(Header... p0){ return null; }
public AbstractMessageBuilder<T> setHeaders(Iterator<Header> p0){ return null; }
public AbstractMessageBuilder<T> setVersion(ProtocolVersion p0){ return null; }
public Header getFirstHeader(String p0){ return null; }
public Header getLastHeader(String p0){ return null; }
public Header[] getFirstHeaders(){ return null; }
public Header[] getHeaders(){ return null; }
public Header[] getHeaders(String p0){ return null; }
public ProtocolVersion getVersion(){ return null; }
}

View File

@@ -0,0 +1,54 @@
// Generated automatically from org.apache.hc.core5.http.support.AbstractRequestBuilder for testing purposes
package org.apache.hc.core5.http.support;
import java.net.URI;
import java.nio.charset.Charset;
import java.util.List;
import org.apache.hc.core5.http.Header;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.HttpRequest;
import org.apache.hc.core5.http.Method;
import org.apache.hc.core5.http.NameValuePair;
import org.apache.hc.core5.http.ProtocolVersion;
import org.apache.hc.core5.http.support.AbstractMessageBuilder;
import org.apache.hc.core5.net.URIAuthority;
abstract public class AbstractRequestBuilder<T> extends AbstractMessageBuilder<T>
{
protected AbstractRequestBuilder() {}
protected AbstractRequestBuilder(Method p0){}
protected AbstractRequestBuilder(Method p0, String p1){}
protected AbstractRequestBuilder(Method p0, URI p1){}
protected AbstractRequestBuilder(String p0){}
protected AbstractRequestBuilder(String p0, String p1){}
protected AbstractRequestBuilder(String p0, URI p1){}
protected void digest(HttpRequest p0){}
public AbstractRequestBuilder<T> addHeader(Header p0){ return null; }
public AbstractRequestBuilder<T> addHeader(String p0, String p1){ return null; }
public AbstractRequestBuilder<T> addParameter(NameValuePair p0){ return null; }
public AbstractRequestBuilder<T> addParameter(String p0, String p1){ return null; }
public AbstractRequestBuilder<T> addParameters(NameValuePair... p0){ return null; }
public AbstractRequestBuilder<T> removeHeader(Header p0){ return null; }
public AbstractRequestBuilder<T> removeHeaders(String p0){ return null; }
public AbstractRequestBuilder<T> setAbsoluteRequestUri(boolean p0){ return null; }
public AbstractRequestBuilder<T> setAuthority(URIAuthority p0){ return null; }
public AbstractRequestBuilder<T> setCharset(Charset p0){ return null; }
public AbstractRequestBuilder<T> setHeader(Header p0){ return null; }
public AbstractRequestBuilder<T> setHeader(String p0, String p1){ return null; }
public AbstractRequestBuilder<T> setHeaders(Header... p0){ return null; }
public AbstractRequestBuilder<T> setHttpHost(HttpHost p0){ return null; }
public AbstractRequestBuilder<T> setPath(String p0){ return null; }
public AbstractRequestBuilder<T> setScheme(String p0){ return null; }
public AbstractRequestBuilder<T> setUri(String p0){ return null; }
public AbstractRequestBuilder<T> setUri(URI p0){ return null; }
public AbstractRequestBuilder<T> setVersion(ProtocolVersion p0){ return null; }
public Charset getCharset(){ return null; }
public List<NameValuePair> getParameters(){ return null; }
public String getMethod(){ return null; }
public String getPath(){ return null; }
public String getScheme(){ return null; }
public URI getUri(){ return null; }
public URIAuthority getAuthority(){ return null; }
public boolean isAbsoluteRequestUri(){ return false; }
}

View File

@@ -0,0 +1,10 @@
// Generated automatically from org.apache.hc.core5.io.CloseMode for testing purposes
package org.apache.hc.core5.io;
public enum CloseMode
{
GRACEFUL, IMMEDIATE;
private CloseMode() {}
}

View File

@@ -0,0 +1,11 @@
// Generated automatically from org.apache.hc.core5.io.ModalCloseable for testing purposes
package org.apache.hc.core5.io;
import java.io.Closeable;
import org.apache.hc.core5.io.CloseMode;
public interface ModalCloseable extends Closeable
{
void close(CloseMode p0);
}

View File

@@ -0,0 +1,18 @@
// Generated automatically from org.apache.hc.core5.net.Host for testing purposes
package org.apache.hc.core5.net;
import java.io.Serializable;
import org.apache.hc.core5.net.NamedEndpoint;
public class Host implements NamedEndpoint, Serializable
{
protected Host() {}
public Host(String p0, int p1){}
public String getHostName(){ return null; }
public String toString(){ return null; }
public boolean equals(Object p0){ return false; }
public int getPort(){ return 0; }
public int hashCode(){ return 0; }
public static Host create(String p0){ return null; }
}

View File

@@ -0,0 +1,10 @@
// Generated automatically from org.apache.hc.core5.net.NamedEndpoint for testing purposes
package org.apache.hc.core5.net;
public interface NamedEndpoint
{
String getHostName();
int getPort();
}

View File

@@ -1,55 +1,26 @@
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
// Generated automatically from org.apache.hc.core5.net.URIAuthority for testing purposes
package org.apache.hc.core5.net;
public final class URIAuthority {
public String getUserInfo() {
return null;
}
public String getHostName() {
return null;
}
public int getPort() {
return 0;
}
public String toString() {
return null;
}
public boolean equals(final Object obj) {
return false;
}
public int hashCode() {
return 0;
}
import java.io.Serializable;
import org.apache.hc.core5.net.Host;
import org.apache.hc.core5.net.NamedEndpoint;
public class URIAuthority implements NamedEndpoint, Serializable
{
protected URIAuthority() {}
public String getHostName(){ return null; }
public String getUserInfo(){ return null; }
public String toString(){ return null; }
public URIAuthority(Host p0){}
public URIAuthority(NamedEndpoint p0){}
public URIAuthority(String p0){}
public URIAuthority(String p0, Host p1){}
public URIAuthority(String p0, NamedEndpoint p1){}
public URIAuthority(String p0, String p1, int p2){}
public URIAuthority(String p0, int p1){}
public boolean equals(Object p0){ return false; }
public int getPort(){ return 0; }
public int hashCode(){ return 0; }
public static URIAuthority create(String p0){ return null; }
}

View File

@@ -0,0 +1,15 @@
// Generated automatically from org.apache.hc.core5.pool.ConnPool for testing purposes
package org.apache.hc.core5.pool;
import java.util.concurrent.Future;
import org.apache.hc.core5.concurrent.FutureCallback;
import org.apache.hc.core5.io.ModalCloseable;
import org.apache.hc.core5.pool.PoolEntry;
import org.apache.hc.core5.util.Timeout;
public interface ConnPool<T, C extends ModalCloseable>
{
java.util.concurrent.Future<org.apache.hc.core5.pool.PoolEntry<T, C>> lease(T p0, Object p1, Timeout p2, org.apache.hc.core5.concurrent.FutureCallback<org.apache.hc.core5.pool.PoolEntry<T, C>> p3);
void release(org.apache.hc.core5.pool.PoolEntry<T, C> p0, boolean p1);
}

View File

@@ -0,0 +1,20 @@
// Generated automatically from org.apache.hc.core5.pool.ConnPoolControl for testing purposes
package org.apache.hc.core5.pool;
import java.util.Set;
import org.apache.hc.core5.pool.ConnPoolStats;
import org.apache.hc.core5.util.TimeValue;
public interface ConnPoolControl<T> extends org.apache.hc.core5.pool.ConnPoolStats<T>
{
int getDefaultMaxPerRoute();
int getMaxPerRoute(T p0);
int getMaxTotal();
java.util.Set<T> getRoutes();
void closeExpired();
void closeIdle(TimeValue p0);
void setDefaultMaxPerRoute(int p0);
void setMaxPerRoute(T p0, int p1);
void setMaxTotal(int p0);
}

View File

@@ -0,0 +1,11 @@
// Generated automatically from org.apache.hc.core5.pool.ConnPoolStats for testing purposes
package org.apache.hc.core5.pool;
import org.apache.hc.core5.pool.PoolStats;
public interface ConnPoolStats<T>
{
PoolStats getStats(T p0);
PoolStats getTotalStats();
}

View File

@@ -0,0 +1,11 @@
// Generated automatically from org.apache.hc.core5.pool.DisposalCallback for testing purposes
package org.apache.hc.core5.pool;
import org.apache.hc.core5.io.CloseMode;
import org.apache.hc.core5.io.ModalCloseable;
public interface DisposalCallback<T extends ModalCloseable>
{
void execute(T p0, CloseMode p1);
}

View File

@@ -0,0 +1,11 @@
// Generated automatically from org.apache.hc.core5.pool.ManagedConnPool for testing purposes
package org.apache.hc.core5.pool;
import org.apache.hc.core5.io.ModalCloseable;
import org.apache.hc.core5.pool.ConnPool;
import org.apache.hc.core5.pool.ConnPoolControl;
public interface ManagedConnPool<T, C extends ModalCloseable> extends ConnPool<T, C>, ConnPoolControl<T>, ModalCloseable
{
}

View File

@@ -0,0 +1,30 @@
// Generated automatically from org.apache.hc.core5.pool.PoolEntry for testing purposes
package org.apache.hc.core5.pool;
import org.apache.hc.core5.io.CloseMode;
import org.apache.hc.core5.io.ModalCloseable;
import org.apache.hc.core5.pool.DisposalCallback;
import org.apache.hc.core5.util.Deadline;
import org.apache.hc.core5.util.TimeValue;
public class PoolEntry<T, C extends ModalCloseable>
{
protected PoolEntry() {}
public C getConnection(){ return null; }
public Deadline getExpiryDeadline(){ return null; }
public Deadline getValidityDeadline(){ return null; }
public Object getState(){ return null; }
public PoolEntry(T p0){}
public PoolEntry(T p0, TimeValue p1){}
public PoolEntry(T p0, TimeValue p1, DisposalCallback<C> p2){}
public String toString(){ return null; }
public T getRoute(){ return null; }
public boolean hasConnection(){ return false; }
public long getCreated(){ return 0; }
public long getUpdated(){ return 0; }
public void assignConnection(C p0){}
public void discardConnection(CloseMode p0){}
public void updateExpiry(TimeValue p0){}
public void updateState(Object p0){}
}

View File

@@ -0,0 +1,16 @@
// Generated automatically from org.apache.hc.core5.pool.PoolStats for testing purposes
package org.apache.hc.core5.pool;
import java.io.Serializable;
public class PoolStats implements Serializable
{
protected PoolStats() {}
public PoolStats(int p0, int p1, int p2, int p3){}
public String toString(){ return null; }
public int getAvailable(){ return 0; }
public int getLeased(){ return 0; }
public int getMax(){ return 0; }
public int getPending(){ return 0; }
}

View File

@@ -0,0 +1,14 @@
// Generated automatically from org.apache.hc.core5.reactor.Command for testing purposes
package org.apache.hc.core5.reactor;
import org.apache.hc.core5.concurrent.Cancellable;
public interface Command extends Cancellable
{
static public enum Priority
{
IMMEDIATE, NORMAL;
private Priority() {}
}
}

View File

@@ -0,0 +1,15 @@
// Generated automatically from org.apache.hc.core5.reactor.ConnectionInitiator for testing purposes
package org.apache.hc.core5.reactor;
import java.net.SocketAddress;
import java.util.concurrent.Future;
import org.apache.hc.core5.concurrent.FutureCallback;
import org.apache.hc.core5.net.NamedEndpoint;
import org.apache.hc.core5.reactor.IOSession;
import org.apache.hc.core5.util.Timeout;
public interface ConnectionInitiator
{
Future<IOSession> connect(NamedEndpoint p0, SocketAddress p1, SocketAddress p2, Timeout p3, Object p4, FutureCallback<IOSession> p5);
}

View File

@@ -0,0 +1,17 @@
// Generated automatically from org.apache.hc.core5.reactor.IOEventHandler for testing purposes
package org.apache.hc.core5.reactor;
import java.nio.ByteBuffer;
import org.apache.hc.core5.reactor.IOSession;
import org.apache.hc.core5.util.Timeout;
public interface IOEventHandler
{
void connected(IOSession p0);
void disconnected(IOSession p0);
void exception(IOSession p0, Exception p1);
void inputReady(IOSession p0, ByteBuffer p1);
void outputReady(IOSession p0);
void timeout(IOSession p0, Timeout p1);
}

View File

@@ -0,0 +1,11 @@
// Generated automatically from org.apache.hc.core5.reactor.IOEventHandlerFactory for testing purposes
package org.apache.hc.core5.reactor;
import org.apache.hc.core5.reactor.IOEventHandler;
import org.apache.hc.core5.reactor.ProtocolIOSession;
public interface IOEventHandlerFactory
{
IOEventHandler createHandler(ProtocolIOSession p0, Object p1);
}

View File

@@ -0,0 +1,16 @@
// Generated automatically from org.apache.hc.core5.reactor.IOReactor for testing purposes
package org.apache.hc.core5.reactor;
import org.apache.hc.core5.io.CloseMode;
import org.apache.hc.core5.io.ModalCloseable;
import org.apache.hc.core5.reactor.IOReactorStatus;
import org.apache.hc.core5.util.TimeValue;
public interface IOReactor extends ModalCloseable
{
IOReactorStatus getStatus();
void awaitShutdown(TimeValue p0);
void close(CloseMode p0);
void initiateShutdown();
}

Some files were not shown because too many files have changed in this diff Show More