diff --git a/java/ql/test/stubs/apache-commons-compress/org/apache/commons/compress/archivers/ArchiveEntry.java b/java/ql/test/stubs/apache-commons-compress/org/apache/commons/compress/archivers/ArchiveEntry.java new file mode 100644 index 00000000000..73fb5d3fa1b --- /dev/null +++ b/java/ql/test/stubs/apache-commons-compress/org/apache/commons/compress/archivers/ArchiveEntry.java @@ -0,0 +1,14 @@ +// Generated automatically from org.apache.commons.compress.archivers.ArchiveEntry for testing purposes + +package org.apache.commons.compress.archivers; + +import java.util.Date; + +public interface ArchiveEntry +{ + Date getLastModifiedDate(); + String getName(); + boolean isDirectory(); + long getSize(); + static long SIZE_UNKNOWN = 0; +} diff --git a/java/ql/test/stubs/apache-commons-compress/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java b/java/ql/test/stubs/apache-commons-compress/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java new file mode 100644 index 00000000000..ef17fdf904b --- /dev/null +++ b/java/ql/test/stubs/apache-commons-compress/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java @@ -0,0 +1,92 @@ +// Generated automatically from org.apache.commons.compress.archivers.tar.TarArchiveEntry for testing purposes + +package org.apache.commons.compress.archivers.tar; + +import java.io.File; +import java.util.Date; +import java.util.Map; +import org.apache.commons.compress.archivers.ArchiveEntry; +import org.apache.commons.compress.archivers.tar.TarConstants; +import org.apache.commons.compress.archivers.zip.ZipEncoding; + +public class TarArchiveEntry implements ArchiveEntry, TarConstants +{ + protected TarArchiveEntry() {} + public Date getLastModifiedDate(){ return null; } + public Date getModTime(){ return null; } + public File getFile(){ return null; } + public Map getExtraPaxHeaders(){ return null; } + public String getExtraPaxHeader(String p0){ return null; } + public String getGroupName(){ return null; } + public String getLinkName(){ return null; } + public String getName(){ return null; } + public String getUserName(){ return null; } + public TarArchiveEntry(File p0){} + public TarArchiveEntry(File p0, String p1){} + public TarArchiveEntry(String p0){} + public TarArchiveEntry(String p0, boolean p1){} + public TarArchiveEntry(String p0, byte p1){} + public TarArchiveEntry(String p0, byte p1, boolean p2){} + public TarArchiveEntry(byte[] p0){} + public TarArchiveEntry(byte[] p0, ZipEncoding p1){} + public TarArchiveEntry(byte[] p0, ZipEncoding p1, boolean p2){} + public TarArchiveEntry[] getDirectoryEntries(){ return null; } + public boolean equals(Object p0){ return false; } + public boolean equals(TarArchiveEntry p0){ return false; } + public boolean isBlockDevice(){ return false; } + public boolean isCharacterDevice(){ return false; } + public boolean isCheckSumOK(){ return false; } + public boolean isDescendent(TarArchiveEntry p0){ return false; } + public boolean isDirectory(){ return false; } + public boolean isExtended(){ return false; } + public boolean isFIFO(){ return false; } + public boolean isFile(){ return false; } + public boolean isGNULongLinkEntry(){ return false; } + public boolean isGNULongNameEntry(){ return false; } + public boolean isGNUSparse(){ return false; } + public boolean isGlobalPaxHeader(){ return false; } + public boolean isLink(){ return false; } + public boolean isOldGNUSparse(){ return false; } + public boolean isPaxGNUSparse(){ return false; } + public boolean isPaxHeader(){ return false; } + public boolean isSparse(){ return false; } + public boolean isStarSparse(){ return false; } + public boolean isSymbolicLink(){ return false; } + public int getDevMajor(){ return 0; } + public int getDevMinor(){ return 0; } + public int getGroupId(){ return 0; } + public int getMode(){ return 0; } + public int getUserId(){ return 0; } + public int hashCode(){ return 0; } + public long getLongGroupId(){ return 0; } + public long getLongUserId(){ return 0; } + public long getRealSize(){ return 0; } + public long getSize(){ return 0; } + public static int DEFAULT_DIR_MODE = 0; + public static int DEFAULT_FILE_MODE = 0; + public static int MAX_NAMELEN = 0; + public static int MILLIS_PER_SECOND = 0; + public static long UNKNOWN = 0; + public void addPaxHeader(String p0, String p1){} + public void clearExtraPaxHeaders(){} + public void parseTarHeader(byte[] p0){} + public void parseTarHeader(byte[] p0, ZipEncoding p1){} + public void setDevMajor(int p0){} + public void setDevMinor(int p0){} + public void setGroupId(int p0){} + public void setGroupId(long p0){} + public void setGroupName(String p0){} + public void setIds(int p0, int p1){} + public void setLinkName(String p0){} + public void setModTime(Date p0){} + public void setModTime(long p0){} + public void setMode(int p0){} + public void setName(String p0){} + public void setNames(String p0, String p1){} + public void setSize(long p0){} + public void setUserId(int p0){} + public void setUserId(long p0){} + public void setUserName(String p0){} + public void writeEntryHeader(byte[] p0){} + public void writeEntryHeader(byte[] p0, ZipEncoding p1, boolean p2){} +} diff --git a/java/ql/test/stubs/apache-commons-compress/org/apache/commons/compress/archivers/tar/TarConstants.java b/java/ql/test/stubs/apache-commons-compress/org/apache/commons/compress/archivers/tar/TarConstants.java new file mode 100644 index 00000000000..8fd72f07a54 --- /dev/null +++ b/java/ql/test/stubs/apache-commons-compress/org/apache/commons/compress/archivers/tar/TarConstants.java @@ -0,0 +1,70 @@ +// Generated automatically from org.apache.commons.compress.archivers.tar.TarConstants for testing purposes + +package org.apache.commons.compress.archivers.tar; + + +public interface TarConstants +{ + static String GNU_LONGLINK = null; + static String MAGIC_ANT = null; + static String MAGIC_GNU = null; + static String MAGIC_POSIX = null; + static String MAGIC_XSTAR = null; + static String VERSION_ANT = null; + static String VERSION_GNU_SPACE = null; + static String VERSION_GNU_ZERO = null; + static String VERSION_POSIX = null; + static byte LF_BLK = 0; + static byte LF_CHR = 0; + static byte LF_CONTIG = 0; + static byte LF_DIR = 0; + static byte LF_FIFO = 0; + static byte LF_GNUTYPE_LONGLINK = 0; + static byte LF_GNUTYPE_LONGNAME = 0; + static byte LF_GNUTYPE_SPARSE = 0; + static byte LF_LINK = 0; + static byte LF_NORMAL = 0; + static byte LF_OLDNORM = 0; + static byte LF_PAX_EXTENDED_HEADER_LC = 0; + static byte LF_PAX_EXTENDED_HEADER_UC = 0; + static byte LF_PAX_GLOBAL_EXTENDED_HEADER = 0; + static byte LF_SYMLINK = 0; + static int ATIMELEN_GNU = 0; + static int ATIMELEN_XSTAR = 0; + static int CHKSUMLEN = 0; + static int CHKSUM_OFFSET = 0; + static int CTIMELEN_GNU = 0; + static int CTIMELEN_XSTAR = 0; + static int DEFAULT_BLKSIZE = 0; + static int DEFAULT_RCDSIZE = 0; + static int DEVLEN = 0; + static int FORMAT_OLDGNU = 0; + static int FORMAT_POSIX = 0; + static int FORMAT_XSTAR = 0; + static int GIDLEN = 0; + static int GNAMELEN = 0; + static int ISEXTENDEDLEN_GNU = 0; + static int ISEXTENDEDLEN_GNU_SPARSE = 0; + static int LONGNAMESLEN_GNU = 0; + static int MAGICLEN = 0; + static int MAGIC_OFFSET = 0; + static int MODELEN = 0; + static int MODTIMELEN = 0; + static int NAMELEN = 0; + static int OFFSETLEN_GNU = 0; + static int PAD2LEN_GNU = 0; + static int PREFIXLEN = 0; + static int PREFIXLEN_XSTAR = 0; + static int REALSIZELEN_GNU = 0; + static int SIZELEN = 0; + static int SPARSELEN_GNU = 0; + static int SPARSELEN_GNU_SPARSE = 0; + static int UIDLEN = 0; + static int UNAMELEN = 0; + static int VERSIONLEN = 0; + static int VERSION_OFFSET = 0; + static int XSTAR_MAGIC_LEN = 0; + static int XSTAR_MAGIC_OFFSET = 0; + static long MAXID = 0; + static long MAXSIZE = 0; +} diff --git a/java/ql/test/stubs/apache-commons-compress/org/apache/commons/compress/archivers/zip/ZipEncoding.java b/java/ql/test/stubs/apache-commons-compress/org/apache/commons/compress/archivers/zip/ZipEncoding.java new file mode 100644 index 00000000000..246fcc8e75d --- /dev/null +++ b/java/ql/test/stubs/apache-commons-compress/org/apache/commons/compress/archivers/zip/ZipEncoding.java @@ -0,0 +1,12 @@ +// Generated automatically from org.apache.commons.compress.archivers.zip.ZipEncoding for testing purposes + +package org.apache.commons.compress.archivers.zip; + +import java.nio.ByteBuffer; + +public interface ZipEncoding +{ + ByteBuffer encode(String p0); + String decode(byte[] p0); + boolean canEncode(String p0); +} diff --git a/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/Header.java b/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/Header.java index 6e4886fc85c..7674e4c8b3e 100644 --- a/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/Header.java +++ b/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/Header.java @@ -1,53 +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 - * . - * - */ +// Generated automatically from org.apache.http.Header for testing purposes package org.apache.http; -/** - * Represents an HTTP header field. - * - *

