From f0749f69c7bec98f1680d2c938fb47ed0f1ff73e Mon Sep 17 00:00:00 2001 From: Jami Cogswell Date: Thu, 13 Apr 2023 09:52:29 -0400 Subject: [PATCH] Java: remove manual-only stub directory --- .../apache/hc/core5/function/Supplier.java | 33 ---- .../hc/core5/http/ClassicHttpRequest.java | 36 ---- .../hc/core5/http/ClassicHttpResponse.java | 33 ---- .../org/apache/hc/core5/http/ContentType.java | 159 ------------------ .../apache/hc/core5/http/EntityDetails.java | 43 ----- .../org/apache/hc/core5/http/Header.java | 39 ----- .../org/apache/hc/core5/http/HttpEntity.java | 48 ------ .../hc/core5/http/HttpEntityContainer.java | 40 ----- .../apache/hc/core5/http/HttpException.java | 48 ------ .../org/apache/hc/core5/http/HttpMessage.java | 55 ------ .../org/apache/hc/core5/http/HttpRequest.java | 56 ------ .../apache/hc/core5/http/HttpResponse.java | 45 ----- .../apache/hc/core5/http/MessageHeaders.java | 51 ------ .../apache/hc/core5/http/NameValuePair.java | 40 ----- .../apache/hc/core5/http/ParseException.java | 52 ------ .../hc/core5/http/ProtocolException.java | 49 ------ .../apache/hc/core5/http/ProtocolVersion.java | 87 ---------- .../hc/core5/http/io/HttpRequestHandler.java | 41 ----- .../http/io/HttpServerRequestHandler.java | 46 ----- .../http/io/entity/AbstractHttpEntity.java | 86 ---------- .../core5/http/io/entity/ByteArrayEntity.java | 92 ---------- .../http/io/entity/ByteBufferEntity.java | 65 ------- .../hc/core5/http/io/entity/EntityUtils.java | 89 ---------- .../hc/core5/http/io/entity/HttpEntities.java | 152 ----------------- .../hc/core5/http/io/entity/StringEntity.java | 83 --------- .../hc/core5/http/message/BasicHeader.java | 59 ------- .../hc/core5/http/message/RequestLine.java | 61 ------- .../hc/core5/http/protocol/HttpContext.java | 42 ----- .../org/apache/hc/core5/io/IOCallback.java | 34 ---- .../org/apache/hc/core5/net/URIAuthority.java | 55 ------ .../org/apache/hc/core5/util/Args.java | 93 ---------- .../apache/hc/core5/util/ByteArrayBuffer.java | 97 ----------- .../apache/hc/core5/util/CharArrayBuffer.java | 125 -------------- 33 files changed, 2134 deletions(-) delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/function/Supplier.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ClassicHttpRequest.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ClassicHttpResponse.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ContentType.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/EntityDetails.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/Header.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpEntity.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpEntityContainer.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpException.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpMessage.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpRequest.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpResponse.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/MessageHeaders.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/NameValuePair.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ParseException.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ProtocolException.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ProtocolVersion.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/HttpRequestHandler.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/HttpServerRequestHandler.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/AbstractHttpEntity.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/ByteArrayEntity.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/ByteBufferEntity.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/EntityUtils.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/HttpEntities.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/StringEntity.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/message/BasicHeader.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/message/RequestLine.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/protocol/HttpContext.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/io/IOCallback.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/net/URIAuthority.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/util/Args.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/util/ByteArrayBuffer.java delete mode 100644 java/ql/test/stubs/apache-http-5/org/apache/hc/core5/util/CharArrayBuffer.java diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/function/Supplier.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/function/Supplier.java deleted file mode 100644 index c847728f32f..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/function/Supplier.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.function; - -public interface Supplier { - T get(); - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ClassicHttpRequest.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ClassicHttpRequest.java deleted file mode 100644 index 9997a4f0cb1..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ClassicHttpRequest.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http; - -/** - * 'Classic' {@link HttpRequest} message that can enclose {@link HttpEntity}. - * - * @since 5.0 - */ -public interface ClassicHttpRequest extends HttpRequest, HttpEntityContainer { -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ClassicHttpResponse.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ClassicHttpResponse.java deleted file mode 100644 index 571f1b0c420..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ClassicHttpResponse.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http; - -import java.io.Closeable; - -public interface ClassicHttpResponse extends HttpResponse, HttpEntityContainer, Closeable { -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ContentType.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ContentType.java deleted file mode 100644 index f7d3ffc21a3..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ContentType.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -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; - } - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/EntityDetails.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/EntityDetails.java deleted file mode 100644 index bed26e033f7..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/EntityDetails.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http; - -import java.util.Set; - -public interface EntityDetails { - long getContentLength(); - - String getContentType(); - - String getContentEncoding(); - - boolean isChunked(); - - Set getTrailerNames(); - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/Header.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/Header.java deleted file mode 100644 index 888e80e1748..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/Header.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -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(); - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpEntity.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpEntity.java deleted file mode 100644 index 02f47cd4e41..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpEntity.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -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; - -public interface HttpEntity extends EntityDetails, Closeable { - boolean isRepeatable(); - - InputStream getContent() throws IOException, UnsupportedOperationException; - - void writeTo(OutputStream outStream) throws IOException; - - boolean isStreaming(); - Supplier> getTrailers(); - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpEntityContainer.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpEntityContainer.java deleted file mode 100644 index dbde2e9966c..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpEntityContainer.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http; - -/** - * Contains an {@link HttpEntity}. - * - * @since 5.0 - */ -public interface HttpEntityContainer { - HttpEntity getEntity(); - - void setEntity(HttpEntity entity); - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpException.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpException.java deleted file mode 100644 index a5943cf543f..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpException.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http; - -/** - * Signals that an HTTP exception has occurred. - * - * @since 4.0 - */ -public class HttpException extends Exception { - public HttpException() { - } - - public HttpException(final String message) { - } - - public HttpException(final String format, final Object... args) { - } - - public HttpException(final String message, final Throwable cause) { - } - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpMessage.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpMessage.java deleted file mode 100644 index 425e3a2719c..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpMessage.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -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); - - 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); - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpRequest.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpRequest.java deleted file mode 100644 index e16c157b030..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpRequest.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http; - -import java.net.URI; -import java.net.URISyntaxException; - -import org.apache.hc.core5.net.URIAuthority; - -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); - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpResponse.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpResponse.java deleted file mode 100644 index 4a962d484ff..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/HttpResponse.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http; - -import java.util.Locale; - -public interface HttpResponse extends HttpMessage { - int getCode(); - - void setCode(int code); - - String getReasonPhrase(); - - void setReasonPhrase(String reason); - - Locale getLocale(); - - void setLocale(Locale loc); - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/MessageHeaders.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/MessageHeaders.java deleted file mode 100644 index 374910f5f2b..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/MessageHeaders.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http; - -import java.util.Iterator; - -public interface MessageHeaders { - boolean containsHeader(String name); - - int countHeaders(String name); - - Header getFirstHeader(String name); - - Header getHeader(String name) throws ProtocolException; - - Header[] getHeaders(); - - Header[] getHeaders(String name); - - Header getLastHeader(String name); - - Iterator
headerIterator(); - - Iterator
headerIterator(String name); - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/NameValuePair.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/NameValuePair.java deleted file mode 100644 index b7e793994db..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/NameValuePair.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http; - -/** - * A name-value pair parameter used as an element of HTTP messages. - * - * @since 4.0 - */ -public interface NameValuePair { - String getName(); - - String getValue(); - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ParseException.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ParseException.java deleted file mode 100644 index c0c180c7a8c..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ParseException.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http; - -/** - * Signals a protocol exception due to failure to parse a message element. - * - * @since 4.0 - */ -public class ParseException extends ProtocolException { - public ParseException() { - } - - public ParseException(final String message) { - } - - public ParseException(final String description, final CharSequence text, final int off, final int len, final int errorOffset) { - } - - public ParseException(final String description, final CharSequence text, final int off, final int len) { - } - - public int getErrorOffset() { - return 0; - } - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ProtocolException.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ProtocolException.java deleted file mode 100644 index fee74e55bba..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ProtocolException.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http; - -/** - * Signals that an HTTP protocol violation has occurred. - * For example a malformed status line or headers, a missing message body, etc. - * - * @since 4.0 - */ -public class ProtocolException extends HttpException { - public ProtocolException() { - } - - public ProtocolException(final String message) { - } - - public ProtocolException(final String format, final Object... args) { - } - - public ProtocolException(final String message, final Throwable cause) { - } - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ProtocolVersion.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ProtocolVersion.java deleted file mode 100644 index 37f17cf8b8d..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/ProtocolVersion.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -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; - } - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/HttpRequestHandler.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/HttpRequestHandler.java deleted file mode 100644 index 13197bc3de4..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/HttpRequestHandler.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http.io; - -import java.io.IOException; - -import org.apache.hc.core5.http.ClassicHttpRequest; -import org.apache.hc.core5.http.ClassicHttpResponse; -import org.apache.hc.core5.http.HttpException; -import org.apache.hc.core5.http.protocol.HttpContext; - -public interface HttpRequestHandler { - void handle(ClassicHttpRequest request, ClassicHttpResponse response, HttpContext context) - throws HttpException, IOException; - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/HttpServerRequestHandler.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/HttpServerRequestHandler.java deleted file mode 100644 index 007bf18568d..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/HttpServerRequestHandler.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ -package org.apache.hc.core5.http.io; -import java.io.IOException; -import org.apache.hc.core5.http.ClassicHttpRequest; -import org.apache.hc.core5.http.ClassicHttpResponse; -import org.apache.hc.core5.http.HttpException; -import org.apache.hc.core5.http.protocol.HttpContext; - -public interface HttpServerRequestHandler { - interface ResponseTrigger { - void sendInformation(ClassicHttpResponse response) throws HttpException, IOException; - - void submitResponse(ClassicHttpResponse response) throws HttpException, IOException; - - } - void handle( - ClassicHttpRequest request, - ResponseTrigger responseTrigger, - HttpContext context) throws HttpException, IOException; - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/AbstractHttpEntity.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/AbstractHttpEntity.java deleted file mode 100644 index 68af8819fe0..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/AbstractHttpEntity.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http.io.entity; - -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.util.Collections; -import java.util.List; -import java.util.Set; - -import org.apache.hc.core5.function.Supplier; -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.util.Args; - -public abstract class AbstractHttpEntity implements HttpEntity { - public static void writeTo(final HttpEntity entity, final OutputStream outStream) throws IOException { - } - - @Override - public void writeTo(final OutputStream outStream) throws IOException { - } - - @Override - public final String getContentType() { - return null; - } - - @Override - public final String getContentEncoding() { - return null; - } - - @Override - public final boolean isChunked() { - return false; - } - - @Override - public boolean isRepeatable() { - return false; - } - - @Override - public Supplier> getTrailers() { - return null; - } - - @Override - public Set getTrailerNames() { - return null; - } - - @Override - public String toString() { - return null; - } - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/ByteArrayEntity.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/ByteArrayEntity.java deleted file mode 100644 index d0f9b715050..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/ByteArrayEntity.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http.io.entity; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import org.apache.hc.core5.http.ContentType; - -public class ByteArrayEntity extends AbstractHttpEntity { - public ByteArrayEntity( - final byte[] b, final int off, final int len, final ContentType contentType, final String contentEncoding, - final boolean chunked) { - } - - public ByteArrayEntity( - final byte[] b, final int off, final int len, final ContentType contentType, final String contentEncoding) { - } - - public ByteArrayEntity( - final byte[] b, final ContentType contentType, final String contentEncoding, final boolean chunked) { - } - - public ByteArrayEntity(final byte[] b, final ContentType contentType, final String contentEncoding) { - } - - public ByteArrayEntity(final byte[] b, final ContentType contentType, final boolean chunked) { - } - - public ByteArrayEntity(final byte[] b, final ContentType contentType) { - } - - public ByteArrayEntity( - final byte[] b, final int off, final int len, final ContentType contentType, final boolean chunked) { - } - - public ByteArrayEntity(final byte[] b, final int off, final int len, final ContentType contentType) { - } - - @Override - public final boolean isRepeatable() { - return false; - } - - @Override - public final long getContentLength() { - return 0; - } - - @Override - public final InputStream getContent() { - return null; - } - - @Override - public final void writeTo(final OutputStream outStream) throws IOException { - } - - @Override - public final boolean isStreaming() { - return false; - } - - @Override - public final void close() throws IOException { - } - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/ByteBufferEntity.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/ByteBufferEntity.java deleted file mode 100644 index 555ccd69fe5..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/ByteBufferEntity.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http.io.entity; -import java.io.IOException; -import java.io.InputStream; -import java.nio.ByteBuffer; -import org.apache.hc.core5.http.ContentType; - -public class ByteBufferEntity extends AbstractHttpEntity { - public ByteBufferEntity(final ByteBuffer buffer, final ContentType contentType, final String contentEncoding) { - } - - public ByteBufferEntity(final ByteBuffer buffer, final ContentType contentType) { - } - - @Override - public final boolean isRepeatable() { - return false; - } - - @Override - public final long getContentLength() { - return 0; - } - - @Override - public final InputStream getContent() throws IOException, UnsupportedOperationException { - return null; - } - - @Override - public final boolean isStreaming() { - return false; - } - - @Override - public final void close() throws IOException { - } - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/EntityUtils.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/EntityUtils.java deleted file mode 100644 index cbf7bfda9bb..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/EntityUtils.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http.io.entity; - -import java.io.IOException; -import java.nio.charset.Charset; -import java.util.List; - -import org.apache.hc.core5.http.HttpEntity; -import org.apache.hc.core5.http.NameValuePair; -import org.apache.hc.core5.http.ParseException; - -public final class EntityUtils { - public static void consumeQuietly(final HttpEntity entity) { - } - - public static void consume(final HttpEntity entity) throws IOException { - } - - public static byte[] toByteArray(final HttpEntity entity) throws IOException { - return null; - } - - public static byte[] toByteArray(final HttpEntity entity, final int maxResultLength) throws IOException { - return null; - } - - public static String toString( - final HttpEntity entity, final Charset defaultCharset) throws IOException, ParseException { - return null; - } - - public static String toString( - final HttpEntity entity, final Charset defaultCharset, final int maxResultLength) throws IOException, ParseException { - return null; - } - - public static String toString( - final HttpEntity entity, final String defaultCharset) throws IOException, ParseException { - return null; - } - - public static String toString( - final HttpEntity entity, final String defaultCharset, final int maxResultLength) throws IOException, ParseException { - return null; - } - - public static String toString(final HttpEntity entity) throws IOException, ParseException { - return null; - } - - public static String toString(final HttpEntity entity, final int maxResultLength) throws IOException, ParseException { - return null; - } - - public static List parse(final HttpEntity entity) throws IOException { - return null; - } - - public static List parse(final HttpEntity entity, final int maxStreamLength) throws IOException { - return null; - } - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/HttpEntities.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/HttpEntities.java deleted file mode 100644 index d7e532439f4..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/HttpEntities.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http.io.entity; -import java.io.File; -import java.io.OutputStream; -import java.io.Serializable; -import java.nio.charset.Charset; -import java.nio.file.Path; -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.NameValuePair; -import org.apache.hc.core5.io.IOCallback; - -public final class HttpEntities { - public static HttpEntity create(final String content, final ContentType contentType) { - return null; - } - - public static HttpEntity create(final String content, final Charset charset) { - return null; - } - - public static HttpEntity create(final String content) { - return null; - } - - public static HttpEntity create(final byte[] content, final ContentType contentType) { - return null; - } - - public static HttpEntity create(final File content, final ContentType contentType) { - return null; - } - - public static HttpEntity create(final Serializable serializable, final ContentType contentType) { - return null; - } - - public static HttpEntity createUrlEncoded( - final Iterable parameters, final Charset charset) { - return null; - } - - public static HttpEntity create(final IOCallback callback, final ContentType contentType) { - return null; - } - - public static HttpEntity gzip(final HttpEntity entity) { - return null; - } - - public static HttpEntity createGzipped(final String content, final ContentType contentType) { - return null; - } - - public static HttpEntity createGzipped(final String content, final Charset charset) { - return null; - } - - public static HttpEntity createGzipped(final String content) { - return null; - } - - public static HttpEntity createGzipped(final byte[] content, final ContentType contentType) { - return null; - } - - public static HttpEntity createGzipped(final File content, final ContentType contentType) { - return null; - } - - public static HttpEntity createGzipped(final Serializable serializable, final ContentType contentType) { - return null; - } - - public static HttpEntity createGzipped(final IOCallback callback, final ContentType contentType) { - return null; - } - - public static HttpEntity createGzipped(final Path content, final ContentType contentType) { - return null; - } - - public static HttpEntity withTrailers(final HttpEntity entity, final Header... trailers) { - return null; - } - - public static HttpEntity create(final String content, final ContentType contentType, final Header... trailers) { - return null; - } - - public static HttpEntity create(final String content, final Charset charset, final Header... trailers) { - return null; - } - - public static HttpEntity create(final String content, final Header... trailers) { - return null; - } - - public static HttpEntity create(final byte[] content, final ContentType contentType, final Header... trailers) { - return null; - } - - public static HttpEntity create(final File content, final ContentType contentType, final Header... trailers) { - return null; - } - - public static HttpEntity create( - final Serializable serializable, final ContentType contentType, final Header... trailers) { - return null; - } - - public static HttpEntity create( - final IOCallback callback, final ContentType contentType, final Header... trailers) { - return null; - } - - public static HttpEntity create(final Path content, final ContentType contentType) { - return null; - } - - public static HttpEntity create(final Path content, final ContentType contentType, final Header... trailers) { - return null; - } - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/StringEntity.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/StringEntity.java deleted file mode 100644 index 649ce534350..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/io/entity/StringEntity.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http.io.entity; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.nio.charset.Charset; -import org.apache.hc.core5.http.ContentType; - -public class StringEntity extends AbstractHttpEntity { - public StringEntity( - final String string, final ContentType contentType, final String contentEncoding, final boolean chunked) { - } - - public StringEntity(final String string, final ContentType contentType, final boolean chunked) { - } - - public StringEntity(final String string, final ContentType contentType) { - } - - public StringEntity(final String string, final Charset charset) { - } - - public StringEntity(final String string, final Charset charset, final boolean chunked) { - } - - public StringEntity(final String string) { - } - - @Override - public final boolean isRepeatable() { - return false; - } - - @Override - public final long getContentLength() { - return 0; - } - - @Override - public final InputStream getContent() throws IOException { - return null; - } - - @Override - public final void writeTo(final OutputStream outStream) throws IOException { - } - - @Override - public final boolean isStreaming() { - return false; - } - - @Override - public final void close() throws IOException { - } - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/message/BasicHeader.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/message/BasicHeader.java deleted file mode 100644 index 64a2d3d8668..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/message/BasicHeader.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http.message; -import java.io.Serializable; -import org.apache.hc.core5.http.Header; - -public class BasicHeader implements Header, Cloneable, Serializable { - public BasicHeader(final String name, final Object value) { - } - - public BasicHeader(final String name, final Object value, final boolean sensitive) { - } - - @Override - public String getName() { - return null; - } - - @Override - public String getValue() { - return null; - } - - @Override - public boolean isSensitive() { - return false; - } - - @Override - public String toString() { - return null; - } - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/message/RequestLine.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/message/RequestLine.java deleted file mode 100644 index 86f1aaab695..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/message/RequestLine.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http.message; - -import java.io.Serializable; - -import org.apache.hc.core5.http.HttpRequest; -import org.apache.hc.core5.http.ProtocolVersion; - -public final class RequestLine implements Serializable { - public RequestLine(final HttpRequest request) { - } - - public RequestLine(final String method, - final String uri, - final ProtocolVersion version) { - } - - public String getMethod() { - return null; - } - - public ProtocolVersion getProtocolVersion() { - return null; - } - - public String getUri() { - return null; - } - - @Override - public String toString() { - return null; - } - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/protocol/HttpContext.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/protocol/HttpContext.java deleted file mode 100644 index 1506409dc25..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/http/protocol/HttpContext.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.http.protocol; -import org.apache.hc.core5.http.ProtocolVersion; - -public interface HttpContext { - ProtocolVersion getProtocolVersion(); - - void setProtocolVersion(ProtocolVersion version); - - Object getAttribute(String id); - - Object setAttribute(String id, Object obj); - - Object removeAttribute(String id); - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/io/IOCallback.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/io/IOCallback.java deleted file mode 100644 index 9e1f7f9c7ac..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/io/IOCallback.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.io; -import java.io.IOException; - -public interface IOCallback { - void execute(T object) throws IOException; - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/net/URIAuthority.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/net/URIAuthority.java deleted file mode 100644 index 3bb5158370a..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/net/URIAuthority.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -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; - } - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/util/Args.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/util/Args.java deleted file mode 100644 index 3e1a70bfca3..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/util/Args.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.util; - -import org.apache.hc.core5.http.EntityDetails; - -import java.util.Collection; - -public class Args { - public static void check(final boolean expression, final String message) { - } - - public static void check(final boolean expression, final String message, final Object... args) { - } - - public static void check(final boolean expression, final String message, final Object arg) { - } - - public static long checkContentLength(final EntityDetails entityDetails) { - return 0; - } - - public static int checkRange(final int value, final int lowInclusive, final int highInclusive, - final String message) { - return 0; - } - - public static long checkRange(final long value, final long lowInclusive, final long highInclusive, - final String message) { - return 0; - } - - public static T containsNoBlanks(final T argument, final String name) { - return null; - } - - public static T notBlank(final T argument, final String name) { - return null; - } - - public static T notEmpty(final T argument, final String name) { - return null; - } - - public static > T notEmpty(final T argument, final String name) { - return null; - } - - public static int notNegative(final int n, final String name) { - return 0; - } - - public static long notNegative(final long n, final String name) { - return 0; - } - - public static T notNull(final T argument, final String name) { - return null; - } - - public static int positive(final int n, final String name) { - return 0; - } - - public static long positive(final long n, final String name) { - return 0; - } -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/util/ByteArrayBuffer.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/util/ByteArrayBuffer.java deleted file mode 100644 index 43f131d9405..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/util/ByteArrayBuffer.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.util; - -import java.io.Serializable; -import java.nio.ByteBuffer; - -public final class ByteArrayBuffer implements Serializable { - public ByteArrayBuffer(final int capacity) { - } - - public void append(final byte[] b, final int off, final int len) { - } - - public void append(final int b) { - } - - public void append(final char[] b, final int off, final int len) { - } - - public void append(final CharArrayBuffer b, final int off, final int len) { - } - - public void append(final ByteBuffer buffer) { - } - - public void clear() { - } - - public byte[] toByteArray() { - return null; - } - - public int byteAt(final int i) { - return 0; - } - - public int capacity() { - return 0; - } - - public int length() { - return 0; - } - - public void ensureCapacity(final int required) { - } - - public byte[] array() { - return null; - } - - public void setLength(final int len) { - } - - public boolean isEmpty() { - return false; - } - - public boolean isFull() { - return false; - } - - public int indexOf(final byte b, final int from, final int to) { - return 0; - } - - public int indexOf(final byte b) { - return 0; - } - -} diff --git a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/util/CharArrayBuffer.java b/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/util/CharArrayBuffer.java deleted file mode 100644 index 41b51b2113d..00000000000 --- a/java/ql/test/stubs/apache-http-5/org/apache/hc/core5/util/CharArrayBuffer.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * ==================================================================== - * 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 - * . - * - */ - -package org.apache.hc.core5.util; - -import java.io.Serializable; - -public final class CharArrayBuffer implements CharSequence, Serializable { - public CharArrayBuffer(final int capacity) { - } - - public void append(final char[] b, final int off, final int len) { - } - - public void append(final String str) { - } - - public void append(final CharArrayBuffer b, final int off, final int len) { - } - - public void append(final CharArrayBuffer b) { - } - - public void append(final char ch) { - } - - public void append(final byte[] b, final int off, final int len) { - } - - public void append(final ByteArrayBuffer b, final int off, final int len) { - } - - public void append(final Object obj) { - } - - public void clear() { - } - - public char[] toCharArray() { - return null; - } - - @Override - public char charAt(final int i) { - return 0; - } - - public char[] array() { - return null; - } - - public int capacity() { - return 0; - } - - @Override - public int length() { - return 0; - } - - public void ensureCapacity(final int required) { - } - - public void setLength(final int len) { - } - - public boolean isEmpty() { - return false; - } - - public boolean isFull() { - return false; - } - - public int indexOf(final int ch, final int from, final int to) { - return 0; - } - - public int indexOf(final int ch) { - return 0; - } - - public String substring(final int beginIndex, final int endIndex) { - return null; - } - - public String substringTrimmed(final int beginIndex, final int endIndex) { - return null; - } - - @Override - public CharSequence subSequence(final int beginIndex, final int endIndex) { - return null; - } - - @Override - public String toString() { - return null; - } - -}