The HTTP header fields follow the same generic format as - * that given in Section 3.1 of RFC 822. Each header field consists - * of a name followed by a colon (":") and the field value. Field names - * are case-insensitive. The field value MAY be preceded by any amount - * of LWS, though a single SP is preferred. - * - *

- *     message-header = field-name ":" [ field-value ]
- *     field-name     = token
- *     field-value    = *( field-content | LWS )
- *     field-content  = <the OCTETs making up the field-value
- *                      and consisting of either *TEXT or combinations
- *                      of token, separators, and quoted-string>
- *
- * - * @since 4.0 - */ -public interface Header extends NameValuePair { - HeaderElement[] getElements() throws ParseException; +import org.apache.http.HeaderElement; +import org.apache.http.NameValuePair; +public interface Header extends NameValuePair +{ + HeaderElement[] getElements(); } diff --git a/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/HeaderElement.java b/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/HeaderElement.java index 9fef05a049a..6c362a9e216 100644 --- a/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/HeaderElement.java +++ b/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/HeaderElement.java @@ -1,65 +1,15 @@ -/* - * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HeaderElement.java $ - * $Revision: 569828 $ - * $Date: 2007-08-26 08:49:38 -0700 (Sun, 26 Aug 2007) $ - * - * ==================================================================== - * 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 - * . - * - */ +// Generated automatically from org.apache.http.HeaderElement for testing purposes package org.apache.http; -/** - * One element of an HTTP {@link Header header} value. - * - * @author Oleg Kalnichevski - * - * - * - * @version $Revision: 569828 $ $Date: 2007-08-26 08:49:38 -0700 (Sun, 26 Aug - * 2007) $ - * - * @since 4.0 - * - * @deprecated Please use {@link java.net.URL#openConnection} instead. Please - * visit this - * webpage for further details. - */ -@Deprecated -public interface HeaderElement { - - String getName(); - - String getValue(); +import org.apache.http.NameValuePair; +public interface HeaderElement +{ + NameValuePair getParameter(int p0); + NameValuePair getParameterByName(String p0); NameValuePair[] getParameters(); - - NameValuePair getParameterByName(String name); - + String getName(); + String getValue(); int getParameterCount(); - - NameValuePair getParameter(int index); } diff --git a/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/HttpEntity.java b/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/HttpEntity.java index 2de524318b2..8dd6a607624 100644 --- a/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/HttpEntity.java +++ b/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/HttpEntity.java @@ -1,186 +1,20 @@ -/* - * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HttpEntity.java $ - * $Revision: 645824 $ - * $Date: 2008-04-08 03:12:41 -0700 (Tue, 08 Apr 2008) $ - * - * ==================================================================== - * 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 - * . - * - */ +// Generated automatically from org.apache.http.HttpEntity for testing purposes package org.apache.http; -import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; +import org.apache.http.Header; -/** - * An entity that can be sent or received with an HTTP message. Entities can be - * found in some {@link HttpEntityEnclosingRequest requests} and in - * {@link HttpResponse responses}, where they are optional. - *

- * In some places, the JavaDoc distinguishes three kinds of entities, depending - * on where their {@link #getContent content} originates: - *

    - *
  • streamed: The content is received from a stream, or generated on - * the fly. In particular, this category includes entities being received from a - * {@link HttpConnection connection}. {@link #isStreaming Streamed} entities are - * generally not {@link #isRepeatable repeatable}.
  • - *
  • self-contained: The content is in memory or obtained by means that - * are independent from a connection or other entity. Self-contained entities - * are generally {@link #isRepeatable repeatable}.
  • - *
  • wrapping: The content is obtained from another entity.
  • - *
- * This distinction is important for connection management with incoming - * entities. For entities that are created by an application and only sent using - * the HTTP components framework, the difference between streamed and - * self-contained is of little importance. In that case, it is suggested to - * consider non-repeatable entities as streamed, and those that are repeatable - * (without a huge effort) as self-contained. - * - * @author Oleg Kalnichevski - * - * @version $Revision: 645824 $ - * - * @since 4.0 - * - * @deprecated Please use {@link java.net.URL#openConnection} instead. Please - * visit this - * webpage for further details. - */ -@Deprecated -public interface HttpEntity { - - /** - * Tells if the entity is capable to produce its data more than once. A - * repeatable entity's getContent() and writeTo(OutputStream) methods can be - * called more than once whereas a non-repeatable entity's can not. - * - * @return true if the entity is repeatable, false otherwise. - */ - boolean isRepeatable(); - - /** - * Tells about chunked encoding for this entity. The primary purpose of this - * method is to indicate whether chunked encoding should be used when the entity - * is sent. For entities that are received, it can also indicate whether the - * entity was received with chunked encoding.
- * The behavior of wrapping entities is implementation dependent, but should - * respect the primary purpose. - * - * @return true if chunked encoding is preferred for this entity, - * or false if it is not - */ - boolean isChunked(); - - /** - * Tells the length of the content, if known. - * - * @return the number of bytes of the content, or a negative number if unknown. - * If the content length is known but exceeds - * {@link java.lang.Long#MAX_VALUE Long.MAX_VALUE}, a negative number is - * returned. - */ - long getContentLength(); - - /** - * Obtains the Content-Type header, if known. This is the header that should be - * used when sending the entity, or the one that was received with the entity. - * It can include a charset attribute. - * - * @return the Content-Type header for this entity, or null if the - * content type is unknown - */ - Header getContentType(); - - /** - * Obtains the Content-Encoding header, if known. This is the header that should - * be used when sending the entity, or the one that was received with the - * entity. Wrapping entities that modify the content encoding should adjust this - * header accordingly. - * - * @return the Content-Encoding header for this entity, or null if - * the content encoding is unknown - */ +public interface HttpEntity +{ Header getContentEncoding(); - - /** - * Creates a new InputStream object of the entity. It is a programming error to - * return the same InputStream object more than once. Entities that are not - * {@link #isRepeatable repeatable} will throw an exception if this method is - * called multiple times. - * - * @return a new input stream that returns the entity data. - * - * @throws IOException if the stream could not be created - * @throws IllegalStateException if this entity is not repeatable and the stream - * has already been obtained previously - */ - InputStream getContent() throws IOException, IllegalStateException; - - /** - * Writes the entity content to the output stream. - * - * @param outstream the output stream to write entity content to - * - * @throws IOException if an I/O error occurs - */ - void writeTo(OutputStream outstream) throws IOException; - - /** - * Tells whether this entity depends on an underlying stream. Streamed entities - * should return true until the content has been consumed, - * false afterwards. Self-contained entities should return - * false. Wrapping entities should delegate this call to the - * wrapped entity.
- * The content of a streamed entity is consumed when the stream returned by - * {@link #getContent getContent} has been read to EOF, or after - * {@link #consumeContent consumeContent} has been called. If a streamed entity - * can not detect whether the stream has been read to EOF, it should return - * true until {@link #consumeContent consumeContent} is called. - * - * @return true if the entity content is streamed and not yet - * consumed, false otherwise - */ - boolean isStreaming(); // don't expect an exception here - - /** - * TODO: The name of this method is misnomer. It will be renamed to #finish() in - * the next major release.
- * This method is called to indicate that the content of this entity is no - * longer required. All entity implementations are expected to release all - * allocated resources as a result of this method invocation. Content streaming - * entities are also expected to dispose of the remaining content, if any. - * Wrapping entities should delegate this call to the wrapped entity.
- * This method is of particular importance for entities being received from a - * {@link HttpConnection connection}. The entity needs to be consumed completely - * in order to re-use the connection with keep-alive. - * - * @throws IOException if an I/O error occurs. This indicates that connection - * keep-alive is not possible. - */ - void consumeContent() throws IOException; - -} // interface HttpEntity + Header getContentType(); + InputStream getContent(); + boolean isChunked(); + boolean isRepeatable(); + boolean isStreaming(); + long getContentLength(); + void consumeContent(); + void writeTo(OutputStream p0); +} diff --git a/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/NameValuePair.java b/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/NameValuePair.java index 4ed98cac597..2219b56c811 100644 --- a/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/NameValuePair.java +++ b/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/NameValuePair.java @@ -1,124 +1,10 @@ -/* - * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/NameValuePair.java $ - * $Revision: 496070 $ - * $Date: 2007-01-14 04:18:34 -0800 (Sun, 14 Jan 2007) $ - * - * ==================================================================== - * 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 - * . - * - */ +// Generated automatically from org.apache.http.NameValuePair for testing purposes package org.apache.http; -/** - * A simple class encapsulating an attribute/value pair. - *

- * This class comforms to the generic grammar and formatting rules outlined in - * the Section - * 2.2 and Section - * 3.6 of RFC - * 2616 - *

- * 2.2 Basic Rules - *

- * The following rules are used throughout this specification to describe basic - * parsing constructs. The US-ASCII coded character set is defined by ANSI - * X3.4-1986. - *

- * - *
- *     OCTET          = 
- *     CHAR           = 
- *     UPALPHA        = 
- *     LOALPHA        = 
- *     ALPHA          = UPALPHA | LOALPHA
- *     DIGIT          = 
- *     CTL            = 
- *     CR             = 
- *     LF             = 
- *     SP             = 
- *     HT             = 
- *     <">            = 
- * 
- *

- * Many HTTP/1.1 header field values consist of words separated by LWS or - * special characters. These special characters MUST be in a quoted string to be - * used within a parameter value (as defined in section 3.6). - *

- * - *

- * token          = 1*
- * separators     = "(" | ")" | "<" | ">" | "@"
- *                | "," | ";" | ":" | "\" | <">
- *                | "/" | "[" | "]" | "?" | "="
- *                | "{" | "}" | SP | HT
- * 
- *

- * A string of text is parsed as a single word if it is quoted using - * double-quote marks. - *

- * - *
- * quoted-string  = ( <"> *(qdtext | quoted-pair ) <"> )
- * qdtext         = >
- * 
- *

- * The backslash character ("\") MAY be used as a single-character quoting - * mechanism only within quoted-string and comment constructs. - *

- * - *
- * quoted-pair    = "\" CHAR
- * 
- * - * 3.6 Transfer Codings - *

- * Parameters are in the form of attribute/value pairs. - *

- * - *
- * parameter               = attribute "=" value
- * attribute               = token
- * value                   = token | quoted-string
- * 
- * - * @author Oleg Kalnichevski - * - * - * @deprecated Please use {@link java.net.URL#openConnection} instead. Please - * visit this - * webpage for further details. - */ -@Deprecated -public interface NameValuePair { +public interface NameValuePair +{ String getName(); - String getValue(); - } diff --git a/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/client/utils/URIBuilder.java b/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/client/utils/URIBuilder.java new file mode 100644 index 00000000000..e81eead0e88 --- /dev/null +++ b/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/client/utils/URIBuilder.java @@ -0,0 +1,51 @@ +// Generated automatically from org.apache.http.client.utils.URIBuilder for testing purposes + +package org.apache.http.client.utils; + +import java.net.URI; +import java.nio.charset.Charset; +import java.util.List; +import org.apache.http.NameValuePair; + +public class URIBuilder +{ + public Charset getCharset(){ return null; } + public List getQueryParams(){ return null; } + public List getPathSegments(){ return null; } + public String getFragment(){ return null; } + public String getHost(){ return null; } + public String getPath(){ return null; } + public String getScheme(){ return null; } + public String getUserInfo(){ return null; } + public String toString(){ return null; } + public URI build(){ return null; } + public URIBuilder addParameter(String p0, String p1){ return null; } + public URIBuilder addParameters(List p0){ return null; } + public URIBuilder clearParameters(){ return null; } + public URIBuilder removeQuery(){ return null; } + public URIBuilder setCharset(Charset p0){ return null; } + public URIBuilder setCustomQuery(String p0){ return null; } + public URIBuilder setFragment(String p0){ return null; } + public URIBuilder setHost(String p0){ return null; } + public URIBuilder setParameter(String p0, String p1){ return null; } + public URIBuilder setParameters(List p0){ return null; } + public URIBuilder setParameters(NameValuePair... p0){ return null; } + public URIBuilder setPath(String p0){ return null; } + public URIBuilder setPathSegments(List p0){ return null; } + public URIBuilder setPathSegments(String... p0){ return null; } + public URIBuilder setPort(int p0){ return null; } + public URIBuilder setQuery(String p0){ return null; } + public URIBuilder setScheme(String p0){ return null; } + public URIBuilder setUserInfo(String p0){ return null; } + public URIBuilder setUserInfo(String p0, String p1){ return null; } + public URIBuilder(){} + public URIBuilder(String p0){} + public URIBuilder(String p0, Charset p1){} + public URIBuilder(URI p0){} + public URIBuilder(URI p0, Charset p1){} + public boolean isAbsolute(){ return false; } + public boolean isOpaque(){ return false; } + public boolean isPathEmpty(){ return false; } + public boolean isQueryEmpty(){ return false; } + public int getPort(){ return 0; } +} diff --git a/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/client/utils/URLEncodedUtils.java b/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/client/utils/URLEncodedUtils.java new file mode 100644 index 00000000000..3dd3278311e --- /dev/null +++ b/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/client/utils/URLEncodedUtils.java @@ -0,0 +1,34 @@ +// Generated automatically from org.apache.http.client.utils.URLEncodedUtils for testing purposes + +package org.apache.http.client.utils; + +import java.net.URI; +import java.nio.charset.Charset; +import java.util.List; +import java.util.Scanner; +import org.apache.http.HttpEntity; +import org.apache.http.NameValuePair; +import org.apache.http.util.CharArrayBuffer; + +public class URLEncodedUtils +{ + public URLEncodedUtils(){} + public static List parse(CharArrayBuffer p0, Charset p1, char... p2){ return null; } + public static List parse(HttpEntity p0){ return null; } + public static List parse(String p0, Charset p1){ return null; } + public static List parse(String p0, Charset p1, char... p2){ return null; } + public static List parse(URI p0, Charset p1){ return null; } + public static List parse(URI p0, String p1){ return null; } + public static List parsePathSegments(CharSequence p0){ return null; } + public static List parsePathSegments(CharSequence p0, Charset p1){ return null; } + public static String CONTENT_TYPE = null; + public static String format(Iterable p0, Charset p1){ return null; } + public static String format(Iterable p0, char p1, Charset p2){ return null; } + public static String format(List p0, String p1){ return null; } + public static String format(List p0, char p1, String p2){ return null; } + public static String formatSegments(Iterable p0, Charset p1){ return null; } + public static String formatSegments(String... p0){ return null; } + public static boolean isEncoded(HttpEntity p0){ return false; } + public static void parse(List p0, Scanner p1, String p2){} + public static void parse(List p0, Scanner p1, String p2, String p3){} +} diff --git a/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/util/ByteArrayBuffer.java b/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/util/ByteArrayBuffer.java index 9bc34144de1..7fc54ea0a67 100644 --- a/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/util/ByteArrayBuffer.java +++ b/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/util/ByteArrayBuffer.java @@ -1,93 +1,28 @@ -/* - * ==================================================================== - * 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 - * . - * - */ +// Generated automatically from org.apache.http.util.ByteArrayBuffer for testing purposes package org.apache.http.util; import java.io.Serializable; +import org.apache.http.util.CharArrayBuffer; -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 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[] buffer() { - 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; - } - +public class ByteArrayBuffer implements Serializable +{ + protected ByteArrayBuffer() {} + public ByteArrayBuffer(int p0){} + public boolean isEmpty(){ return false; } + public boolean isFull(){ return false; } + public byte[] buffer(){ return null; } + public byte[] toByteArray(){ return null; } + public int byteAt(int p0){ return 0; } + public int capacity(){ return 0; } + public int indexOf(byte p0){ return 0; } + public int indexOf(byte p0, int p1, int p2){ return 0; } + public int length(){ return 0; } + public void append(CharArrayBuffer p0, int p1, int p2){} + public void append(byte[] p0, int p1, int p2){} + public void append(char[] p0, int p1, int p2){} + public void append(int p0){} + public void clear(){} + public void ensureCapacity(int p0){} + public void setLength(int p0){} } diff --git a/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/util/CharArrayBuffer.java b/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/util/CharArrayBuffer.java index 465962e362e..07c43f35ca1 100644 --- a/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/util/CharArrayBuffer.java +++ b/java/ql/test/stubs/apache-http-4.4.13/org/apache/http/util/CharArrayBuffer.java @@ -1,127 +1,36 @@ -/* - * ==================================================================== - * 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 - * . - * - */ +// Generated automatically from org.apache.http.util.CharArrayBuffer for testing purposes package org.apache.http.util; import java.io.Serializable; -import java.nio.CharBuffer; - - -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[] buffer() { - 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; - } +import org.apache.http.util.ByteArrayBuffer; +public class CharArrayBuffer implements CharSequence, Serializable +{ + protected CharArrayBuffer() {} + public CharArrayBuffer(int p0){} + public CharSequence subSequence(int p0, int p1){ return null; } + public String substring(int p0, int p1){ return null; } + public String substringTrimmed(int p0, int p1){ return null; } + public String toString(){ return null; } + public boolean isEmpty(){ return false; } + public boolean isFull(){ return false; } + public char charAt(int p0){ return '0'; } + public char[] buffer(){ return null; } + public char[] toCharArray(){ return null; } + public int capacity(){ return 0; } + public int indexOf(int p0){ return 0; } + public int indexOf(int p0, int p1, int p2){ return 0; } + public int length(){ return 0; } + public void append(ByteArrayBuffer p0, int p1, int p2){} + public void append(CharArrayBuffer p0){} + public void append(CharArrayBuffer p0, int p1, int p2){} + public void append(Object p0){} + public void append(String p0){} + public void append(byte[] p0, int p1, int p2){} + public void append(char p0){} + public void append(char[] p0, int p1, int p2){} + public void clear(){} + public void ensureCapacity(int p0){} + public void setLength(int p0){} }