mirror of
https://github.com/github/codeql.git
synced 2026-04-23 15:55:18 +02:00
update tests and use TaintFlowTestArgString
add stubs add missed sink models
This commit is contained in:
8
java/ql/lib/ext/experimental/java.nio.model.yml
Normal file
8
java/ql/lib/ext/experimental/java.nio.model.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
extensions:
|
||||
- addsTo:
|
||||
pack: codeql/java-all
|
||||
extensible: sinkModel
|
||||
data:
|
||||
- ["java.nio.file","FileSystems",true,"getFileSystem","(URI)","","Argument[0]","path-injection","manual"]
|
||||
- ["java.nio.channels","AsynchronousFileChannel",true,"open","(Path,OpenOption[])","","Argument[0]","path-injection","manual"]
|
||||
- ["java.nio.channels","AsynchronousFileChannel",true,"open","(Path,Set,ExecutorService,FileAttribute[])","","Argument[0]","path-injection","manual"]
|
||||
6
java/ql/lib/ext/experimental/java.util.zip.model.yml
Normal file
6
java/ql/lib/ext/experimental/java.util.zip.model.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
extensions:
|
||||
- addsTo:
|
||||
pack: codeql/java-all
|
||||
extensible: sinkModel
|
||||
data:
|
||||
- ["java.util.zip","ZipFile",true,"ZipFile","(String)","","Argument[0]","path-injection","manual"]
|
||||
@@ -10,4 +10,4 @@ extensions:
|
||||
- ["software.amazon.awssdk.transfer.s3.model","ResumableFileDownload",true,"fromFile","(Path)","","Argument[0]","path-injection","manual"]
|
||||
- ["software.amazon.awssdk.transfer.s3.model","ResumableFileDownload",true,"serializeToFile","(Path)","","Argument[0]","path-injection","manual"]
|
||||
- ["software.amazon.awssdk.transfer.s3.model","ResumableFileUpload",true,"fromFile","(Path)","","Argument[0]","path-injection","manual"]
|
||||
- ["software.amazon.awssdk.transfer.s3.model","UploadDirectoryRequest$Builder",true,"source","(Path)","","Argument[0]","code-injection","manual"]
|
||||
- ["software.amazon.awssdk.transfer.s3.model","UploadDirectoryRequest$Builder",true,"source","(Path)","","Argument[0]","path-injection","manual"]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
private import java
|
||||
private import semmle.code.java.dataflow.ExternalFlow
|
||||
private import semmle.code.java.dataflow.internal.DataFlowPrivate
|
||||
private import semmle.code.java.dataflow.internal.FlowSummaryImpl
|
||||
private import semmle.code.java.dataflow.internal.ModelExclusions
|
||||
private import ModelEditor
|
||||
|
||||
@@ -8,7 +8,7 @@ private import ModelEditor
|
||||
* A class of effectively public callables from source code.
|
||||
*/
|
||||
class PublicEndpointFromSource extends Endpoint, ModelApi {
|
||||
override predicate isSource() { SourceSinkInterpretationInput::sourceElement(this, _, _, _, _) }
|
||||
override predicate isSource() { this instanceof SourceCallable }
|
||||
|
||||
override predicate isSink() { SourceSinkInterpretationInput::sinkElement(this, _, _, _, _) }
|
||||
override predicate isSink() { this instanceof SinkCallable }
|
||||
}
|
||||
|
||||
@@ -41,18 +41,21 @@ private module Printing implements PrintingSig {
|
||||
|
||||
module ModelPrinting = PrintingImpl<Printing>;
|
||||
|
||||
/**
|
||||
* Holds if `c` is a relevant content kind, where the underlying type is relevant.
|
||||
*/
|
||||
private predicate isRelevantTypeInContent(DataFlow::Content c) {
|
||||
isRelevantType(getUnderlyingContentType(c))
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if data can flow from `node1` to `node2` either via a read or a write of an intermediate field `f`.
|
||||
*/
|
||||
private predicate isRelevantTaintStep(DataFlow::Node node1, DataFlow::Node node2) {
|
||||
exists(DataFlow::Content f |
|
||||
DataFlowPrivate::readStep(node1, f, node2) and
|
||||
if f instanceof DataFlow::FieldContent
|
||||
then isRelevantType(f.(DataFlow::FieldContent).getField().getType())
|
||||
else
|
||||
if f instanceof DataFlow::SyntheticFieldContent
|
||||
then isRelevantType(f.(DataFlow::SyntheticFieldContent).getField().getType())
|
||||
else any()
|
||||
// Partially restrict the content types used for intermediate steps.
|
||||
(not exists(getUnderlyingContentType(f)) or isRelevantTypeInContent(f))
|
||||
)
|
||||
or
|
||||
exists(DataFlow::Content f | DataFlowPrivate::storeStep(node1, f, node2) |
|
||||
@@ -61,12 +64,11 @@ private predicate isRelevantTaintStep(DataFlow::Node node1, DataFlow::Node node2
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if content `c` is either a field or synthetic field of a relevant type
|
||||
* or a container like content.
|
||||
* Holds if content `c` is either a field, a synthetic field or language specific
|
||||
* content of a relevant type or a container like content.
|
||||
*/
|
||||
private predicate isRelevantContent(DataFlow::Content c) {
|
||||
isRelevantType(c.(DataFlow::FieldContent).getField().getType()) or
|
||||
isRelevantType(c.(DataFlow::SyntheticFieldContent).getField().getType()) or
|
||||
isRelevantTypeInContent(c) or
|
||||
DataFlowPrivate::containerContent(c)
|
||||
}
|
||||
|
||||
@@ -258,6 +260,10 @@ module PropagateToSinkConfig implements DataFlow::ConfigSig {
|
||||
predicate isBarrier(DataFlow::Node node) { sinkModelSanitizer(node) }
|
||||
|
||||
DataFlow::FlowFeature getAFeature() { result instanceof DataFlow::FeatureHasSourceCallContext }
|
||||
|
||||
predicate isAdditionalFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
|
||||
isRelevantTaintStep(node1, node2)
|
||||
}
|
||||
}
|
||||
|
||||
private module PropagateToSink = TaintTracking::Global<PropagateToSinkConfig>;
|
||||
|
||||
@@ -186,6 +186,14 @@ predicate isRelevantType(J::Type t) {
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the underlying type of the content `c`.
|
||||
*/
|
||||
J::Type getUnderlyingContentType(DataFlow::Content c) {
|
||||
result = c.(DataFlow::FieldContent).getField().getType() or
|
||||
result = c.(DataFlow::SyntheticFieldContent).getField().getType()
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the MaD string representation of the qualifier.
|
||||
*/
|
||||
|
||||
@@ -1,15 +1,24 @@
|
||||
package com.PathInjection;
|
||||
|
||||
import software.amazon.awssdk.transfer.s3.S3TransferManager;
|
||||
import software.amazon.awssdk.transfer.s3.model.*;
|
||||
import software.amazon.awssdk.transfer.s3.model.UploadFileRequest;
|
||||
import software.amazon.awssdk.transfer.s3.model.FileUpload;
|
||||
import software.amazon.awssdk.transfer.s3.model.FileDownload;
|
||||
import software.amazon.awssdk.transfer.s3.model.DirectoryUpload;
|
||||
import software.amazon.awssdk.transfer.s3.model.CompletedDirectoryUpload;
|
||||
import software.amazon.awssdk.transfer.s3.model.DirectoryDownload;
|
||||
import software.amazon.awssdk.transfer.s3.model.CompletedDirectoryDownload;
|
||||
import software.amazon.awssdk.transfer.s3.model.DownloadDirectoryRequest;
|
||||
import software.amazon.awssdk.transfer.s3.model.DownloadFileRequest;
|
||||
import software.amazon.awssdk.transfer.s3.model.ResumableFileUpload;
|
||||
import software.amazon.awssdk.transfer.s3.model.UploadDirectoryRequest;
|
||||
import software.amazon.awssdk.transfer.s3.model.ResumableFileDownload;
|
||||
import software.amazon.awssdk.transfer.s3.model.CompletedFileUpload;
|
||||
import software.amazon.awssdk.transfer.s3.model.CompletedFileDownload;
|
||||
import software.amazon.awssdk.transfer.s3.progress.LoggingTransferListener;
|
||||
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
import java.nio.file.Paths;
|
||||
|
||||
public class S3PathInjection {
|
||||
public class AmazonS3 {
|
||||
S3TransferManager transferManager = S3TransferManager.create();
|
||||
String bucketName = "bucketTest";
|
||||
String key = "keyTest";
|
||||
@@ -19,7 +28,7 @@ public class S3PathInjection {
|
||||
UploadFileRequest.builder()
|
||||
.putObjectRequest(b -> b.bucket(this.bucketName).key(this.key))
|
||||
.addTransferListener(LoggingTransferListener.create())
|
||||
.source(Paths.get(filePathURI)) // $ hasTaintFlow
|
||||
.source(Paths.get(filePathURI)) // $ hasTaintFlow="get(...)"
|
||||
.build();
|
||||
|
||||
FileUpload fileUpload = this.transferManager.uploadFile(uploadFileRequest);
|
||||
@@ -33,7 +42,7 @@ public class S3PathInjection {
|
||||
UploadFileRequest.builder()
|
||||
.putObjectRequest(b -> b.bucket(this.bucketName).key(this.key))
|
||||
.addTransferListener(LoggingTransferListener.create())
|
||||
.source(Paths.get(filePathURI)) // $ hasTaintFlow
|
||||
.source(Paths.get(filePathURI)) // $ hasTaintFlow="get(...)"
|
||||
.build();
|
||||
|
||||
// Initiate the transfer
|
||||
@@ -41,10 +50,10 @@ public class S3PathInjection {
|
||||
// Pause the upload
|
||||
ResumableFileUpload resumableFileUpload = upload.pause();
|
||||
// Optionally, persist the resumableFileUpload
|
||||
resumableFileUpload.serializeToFile(Paths.get(filePathURI)); // $ hasTaintFlow
|
||||
resumableFileUpload.serializeToFile(Paths.get(filePathURI)); // $ hasTaintFlow="get(...)"
|
||||
// Retrieve the resumableFileUpload from the file
|
||||
ResumableFileUpload persistedResumableFileUpload =
|
||||
ResumableFileUpload.fromFile(Paths.get(filePathURI)); // $ hasTaintFlow
|
||||
ResumableFileUpload.fromFile(Paths.get(filePathURI)); // $ hasTaintFlow="get(...)"
|
||||
// Resume the upload
|
||||
FileUpload resumedUpload = this.transferManager.resumeUploadFile(persistedResumableFileUpload);
|
||||
// Wait for the transfer to complete
|
||||
@@ -59,7 +68,7 @@ public class S3PathInjection {
|
||||
DownloadFileRequest.builder()
|
||||
.getObjectRequest(b -> b.bucket(this.bucketName).key(this.key))
|
||||
.addTransferListener(LoggingTransferListener.create())
|
||||
.destination(Paths.get(downloadedFileWithPath)) // $ hasTaintFlow
|
||||
.destination(Paths.get(downloadedFileWithPath)) // $ hasTaintFlow="get(...)"
|
||||
.build();
|
||||
|
||||
// Initiate the transfer
|
||||
@@ -67,10 +76,10 @@ public class S3PathInjection {
|
||||
// Pause the download
|
||||
ResumableFileDownload resumableFileDownload = download.pause();
|
||||
// Optionally, persist the resumableFileDownload
|
||||
resumableFileDownload.serializeToFile(Paths.get(downloadedFileWithPath)); // $ hasTaintFlow
|
||||
resumableFileDownload.serializeToFile(Paths.get(downloadedFileWithPath)); // $ hasTaintFlow="get(...)"
|
||||
// Retrieve the resumableFileDownload from the file
|
||||
ResumableFileDownload persistedResumableFileDownload =
|
||||
ResumableFileDownload.fromFile(Paths.get(downloadedFileWithPath)); // $ hasTaintFlow
|
||||
ResumableFileDownload.fromFile(Paths.get(downloadedFileWithPath)); // $ hasTaintFlow="get(...)"
|
||||
// Resume the download
|
||||
FileDownload resumedDownload =
|
||||
this.transferManager.resumeDownloadFile(persistedResumableFileDownload);
|
||||
@@ -85,7 +94,7 @@ public class S3PathInjection {
|
||||
DirectoryUpload directoryUpload =
|
||||
this.transferManager.uploadDirectory(
|
||||
UploadDirectoryRequest.builder()
|
||||
.source(Paths.get(sourceDirectory)) // $ hasTaintFlow
|
||||
.source(Paths.get(sourceDirectory)) // $ hasTaintFlow="get(...)"
|
||||
.bucket(this.bucketName)
|
||||
.build());
|
||||
|
||||
@@ -98,7 +107,7 @@ public class S3PathInjection {
|
||||
DownloadFileRequest.builder()
|
||||
.getObjectRequest(b -> b.bucket(this.bucketName).key(this.key))
|
||||
.addTransferListener(LoggingTransferListener.create())
|
||||
.destination(Paths.get(downloadedFileWithPath)) // $ hasTaintFlow
|
||||
.destination(Paths.get(downloadedFileWithPath)) // $ hasTaintFlow="get(...)"
|
||||
.build();
|
||||
|
||||
FileDownload downloadFile = this.transferManager.downloadFile(downloadFileRequest);
|
||||
@@ -111,7 +120,7 @@ public class S3PathInjection {
|
||||
DirectoryDownload directoryDownload =
|
||||
this.transferManager.downloadDirectory(
|
||||
DownloadDirectoryRequest.builder()
|
||||
.destination(Paths.get(destinationPathURI)) // $ hasTaintFlow
|
||||
.destination(Paths.get(destinationPathURI)) // $ hasTaintFlow="get(...)"
|
||||
.bucket(this.bucketName)
|
||||
.build());
|
||||
CompletedDirectoryDownload completedDirectoryDownload =
|
||||
@@ -1,38 +1,39 @@
|
||||
package com.PathInjection;
|
||||
|
||||
import java.io.*;
|
||||
import java.io.IOException;
|
||||
import java.io.File;
|
||||
import java.nio.channels.AsynchronousFileChannel;
|
||||
import java.nio.file.*;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.LinkOption;
|
||||
import java.nio.file.FileSystems;
|
||||
import java.nio.file.attribute.FileAttribute;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
class fileAttr implements FileAttribute<String> {
|
||||
public String name() {
|
||||
return "file";
|
||||
public class JavaNio {
|
||||
static class FileAttr implements FileAttribute<String> {
|
||||
public String name() {
|
||||
return "file";
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return "value";
|
||||
}
|
||||
}
|
||||
|
||||
public String value() {
|
||||
return "value";
|
||||
}
|
||||
}
|
||||
|
||||
public class CommonsIOPathInjection {
|
||||
public void PathInjection(Path src, File srcF) throws IOException {
|
||||
AsynchronousFileChannel.open(src); // $ hasTaintFlow
|
||||
AsynchronousFileChannel.open(src, LinkOption.NOFOLLOW_LINKS); // $ hasTaintFlow
|
||||
AsynchronousFileChannel.open(src); // $ hasTaintFlow="src"
|
||||
AsynchronousFileChannel.open(src, LinkOption.NOFOLLOW_LINKS); // $ hasTaintFlow="src"
|
||||
AsynchronousFileChannel.open(
|
||||
src, LinkOption.NOFOLLOW_LINKS, LinkOption.NOFOLLOW_LINKS); // $ hasTaintFlow
|
||||
src, LinkOption.NOFOLLOW_LINKS, LinkOption.NOFOLLOW_LINKS); // $ hasTaintFlow="src"
|
||||
ExecutorService executor = Executors.newFixedThreadPool(10);
|
||||
AsynchronousFileChannel.open(
|
||||
src, Set.of(LinkOption.NOFOLLOW_LINKS), executor); // $ hasTaintFlow
|
||||
src, Set.of(LinkOption.NOFOLLOW_LINKS), executor); // $ hasTaintFlow="src"
|
||||
AsynchronousFileChannel.open(
|
||||
src, // $ hasTaintFlow
|
||||
src, // $ hasTaintFlow="src"
|
||||
Set.of(LinkOption.NOFOLLOW_LINKS),
|
||||
executor,
|
||||
new fileAttr());
|
||||
new FileAttr());
|
||||
|
||||
FileSystems.getFileSystem(srcF.toURI()); // $ hasTaintFlow
|
||||
FileSystems.getFileSystem(srcF.toURI()); // $ hasTaintFlow="toURI(...)"
|
||||
}
|
||||
}
|
||||
35
java/ql/test/experimental/query-tests/security/CWE-022/Main.java
Executable file
35
java/ql/test/experimental/query-tests/security/CWE-022/Main.java
Executable file
@@ -0,0 +1,35 @@
|
||||
import java.io.BufferedReader;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Path;
|
||||
import java.net.Socket;
|
||||
|
||||
public class Main {
|
||||
public void sendUserFileGood(Socket sock) throws IOException {
|
||||
BufferedReader filenameReader =
|
||||
new BufferedReader(new InputStreamReader(sock.getInputStream(), StandardCharsets.UTF_8));
|
||||
String path = filenameReader.readLine();
|
||||
Path src = Path.of(path);
|
||||
File srcF = new File(path);
|
||||
|
||||
new JavaNio().PathInjection(src, srcF);
|
||||
|
||||
new SpringIo().PathInjection(path);
|
||||
|
||||
AmazonS3 s3PathInjection = new AmazonS3();
|
||||
s3PathInjection.downloadFileResumable(src.toUri());
|
||||
s3PathInjection.downloadFile(path);
|
||||
s3PathInjection.downloadObjectsToDirectory(src.toUri());
|
||||
s3PathInjection.uploadFileResumable(src.toUri());
|
||||
s3PathInjection.uploadDirectory(src.toUri());
|
||||
s3PathInjection.uploadFile(src.toUri());
|
||||
|
||||
Zip4j zip4jfile = new Zip4j();
|
||||
zip4jfile.PathInjection(path);
|
||||
|
||||
ZipFile zipfile = new ZipFile();
|
||||
zipfile.PathInjection(path);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module version="4">
|
||||
<component name="AdditionalModuleElements">
|
||||
<content url="file://$MODULE_DIR$" dumb="true">
|
||||
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" />
|
||||
</content>
|
||||
</component>
|
||||
</module>
|
||||
46
java/ql/test/experimental/query-tests/security/CWE-022/SpringIo.java
Executable file
46
java/ql/test/experimental/query-tests/security/CWE-022/SpringIo.java
Executable file
@@ -0,0 +1,46 @@
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
import java.nio.file.FileSystems;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import org.springframework.core.io.FileUrlResource;
|
||||
import org.springframework.core.io.FileSystemResource;
|
||||
import org.springframework.core.io.PathResource;
|
||||
import org.springframework.core.io.UrlResource;
|
||||
import org.springframework.util.FileCopyUtils;
|
||||
import org.springframework.util.FileSystemUtils;
|
||||
|
||||
public class SpringIo {
|
||||
public void PathInjection(String path) throws IOException {
|
||||
Path fileStorageLocation = Paths.get(path).toAbsolutePath().normalize();
|
||||
Path filePath = fileStorageLocation.resolve(path).normalize();
|
||||
File pathFile = new File(path);
|
||||
|
||||
new UrlResource(filePath.toUri()); // $ hasTaintFlow="toUri(...)"
|
||||
new UrlResource(filePath.toUri().toURL()); // $ hasTaintFlow="toURL(...)"
|
||||
new UrlResource("file", path); // $ hasTaintFlow="path"
|
||||
new UrlResource("file", path, "#"); // $ hasTaintFlow="path"
|
||||
new UrlResource(path); // $ hasTaintFlow="path"
|
||||
|
||||
new PathResource(path); // $ hasTaintFlow="path"
|
||||
new PathResource(filePath); // $ hasTaintFlow="filePath"
|
||||
new PathResource(filePath.toUri()); // $ hasTaintFlow="toUri(...)"
|
||||
|
||||
new FileUrlResource(filePath.toUri().toURL()); // $ hasTaintFlow="toURL(...)"
|
||||
new FileUrlResource(path); // $ hasTaintFlow="path"
|
||||
|
||||
new FileSystemResource(pathFile); // $ hasTaintFlow="pathFile"
|
||||
new FileSystemResource(path); // $ hasTaintFlow="path"
|
||||
new FileSystemResource(filePath); // $ hasTaintFlow="filePath"
|
||||
new FileSystemResource(
|
||||
FileSystems.getFileSystem(URI.create("file:///")), path); // $ hasTaintFlow="path"
|
||||
|
||||
FileSystemUtils.copyRecursively(filePath, filePath.resolve("/newPath")); // $ hasTaintFlow="filePath" hasTaintFlow="resolve(...)"
|
||||
FileSystemUtils.copyRecursively(pathFile, pathFile); // $ hasTaintFlow="pathFile"
|
||||
FileSystemUtils.deleteRecursively(pathFile); // $ hasTaintFlow="pathFile"
|
||||
FileSystemUtils.deleteRecursively(filePath); // $ hasTaintFlow="filePath"
|
||||
FileCopyUtils.copy(pathFile, pathFile); // $ hasTaintFlow="pathFile"
|
||||
FileCopyUtils.copyToByteArray(pathFile); // $ hasTaintFlow="pathFile"
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,9 @@
|
||||
import java
|
||||
import TestUtilities.InlineFlowTest
|
||||
import semmle.code.java.security.TaintedPathQuery
|
||||
import TaintFlowTest<TaintedPathConfig>
|
||||
import TaintFlowTestArgString<TaintedPathConfig, getArgString/2>
|
||||
|
||||
string getArgString(DataFlow::Node src, DataFlow::Node sink) {
|
||||
exists(src) and
|
||||
result = "\"" + sink.toString() + "\""
|
||||
}
|
||||
|
||||
9
java/ql/test/experimental/query-tests/security/CWE-022/Zip4j.java
Executable file
9
java/ql/test/experimental/query-tests/security/CWE-022/Zip4j.java
Executable file
@@ -0,0 +1,9 @@
|
||||
import java.io.IOException;
|
||||
import net.lingala.zip4j.ZipFile;
|
||||
|
||||
public class Zip4j {
|
||||
public void PathInjection(String path) throws IOException {
|
||||
ZipFile zipfile = new ZipFile(path); // $ hasTaintFlow="path"
|
||||
zipfile.extractAll(path); // $ hasTaintFlow="path"
|
||||
}
|
||||
}
|
||||
7
java/ql/test/experimental/query-tests/security/CWE-022/ZipFile.java
Executable file
7
java/ql/test/experimental/query-tests/security/CWE-022/ZipFile.java
Executable file
@@ -0,0 +1,7 @@
|
||||
import java.io.IOException;
|
||||
|
||||
public class ZipFile {
|
||||
public void PathInjection(String path) throws IOException {
|
||||
new java.util.zip.ZipFile(path); // $ hasTaintFlow="path"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../stubs/lingala-zip4j-2.11.5:${testdir}/../../../stubs/software-amazon-awssdk-crt-0.20.3:${testdir}/../../../stubs/org-springframework-6.1.4
|
||||
@@ -1,45 +0,0 @@
|
||||
package com.PathInjection;
|
||||
|
||||
import java.io.*;
|
||||
import java.io.IOException;
|
||||
import java.net.URISyntaxException;
|
||||
import java.nio.file.Path;
|
||||
import javax.servlet.annotation.MultipartConfig;
|
||||
import javax.servlet.annotation.WebServlet;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import net.lingala.zip4j.ZipFile;
|
||||
|
||||
@WebServlet(
|
||||
name = "helloServlet",
|
||||
urlPatterns = {"/hello"})
|
||||
@MultipartConfig()
|
||||
public class HelloServlet extends HttpServlet {
|
||||
|
||||
public void init() {}
|
||||
|
||||
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
|
||||
String path = request.getParameter("path");
|
||||
Path src = Path.of(path);
|
||||
File srcF = new File(path);
|
||||
new CommonsIOPathInjection().PathInjection(src, srcF);
|
||||
new SpringIoPathInjection().PathInjection(path);
|
||||
S3PathInjection s3PathInjection = new S3PathInjection();
|
||||
s3PathInjection.downloadFileResumable(src.toUri());
|
||||
s3PathInjection.downloadFile(path);
|
||||
s3PathInjection.downloadObjectsToDirectory(src.toUri());
|
||||
s3PathInjection.uploadFileResumable(src.toUri());
|
||||
s3PathInjection.uploadDirectory(src.toUri());
|
||||
s3PathInjection.uploadFile(src.toUri());
|
||||
|
||||
ZipFile zipfile = new ZipFile(path);
|
||||
zipfile.extractAll(path);
|
||||
new java.util.zip.ZipFile(path);
|
||||
|
||||
PrintWriter out = response.getWriter();
|
||||
response.setContentType("text/html");
|
||||
out.println("<html><body>end</body></html>");
|
||||
}
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
package com.PathInjection;
|
||||
|
||||
import java.io.*;
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
import java.nio.file.FileSystems;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
|
||||
import org.springframework.core.io.*;
|
||||
import org.springframework.util.FileCopyUtils;
|
||||
import org.springframework.util.FileSystemUtils;
|
||||
import org.springframework.util.ResourceUtils;
|
||||
|
||||
public class SpringIoPathInjection {
|
||||
public void PathInjection(String path) throws IOException {
|
||||
Path fileStorageLocation = Paths.get(path).toAbsolutePath().normalize();
|
||||
Path filePath = fileStorageLocation.resolve(path).normalize();
|
||||
File pathFile = new File(path);
|
||||
|
||||
new UrlResource(filePath.toUri()); // $ hasTaintFlow
|
||||
new UrlResource(filePath.toUri().toURL()); // $ hasTaintFlow
|
||||
new UrlResource("file", path); // $ hasTaintFlow
|
||||
new UrlResource("file", path, "#"); // $ hasTaintFlow
|
||||
new UrlResource(path); // $ hasTaintFlow
|
||||
|
||||
new PathResource(path); // $ hasTaintFlow
|
||||
new PathResource(filePath); // $ hasTaintFlow
|
||||
new PathResource(filePath.toUri()); // $ hasTaintFlow
|
||||
|
||||
new FileUrlResource(filePath.toUri().toURL()); // $ hasTaintFlow
|
||||
new FileUrlResource(path); // $ hasTaintFlow
|
||||
|
||||
new FileSystemResource(pathFile); // $ hasTaintFlow
|
||||
new FileSystemResource(path); // $ hasTaintFlow
|
||||
new FileSystemResource(filePath); // $ hasTaintFlow
|
||||
new FileSystemResource(
|
||||
FileSystems.getFileSystem(URI.create("file:///")), path); // $ hasTaintFlow
|
||||
|
||||
FileSystemUtils.copyRecursively(filePath, filePath.resolve("/newPath")); // $ hasTaintFlow
|
||||
FileSystemUtils.copyRecursively(pathFile, pathFile); // $ hasTaintFlow
|
||||
FileSystemUtils.deleteRecursively(pathFile); // $ hasTaintFlow
|
||||
FileSystemUtils.deleteRecursively(filePath); // $ hasTaintFlow
|
||||
FileCopyUtils.copy(pathFile, pathFile); // $ hasTaintFlow
|
||||
FileCopyUtils.copyToByteArray(pathFile); // $ hasTaintFlow
|
||||
}
|
||||
}
|
||||
78
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/ZipFile.java
generated
Normal file
78
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/ZipFile.java
generated
Normal file
@@ -0,0 +1,78 @@
|
||||
// Generated automatically from net.lingala.zip4j.ZipFile for testing purposes
|
||||
|
||||
package net.lingala.zip4j;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.ThreadFactory;
|
||||
import net.lingala.zip4j.io.inputstream.ZipInputStream;
|
||||
import net.lingala.zip4j.model.FileHeader;
|
||||
import net.lingala.zip4j.model.UnzipParameters;
|
||||
import net.lingala.zip4j.model.ZipParameters;
|
||||
import net.lingala.zip4j.progress.ProgressMonitor;
|
||||
|
||||
public class ZipFile implements Closeable
|
||||
{
|
||||
protected ZipFile() {}
|
||||
public Charset getCharset(){ return null; }
|
||||
public ExecutorService getExecutorService(){ return null; }
|
||||
public File getFile(){ return null; }
|
||||
public FileHeader getFileHeader(String p0){ return null; }
|
||||
public List<File> getSplitZipFiles(){ return null; }
|
||||
public List<FileHeader> getFileHeaders(){ return null; }
|
||||
public ProgressMonitor getProgressMonitor(){ return null; }
|
||||
public String getComment(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public ZipFile(File p0){}
|
||||
public ZipFile(File p0, char[] p1){}
|
||||
public ZipFile(String p0){}
|
||||
public ZipFile(String p0, char[] p1){}
|
||||
public ZipInputStream getInputStream(FileHeader p0){ return null; }
|
||||
public boolean isEncrypted(){ return false; }
|
||||
public boolean isRunInThread(){ return false; }
|
||||
public boolean isSplitArchive(){ return false; }
|
||||
public boolean isUseUtf8CharsetForPasswords(){ return false; }
|
||||
public boolean isValidZipFile(){ return false; }
|
||||
public int getBufferSize(){ return 0; }
|
||||
public void addFile(File p0){}
|
||||
public void addFile(File p0, ZipParameters p1){}
|
||||
public void addFile(String p0){}
|
||||
public void addFile(String p0, ZipParameters p1){}
|
||||
public void addFiles(List<File> p0){}
|
||||
public void addFiles(List<File> p0, ZipParameters p1){}
|
||||
public void addFolder(File p0){}
|
||||
public void addFolder(File p0, ZipParameters p1){}
|
||||
public void addStream(InputStream p0, ZipParameters p1){}
|
||||
public void close(){}
|
||||
public void createSplitZipFile(List<File> p0, ZipParameters p1, boolean p2, long p3){}
|
||||
public void createSplitZipFileFromFolder(File p0, ZipParameters p1, boolean p2, long p3){}
|
||||
public void extractAll(String p0){}
|
||||
public void extractAll(String p0, UnzipParameters p1){}
|
||||
public void extractFile(FileHeader p0, String p1){}
|
||||
public void extractFile(FileHeader p0, String p1, String p2){}
|
||||
public void extractFile(FileHeader p0, String p1, String p2, UnzipParameters p3){}
|
||||
public void extractFile(FileHeader p0, String p1, UnzipParameters p2){}
|
||||
public void extractFile(String p0, String p1){}
|
||||
public void extractFile(String p0, String p1, String p2){}
|
||||
public void extractFile(String p0, String p1, String p2, UnzipParameters p3){}
|
||||
public void extractFile(String p0, String p1, UnzipParameters p2){}
|
||||
public void mergeSplitFiles(File p0){}
|
||||
public void removeFile(FileHeader p0){}
|
||||
public void removeFile(String p0){}
|
||||
public void removeFiles(List<String> p0){}
|
||||
public void renameFile(FileHeader p0, String p1){}
|
||||
public void renameFile(String p0, String p1){}
|
||||
public void renameFiles(Map<String, String> p0){}
|
||||
public void setBufferSize(int p0){}
|
||||
public void setCharset(Charset p0){}
|
||||
public void setComment(String p0){}
|
||||
public void setPassword(char[] p0){}
|
||||
public void setRunInThread(boolean p0){}
|
||||
public void setThreadFactory(ThreadFactory p0){}
|
||||
public void setUseUtf8CharsetForPasswords(boolean p0){}
|
||||
}
|
||||
11
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/headers/HeaderSignature.java
generated
Normal file
11
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/headers/HeaderSignature.java
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from net.lingala.zip4j.headers.HeaderSignature for testing purposes
|
||||
|
||||
package net.lingala.zip4j.headers;
|
||||
|
||||
|
||||
public enum HeaderSignature
|
||||
{
|
||||
AES_EXTRA_DATA_RECORD, ARCEXTDATREC, CENTRAL_DIRECTORY, DIGITAL_SIGNATURE, END_OF_CENTRAL_DIRECTORY, EXTRA_DATA_RECORD, LOCAL_FILE_HEADER, SPLIT_ZIP, TEMPORARY_SPANNING_MARKER, ZIP64_END_CENTRAL_DIRECTORY_LOCATOR, ZIP64_END_CENTRAL_DIRECTORY_RECORD, ZIP64_EXTRA_FIELD_SIGNATURE;
|
||||
private HeaderSignature() {}
|
||||
public long getValue(){ return 0; }
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
// Generated automatically from net.lingala.zip4j.io.inputstream.ZipInputStream for testing purposes
|
||||
|
||||
package net.lingala.zip4j.io.inputstream;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.nio.charset.Charset;
|
||||
import net.lingala.zip4j.model.FileHeader;
|
||||
import net.lingala.zip4j.model.LocalFileHeader;
|
||||
import net.lingala.zip4j.model.Zip4jConfig;
|
||||
import net.lingala.zip4j.util.PasswordCallback;
|
||||
|
||||
public class ZipInputStream extends InputStream
|
||||
{
|
||||
protected ZipInputStream() {}
|
||||
public LocalFileHeader getNextEntry(){ return null; }
|
||||
public LocalFileHeader getNextEntry(FileHeader p0, boolean p1){ return null; }
|
||||
public ZipInputStream(InputStream p0){}
|
||||
public ZipInputStream(InputStream p0, Charset p1){}
|
||||
public ZipInputStream(InputStream p0, PasswordCallback p1){}
|
||||
public ZipInputStream(InputStream p0, PasswordCallback p1, Charset p2){}
|
||||
public ZipInputStream(InputStream p0, PasswordCallback p1, Zip4jConfig p2){}
|
||||
public ZipInputStream(InputStream p0, char[] p1){}
|
||||
public ZipInputStream(InputStream p0, char[] p1, Charset p2){}
|
||||
public ZipInputStream(InputStream p0, char[] p1, Zip4jConfig p2){}
|
||||
public int available(){ return 0; }
|
||||
public int read(){ return 0; }
|
||||
public int read(byte[] p0){ return 0; }
|
||||
public int read(byte[] p0, int p1, int p2){ return 0; }
|
||||
public void close(){}
|
||||
public void setPassword(char[] p0){}
|
||||
}
|
||||
23
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/AESExtraDataRecord.java
generated
Normal file
23
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/AESExtraDataRecord.java
generated
Normal file
@@ -0,0 +1,23 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.AESExtraDataRecord for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model;
|
||||
|
||||
import net.lingala.zip4j.model.ZipHeader;
|
||||
import net.lingala.zip4j.model.enums.AesKeyStrength;
|
||||
import net.lingala.zip4j.model.enums.AesVersion;
|
||||
import net.lingala.zip4j.model.enums.CompressionMethod;
|
||||
|
||||
public class AESExtraDataRecord extends ZipHeader
|
||||
{
|
||||
public AESExtraDataRecord(){}
|
||||
public AesKeyStrength getAesKeyStrength(){ return null; }
|
||||
public AesVersion getAesVersion(){ return null; }
|
||||
public CompressionMethod getCompressionMethod(){ return null; }
|
||||
public String getVendorID(){ return null; }
|
||||
public int getDataSize(){ return 0; }
|
||||
public void setAesKeyStrength(AesKeyStrength p0){}
|
||||
public void setAesVersion(AesVersion p0){}
|
||||
public void setCompressionMethod(CompressionMethod p0){}
|
||||
public void setDataSize(int p0){}
|
||||
public void setVendorID(String p0){}
|
||||
}
|
||||
54
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/AbstractFileHeader.java
generated
Normal file
54
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/AbstractFileHeader.java
generated
Normal file
@@ -0,0 +1,54 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.AbstractFileHeader for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model;
|
||||
|
||||
import java.util.List;
|
||||
import net.lingala.zip4j.model.AESExtraDataRecord;
|
||||
import net.lingala.zip4j.model.ExtraDataRecord;
|
||||
import net.lingala.zip4j.model.Zip64ExtendedInfo;
|
||||
import net.lingala.zip4j.model.ZipHeader;
|
||||
import net.lingala.zip4j.model.enums.CompressionMethod;
|
||||
import net.lingala.zip4j.model.enums.EncryptionMethod;
|
||||
|
||||
abstract public class AbstractFileHeader extends ZipHeader
|
||||
{
|
||||
public AESExtraDataRecord getAesExtraDataRecord(){ return null; }
|
||||
public AbstractFileHeader(){}
|
||||
public CompressionMethod getCompressionMethod(){ return null; }
|
||||
public EncryptionMethod getEncryptionMethod(){ return null; }
|
||||
public List<ExtraDataRecord> getExtraDataRecords(){ return null; }
|
||||
public String getFileName(){ return null; }
|
||||
public Zip64ExtendedInfo getZip64ExtendedInfo(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public boolean isDataDescriptorExists(){ return false; }
|
||||
public boolean isDirectory(){ return false; }
|
||||
public boolean isEncrypted(){ return false; }
|
||||
public boolean isFileNameUTF8Encoded(){ return false; }
|
||||
public byte[] getGeneralPurposeFlag(){ return null; }
|
||||
public int getExtraFieldLength(){ return 0; }
|
||||
public int getFileNameLength(){ return 0; }
|
||||
public int getVersionNeededToExtract(){ return 0; }
|
||||
public long getCompressedSize(){ return 0; }
|
||||
public long getCrc(){ return 0; }
|
||||
public long getLastModifiedTime(){ return 0; }
|
||||
public long getLastModifiedTimeEpoch(){ return 0; }
|
||||
public long getUncompressedSize(){ return 0; }
|
||||
public void setAesExtraDataRecord(AESExtraDataRecord p0){}
|
||||
public void setCompressedSize(long p0){}
|
||||
public void setCompressionMethod(CompressionMethod p0){}
|
||||
public void setCrc(long p0){}
|
||||
public void setDataDescriptorExists(boolean p0){}
|
||||
public void setDirectory(boolean p0){}
|
||||
public void setEncrypted(boolean p0){}
|
||||
public void setEncryptionMethod(EncryptionMethod p0){}
|
||||
public void setExtraDataRecords(List<ExtraDataRecord> p0){}
|
||||
public void setExtraFieldLength(int p0){}
|
||||
public void setFileName(String p0){}
|
||||
public void setFileNameLength(int p0){}
|
||||
public void setFileNameUTF8Encoded(boolean p0){}
|
||||
public void setGeneralPurposeFlag(byte[] p0){}
|
||||
public void setLastModifiedTime(long p0){}
|
||||
public void setUncompressedSize(long p0){}
|
||||
public void setVersionNeededToExtract(int p0){}
|
||||
public void setZip64ExtendedInfo(Zip64ExtendedInfo p0){}
|
||||
}
|
||||
10
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/ExcludeFileFilter.java
generated
Normal file
10
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/ExcludeFileFilter.java
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.ExcludeFileFilter for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public interface ExcludeFileFilter
|
||||
{
|
||||
boolean isExcluded(File p0);
|
||||
}
|
||||
16
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/ExtraDataRecord.java
generated
Normal file
16
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/ExtraDataRecord.java
generated
Normal file
@@ -0,0 +1,16 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.ExtraDataRecord for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model;
|
||||
|
||||
import net.lingala.zip4j.model.ZipHeader;
|
||||
|
||||
public class ExtraDataRecord extends ZipHeader
|
||||
{
|
||||
public ExtraDataRecord(){}
|
||||
public byte[] getData(){ return null; }
|
||||
public int getSizeOfData(){ return 0; }
|
||||
public long getHeader(){ return 0; }
|
||||
public void setData(byte[] p0){}
|
||||
public void setHeader(long p0){}
|
||||
public void setSizeOfData(int p0){}
|
||||
}
|
||||
27
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/FileHeader.java
generated
Normal file
27
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/FileHeader.java
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.FileHeader for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model;
|
||||
|
||||
import net.lingala.zip4j.model.AbstractFileHeader;
|
||||
|
||||
public class FileHeader extends AbstractFileHeader
|
||||
{
|
||||
public FileHeader(){}
|
||||
public String getFileComment(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public byte[] getExternalFileAttributes(){ return null; }
|
||||
public byte[] getInternalFileAttributes(){ return null; }
|
||||
public int getDiskNumberStart(){ return 0; }
|
||||
public int getFileCommentLength(){ return 0; }
|
||||
public int getVersionMadeBy(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public long getOffsetLocalHeader(){ return 0; }
|
||||
public void setDiskNumberStart(int p0){}
|
||||
public void setExternalFileAttributes(byte[] p0){}
|
||||
public void setFileComment(String p0){}
|
||||
public void setFileCommentLength(int p0){}
|
||||
public void setInternalFileAttributes(byte[] p0){}
|
||||
public void setOffsetLocalHeader(long p0){}
|
||||
public void setVersionMadeBy(int p0){}
|
||||
}
|
||||
16
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/LocalFileHeader.java
generated
Normal file
16
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/LocalFileHeader.java
generated
Normal file
@@ -0,0 +1,16 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.LocalFileHeader for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model;
|
||||
|
||||
import net.lingala.zip4j.model.AbstractFileHeader;
|
||||
|
||||
public class LocalFileHeader extends AbstractFileHeader
|
||||
{
|
||||
public LocalFileHeader(){}
|
||||
public boolean isWriteCompressedSizeInZip64ExtraRecord(){ return false; }
|
||||
public byte[] getExtraField(){ return null; }
|
||||
public long getOffsetStartOfData(){ return 0; }
|
||||
public void setExtraField(byte[] p0){}
|
||||
public void setOffsetStartOfData(long p0){}
|
||||
public void setWriteCompressedSizeInZip64ExtraRecord(boolean p0){}
|
||||
}
|
||||
11
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/UnzipParameters.java
generated
Normal file
11
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/UnzipParameters.java
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.UnzipParameters for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model;
|
||||
|
||||
|
||||
public class UnzipParameters
|
||||
{
|
||||
public UnzipParameters(){}
|
||||
public boolean isExtractSymbolicLinks(){ return false; }
|
||||
public void setExtractSymbolicLinks(boolean p0){}
|
||||
}
|
||||
14
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/Zip4jConfig.java
generated
Normal file
14
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/Zip4jConfig.java
generated
Normal file
@@ -0,0 +1,14 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.Zip4jConfig for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
public class Zip4jConfig
|
||||
{
|
||||
protected Zip4jConfig() {}
|
||||
public Charset getCharset(){ return null; }
|
||||
public Zip4jConfig(Charset p0, int p1, boolean p2){}
|
||||
public boolean isUseUtf8CharsetForPasswords(){ return false; }
|
||||
public int getBufferSize(){ return 0; }
|
||||
}
|
||||
20
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/Zip64ExtendedInfo.java
generated
Normal file
20
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/Zip64ExtendedInfo.java
generated
Normal file
@@ -0,0 +1,20 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.Zip64ExtendedInfo for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model;
|
||||
|
||||
import net.lingala.zip4j.model.ZipHeader;
|
||||
|
||||
public class Zip64ExtendedInfo extends ZipHeader
|
||||
{
|
||||
public Zip64ExtendedInfo(){}
|
||||
public int getDiskNumberStart(){ return 0; }
|
||||
public int getSize(){ return 0; }
|
||||
public long getCompressedSize(){ return 0; }
|
||||
public long getOffsetLocalHeader(){ return 0; }
|
||||
public long getUncompressedSize(){ return 0; }
|
||||
public void setCompressedSize(long p0){}
|
||||
public void setDiskNumberStart(int p0){}
|
||||
public void setOffsetLocalHeader(long p0){}
|
||||
public void setSize(int p0){}
|
||||
public void setUncompressedSize(long p0){}
|
||||
}
|
||||
12
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/ZipHeader.java
generated
Normal file
12
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/ZipHeader.java
generated
Normal file
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.ZipHeader for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model;
|
||||
|
||||
import net.lingala.zip4j.headers.HeaderSignature;
|
||||
|
||||
abstract public class ZipHeader
|
||||
{
|
||||
public HeaderSignature getSignature(){ return null; }
|
||||
public ZipHeader(){}
|
||||
public void setSignature(HeaderSignature p0){}
|
||||
}
|
||||
63
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/ZipParameters.java
generated
Normal file
63
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/ZipParameters.java
generated
Normal file
@@ -0,0 +1,63 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.ZipParameters for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model;
|
||||
|
||||
import net.lingala.zip4j.model.ExcludeFileFilter;
|
||||
import net.lingala.zip4j.model.enums.AesKeyStrength;
|
||||
import net.lingala.zip4j.model.enums.AesVersion;
|
||||
import net.lingala.zip4j.model.enums.CompressionLevel;
|
||||
import net.lingala.zip4j.model.enums.CompressionMethod;
|
||||
import net.lingala.zip4j.model.enums.EncryptionMethod;
|
||||
|
||||
public class ZipParameters
|
||||
{
|
||||
public AesKeyStrength getAesKeyStrength(){ return null; }
|
||||
public AesVersion getAesVersion(){ return null; }
|
||||
public CompressionLevel getCompressionLevel(){ return null; }
|
||||
public CompressionMethod getCompressionMethod(){ return null; }
|
||||
public EncryptionMethod getEncryptionMethod(){ return null; }
|
||||
public ExcludeFileFilter getExcludeFileFilter(){ return null; }
|
||||
public String getDefaultFolderPath(){ return null; }
|
||||
public String getFileComment(){ return null; }
|
||||
public String getFileNameInZip(){ return null; }
|
||||
public String getRootFolderNameInZip(){ return null; }
|
||||
public ZipParameters(){}
|
||||
public ZipParameters(ZipParameters p0){}
|
||||
public ZipParameters.SymbolicLinkAction getSymbolicLinkAction(){ return null; }
|
||||
public boolean isEncryptFiles(){ return false; }
|
||||
public boolean isIncludeRootFolder(){ return false; }
|
||||
public boolean isOverrideExistingFilesInZip(){ return false; }
|
||||
public boolean isReadHiddenFiles(){ return false; }
|
||||
public boolean isReadHiddenFolders(){ return false; }
|
||||
public boolean isUnixMode(){ return false; }
|
||||
public boolean isWriteExtendedLocalFileHeader(){ return false; }
|
||||
public long getEntryCRC(){ return 0; }
|
||||
public long getEntrySize(){ return 0; }
|
||||
public long getLastModifiedFileTime(){ return 0; }
|
||||
public void setAesKeyStrength(AesKeyStrength p0){}
|
||||
public void setAesVersion(AesVersion p0){}
|
||||
public void setCompressionLevel(CompressionLevel p0){}
|
||||
public void setCompressionMethod(CompressionMethod p0){}
|
||||
public void setDefaultFolderPath(String p0){}
|
||||
public void setEncryptFiles(boolean p0){}
|
||||
public void setEncryptionMethod(EncryptionMethod p0){}
|
||||
public void setEntryCRC(long p0){}
|
||||
public void setEntrySize(long p0){}
|
||||
public void setExcludeFileFilter(ExcludeFileFilter p0){}
|
||||
public void setFileComment(String p0){}
|
||||
public void setFileNameInZip(String p0){}
|
||||
public void setIncludeRootFolder(boolean p0){}
|
||||
public void setLastModifiedFileTime(long p0){}
|
||||
public void setOverrideExistingFilesInZip(boolean p0){}
|
||||
public void setReadHiddenFiles(boolean p0){}
|
||||
public void setReadHiddenFolders(boolean p0){}
|
||||
public void setRootFolderNameInZip(String p0){}
|
||||
public void setSymbolicLinkAction(ZipParameters.SymbolicLinkAction p0){}
|
||||
public void setUnixMode(boolean p0){}
|
||||
public void setWriteExtendedLocalFileHeader(boolean p0){}
|
||||
static public enum SymbolicLinkAction
|
||||
{
|
||||
INCLUDE_LINKED_FILE_ONLY, INCLUDE_LINK_AND_LINKED_FILE, INCLUDE_LINK_ONLY;
|
||||
private SymbolicLinkAction() {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.enums.AesKeyStrength for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model.enums;
|
||||
|
||||
|
||||
public enum AesKeyStrength
|
||||
{
|
||||
KEY_STRENGTH_128, KEY_STRENGTH_192, KEY_STRENGTH_256;
|
||||
private AesKeyStrength() {}
|
||||
public int getKeyLength(){ return 0; }
|
||||
public int getMacLength(){ return 0; }
|
||||
public int getRawCode(){ return 0; }
|
||||
public int getSaltLength(){ return 0; }
|
||||
public static AesKeyStrength getAesKeyStrengthFromRawCode(int p0){ return null; }
|
||||
}
|
||||
12
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/enums/AesVersion.java
generated
Normal file
12
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/model/enums/AesVersion.java
generated
Normal file
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.enums.AesVersion for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model.enums;
|
||||
|
||||
|
||||
public enum AesVersion
|
||||
{
|
||||
ONE, TWO;
|
||||
private AesVersion() {}
|
||||
public int getVersionNumber(){ return 0; }
|
||||
public static AesVersion getFromVersionNumber(int p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.enums.CompressionLevel for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model.enums;
|
||||
|
||||
|
||||
public enum CompressionLevel
|
||||
{
|
||||
FAST, FASTER, FASTEST, HIGHER, MAXIMUM, MEDIUM_FAST, NORMAL, NO_COMPRESSION, PRE_ULTRA, ULTRA;
|
||||
private CompressionLevel() {}
|
||||
public int getLevel(){ return 0; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.enums.CompressionMethod for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model.enums;
|
||||
|
||||
|
||||
public enum CompressionMethod
|
||||
{
|
||||
AES_INTERNAL_ONLY, DEFLATE, STORE;
|
||||
private CompressionMethod() {}
|
||||
public int getCode(){ return 0; }
|
||||
public static CompressionMethod getCompressionMethodFromCode(int p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from net.lingala.zip4j.model.enums.EncryptionMethod for testing purposes
|
||||
|
||||
package net.lingala.zip4j.model.enums;
|
||||
|
||||
|
||||
public enum EncryptionMethod
|
||||
{
|
||||
AES, NONE, ZIP_STANDARD, ZIP_STANDARD_VARIANT_STRONG;
|
||||
private EncryptionMethod() {}
|
||||
}
|
||||
47
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/progress/ProgressMonitor.java
generated
Normal file
47
java/ql/test/experimental/stubs/lingala-zip4j-2.11.5/net/lingala/zip4j/progress/ProgressMonitor.java
generated
Normal file
@@ -0,0 +1,47 @@
|
||||
// Generated automatically from net.lingala.zip4j.progress.ProgressMonitor for testing purposes
|
||||
|
||||
package net.lingala.zip4j.progress;
|
||||
|
||||
|
||||
public class ProgressMonitor
|
||||
{
|
||||
public Exception getException(){ return null; }
|
||||
public ProgressMonitor(){}
|
||||
public ProgressMonitor.Result getResult(){ return null; }
|
||||
public ProgressMonitor.State getState(){ return null; }
|
||||
public ProgressMonitor.Task getCurrentTask(){ return null; }
|
||||
public String getFileName(){ return null; }
|
||||
public boolean isCancelAllTasks(){ return false; }
|
||||
public boolean isPause(){ return false; }
|
||||
public int getPercentDone(){ return 0; }
|
||||
public long getTotalWork(){ return 0; }
|
||||
public long getWorkCompleted(){ return 0; }
|
||||
public void endProgressMonitor(){}
|
||||
public void endProgressMonitor(Exception p0){}
|
||||
public void fullReset(){}
|
||||
public void setCancelAllTasks(boolean p0){}
|
||||
public void setCurrentTask(ProgressMonitor.Task p0){}
|
||||
public void setException(Exception p0){}
|
||||
public void setFileName(String p0){}
|
||||
public void setPause(boolean p0){}
|
||||
public void setPercentDone(int p0){}
|
||||
public void setResult(ProgressMonitor.Result p0){}
|
||||
public void setState(ProgressMonitor.State p0){}
|
||||
public void setTotalWork(long p0){}
|
||||
public void updateWorkCompleted(long p0){}
|
||||
static public enum Result
|
||||
{
|
||||
CANCELLED, ERROR, SUCCESS, WORK_IN_PROGRESS;
|
||||
private Result() {}
|
||||
}
|
||||
static public enum State
|
||||
{
|
||||
BUSY, READY;
|
||||
private State() {}
|
||||
}
|
||||
static public enum Task
|
||||
{
|
||||
ADD_ENTRY, CALCULATE_CRC, EXTRACT_ENTRY, MERGE_ZIP_FILES, NONE, REMOVE_ENTRY, RENAME_FILE, SET_COMMENT;
|
||||
private Task() {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated automatically from net.lingala.zip4j.util.PasswordCallback for testing purposes
|
||||
|
||||
package net.lingala.zip4j.util;
|
||||
|
||||
|
||||
public interface PasswordCallback
|
||||
{
|
||||
char[] getPassword();
|
||||
}
|
||||
10
java/ql/test/experimental/stubs/org-springframework-6.1.4/org/reactivestreams/Publisher.java
generated
Normal file
10
java/ql/test/experimental/stubs/org-springframework-6.1.4/org/reactivestreams/Publisher.java
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from org.reactivestreams.Publisher for testing purposes
|
||||
|
||||
package org.reactivestreams;
|
||||
|
||||
import org.reactivestreams.Subscriber;
|
||||
|
||||
public interface Publisher<T>
|
||||
{
|
||||
void subscribe(org.reactivestreams.Subscriber<? super T> p0);
|
||||
}
|
||||
13
java/ql/test/experimental/stubs/org-springframework-6.1.4/org/reactivestreams/Subscriber.java
generated
Normal file
13
java/ql/test/experimental/stubs/org-springframework-6.1.4/org/reactivestreams/Subscriber.java
generated
Normal file
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from org.reactivestreams.Subscriber for testing purposes
|
||||
|
||||
package org.reactivestreams;
|
||||
|
||||
import org.reactivestreams.Subscription;
|
||||
|
||||
public interface Subscriber<T>
|
||||
{
|
||||
void onComplete();
|
||||
void onError(Throwable p0);
|
||||
void onNext(T p0);
|
||||
void onSubscribe(Subscription p0);
|
||||
}
|
||||
10
java/ql/test/experimental/stubs/org-springframework-6.1.4/org/reactivestreams/Subscription.java
generated
Normal file
10
java/ql/test/experimental/stubs/org-springframework-6.1.4/org/reactivestreams/Subscription.java
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from org.reactivestreams.Subscription for testing purposes
|
||||
|
||||
package org.reactivestreams;
|
||||
|
||||
|
||||
public interface Subscription
|
||||
{
|
||||
void cancel();
|
||||
void request(long p0);
|
||||
}
|
||||
71
java/ql/test/experimental/stubs/org-springframework-6.1.4/org/slf4j/Logger.java
generated
Normal file
71
java/ql/test/experimental/stubs/org-springframework-6.1.4/org/slf4j/Logger.java
generated
Normal file
@@ -0,0 +1,71 @@
|
||||
// Generated automatically from org.slf4j.Logger for testing purposes
|
||||
|
||||
package org.slf4j;
|
||||
|
||||
import org.slf4j.Marker;
|
||||
|
||||
public interface Logger
|
||||
{
|
||||
String getName();
|
||||
boolean isDebugEnabled();
|
||||
boolean isDebugEnabled(Marker p0);
|
||||
boolean isErrorEnabled();
|
||||
boolean isErrorEnabled(Marker p0);
|
||||
boolean isInfoEnabled();
|
||||
boolean isInfoEnabled(Marker p0);
|
||||
boolean isTraceEnabled();
|
||||
boolean isTraceEnabled(Marker p0);
|
||||
boolean isWarnEnabled();
|
||||
boolean isWarnEnabled(Marker p0);
|
||||
static String ROOT_LOGGER_NAME = null;
|
||||
void debug(Marker p0, String p1);
|
||||
void debug(Marker p0, String p1, Object p2);
|
||||
void debug(Marker p0, String p1, Object p2, Object p3);
|
||||
void debug(Marker p0, String p1, Object... p2);
|
||||
void debug(Marker p0, String p1, Throwable p2);
|
||||
void debug(String p0);
|
||||
void debug(String p0, Object p1);
|
||||
void debug(String p0, Object p1, Object p2);
|
||||
void debug(String p0, Object... p1);
|
||||
void debug(String p0, Throwable p1);
|
||||
void error(Marker p0, String p1);
|
||||
void error(Marker p0, String p1, Object p2);
|
||||
void error(Marker p0, String p1, Object p2, Object p3);
|
||||
void error(Marker p0, String p1, Object... p2);
|
||||
void error(Marker p0, String p1, Throwable p2);
|
||||
void error(String p0);
|
||||
void error(String p0, Object p1);
|
||||
void error(String p0, Object p1, Object p2);
|
||||
void error(String p0, Object... p1);
|
||||
void error(String p0, Throwable p1);
|
||||
void info(Marker p0, String p1);
|
||||
void info(Marker p0, String p1, Object p2);
|
||||
void info(Marker p0, String p1, Object p2, Object p3);
|
||||
void info(Marker p0, String p1, Object... p2);
|
||||
void info(Marker p0, String p1, Throwable p2);
|
||||
void info(String p0);
|
||||
void info(String p0, Object p1);
|
||||
void info(String p0, Object p1, Object p2);
|
||||
void info(String p0, Object... p1);
|
||||
void info(String p0, Throwable p1);
|
||||
void trace(Marker p0, String p1);
|
||||
void trace(Marker p0, String p1, Object p2);
|
||||
void trace(Marker p0, String p1, Object p2, Object p3);
|
||||
void trace(Marker p0, String p1, Object... p2);
|
||||
void trace(Marker p0, String p1, Throwable p2);
|
||||
void trace(String p0);
|
||||
void trace(String p0, Object p1);
|
||||
void trace(String p0, Object p1, Object p2);
|
||||
void trace(String p0, Object... p1);
|
||||
void trace(String p0, Throwable p1);
|
||||
void warn(Marker p0, String p1);
|
||||
void warn(Marker p0, String p1, Object p2);
|
||||
void warn(Marker p0, String p1, Object p2, Object p3);
|
||||
void warn(Marker p0, String p1, Object... p2);
|
||||
void warn(Marker p0, String p1, Throwable p2);
|
||||
void warn(String p0);
|
||||
void warn(String p0, Object p1);
|
||||
void warn(String p0, Object p1, Object p2);
|
||||
void warn(String p0, Object... p1);
|
||||
void warn(String p0, Throwable p1);
|
||||
}
|
||||
22
java/ql/test/experimental/stubs/org-springframework-6.1.4/org/slf4j/Marker.java
generated
Normal file
22
java/ql/test/experimental/stubs/org-springframework-6.1.4/org/slf4j/Marker.java
generated
Normal file
@@ -0,0 +1,22 @@
|
||||
// Generated automatically from org.slf4j.Marker for testing purposes
|
||||
|
||||
package org.slf4j;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Iterator;
|
||||
|
||||
public interface Marker extends Serializable
|
||||
{
|
||||
Iterator<Marker> iterator();
|
||||
String getName();
|
||||
boolean contains(Marker p0);
|
||||
boolean contains(String p0);
|
||||
boolean equals(Object p0);
|
||||
boolean hasChildren();
|
||||
boolean hasReferences();
|
||||
boolean remove(Marker p0);
|
||||
int hashCode();
|
||||
static String ANY_MARKER = null;
|
||||
static String ANY_NON_NULL_MARKER = null;
|
||||
void add(Marker p0);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
// Generated automatically from org.springframework.core.io.AbstractFileResolvingResource for testing purposes
|
||||
|
||||
package org.springframework.core.io;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.URI;
|
||||
import java.net.URLConnection;
|
||||
import java.nio.channels.ReadableByteChannel;
|
||||
import org.springframework.core.io.AbstractResource;
|
||||
|
||||
abstract public class AbstractFileResolvingResource extends AbstractResource
|
||||
{
|
||||
protected File getFile(URI p0){ return null; }
|
||||
protected File getFileForLastModifiedCheck(){ return null; }
|
||||
protected boolean isFile(URI p0){ return false; }
|
||||
protected void customizeConnection(HttpURLConnection p0){}
|
||||
protected void customizeConnection(URLConnection p0){}
|
||||
public AbstractFileResolvingResource(){}
|
||||
public File getFile(){ return null; }
|
||||
public ReadableByteChannel readableChannel(){ return null; }
|
||||
public boolean exists(){ return false; }
|
||||
public boolean isFile(){ return false; }
|
||||
public boolean isReadable(){ return false; }
|
||||
public long contentLength(){ return 0; }
|
||||
public long lastModified(){ return 0; }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// Generated automatically from org.springframework.core.io.AbstractResource for testing purposes
|
||||
|
||||
package org.springframework.core.io;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.URI;
|
||||
import java.net.URL;
|
||||
import java.nio.channels.ReadableByteChannel;
|
||||
import org.springframework.core.io.Resource;
|
||||
|
||||
abstract public class AbstractResource implements Resource
|
||||
{
|
||||
protected File getFileForLastModifiedCheck(){ return null; }
|
||||
public AbstractResource(){}
|
||||
public File getFile(){ return null; }
|
||||
public ReadableByteChannel readableChannel(){ return null; }
|
||||
public Resource createRelative(String p0){ return null; }
|
||||
public String getFilename(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public URI getURI(){ return null; }
|
||||
public URL getURL(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public boolean exists(){ return false; }
|
||||
public boolean isFile(){ return false; }
|
||||
public boolean isOpen(){ return false; }
|
||||
public boolean isReadable(){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public long contentLength(){ return 0; }
|
||||
public long lastModified(){ return 0; }
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
// Generated automatically from org.springframework.core.io.FileSystemResource for testing purposes
|
||||
|
||||
package org.springframework.core.io;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.net.URI;
|
||||
import java.net.URL;
|
||||
import java.nio.channels.ReadableByteChannel;
|
||||
import java.nio.channels.WritableByteChannel;
|
||||
import java.nio.charset.Charset;
|
||||
import java.nio.file.FileSystem;
|
||||
import java.nio.file.Path;
|
||||
import org.springframework.core.io.AbstractResource;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.springframework.core.io.WritableResource;
|
||||
|
||||
public class FileSystemResource extends AbstractResource implements WritableResource
|
||||
{
|
||||
protected FileSystemResource() {}
|
||||
public File getFile(){ return null; }
|
||||
public FileSystemResource(File p0){}
|
||||
public FileSystemResource(FileSystem p0, String p1){}
|
||||
public FileSystemResource(Path p0){}
|
||||
public FileSystemResource(String p0){}
|
||||
public InputStream getInputStream(){ return null; }
|
||||
public OutputStream getOutputStream(){ return null; }
|
||||
public ReadableByteChannel readableChannel(){ return null; }
|
||||
public Resource createRelative(String p0){ return null; }
|
||||
public String getContentAsString(Charset p0){ return null; }
|
||||
public String getDescription(){ return null; }
|
||||
public String getFilename(){ return null; }
|
||||
public URI getURI(){ return null; }
|
||||
public URL getURL(){ return null; }
|
||||
public WritableByteChannel writableChannel(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public boolean exists(){ return false; }
|
||||
public boolean isFile(){ return false; }
|
||||
public boolean isReadable(){ return false; }
|
||||
public boolean isWritable(){ return false; }
|
||||
public byte[] getContentAsByteArray(){ return null; }
|
||||
public final String getPath(){ return null; }
|
||||
public int hashCode(){ return 0; }
|
||||
public long contentLength(){ return 0; }
|
||||
public long lastModified(){ return 0; }
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
// Generated automatically from org.springframework.core.io.FileUrlResource for testing purposes
|
||||
|
||||
package org.springframework.core.io;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.OutputStream;
|
||||
import java.net.URL;
|
||||
import java.nio.channels.WritableByteChannel;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.springframework.core.io.UrlResource;
|
||||
import org.springframework.core.io.WritableResource;
|
||||
|
||||
public class FileUrlResource extends UrlResource implements WritableResource
|
||||
{
|
||||
protected FileUrlResource() {}
|
||||
public File getFile(){ return null; }
|
||||
public FileUrlResource(String p0){}
|
||||
public FileUrlResource(URL p0){}
|
||||
public OutputStream getOutputStream(){ return null; }
|
||||
public Resource createRelative(String p0){ return null; }
|
||||
public WritableByteChannel writableChannel(){ return null; }
|
||||
public boolean isWritable(){ return false; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from org.springframework.core.io.InputStreamSource for testing purposes
|
||||
|
||||
package org.springframework.core.io;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
public interface InputStreamSource
|
||||
{
|
||||
InputStream getInputStream();
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
// Generated automatically from org.springframework.core.io.PathResource for testing purposes
|
||||
|
||||
package org.springframework.core.io;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.net.URI;
|
||||
import java.net.URL;
|
||||
import java.nio.channels.ReadableByteChannel;
|
||||
import java.nio.channels.WritableByteChannel;
|
||||
import java.nio.charset.Charset;
|
||||
import java.nio.file.Path;
|
||||
import org.springframework.core.io.AbstractResource;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.springframework.core.io.WritableResource;
|
||||
|
||||
public class PathResource extends AbstractResource implements WritableResource
|
||||
{
|
||||
protected PathResource() {}
|
||||
public File getFile(){ return null; }
|
||||
public InputStream getInputStream(){ return null; }
|
||||
public OutputStream getOutputStream(){ return null; }
|
||||
public PathResource(Path p0){}
|
||||
public PathResource(String p0){}
|
||||
public PathResource(URI p0){}
|
||||
public ReadableByteChannel readableChannel(){ return null; }
|
||||
public Resource createRelative(String p0){ return null; }
|
||||
public String getContentAsString(Charset p0){ return null; }
|
||||
public String getDescription(){ return null; }
|
||||
public String getFilename(){ return null; }
|
||||
public URI getURI(){ return null; }
|
||||
public URL getURL(){ return null; }
|
||||
public WritableByteChannel writableChannel(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public boolean exists(){ return false; }
|
||||
public boolean isFile(){ return false; }
|
||||
public boolean isReadable(){ return false; }
|
||||
public boolean isWritable(){ return false; }
|
||||
public byte[] getContentAsByteArray(){ return null; }
|
||||
public final String getPath(){ return null; }
|
||||
public int hashCode(){ return 0; }
|
||||
public long contentLength(){ return 0; }
|
||||
public long lastModified(){ return 0; }
|
||||
}
|
||||
29
java/ql/test/experimental/stubs/org-springframework-6.1.4/org/springframework/core/io/Resource.java
generated
Normal file
29
java/ql/test/experimental/stubs/org-springframework-6.1.4/org/springframework/core/io/Resource.java
generated
Normal file
@@ -0,0 +1,29 @@
|
||||
// Generated automatically from org.springframework.core.io.Resource for testing purposes
|
||||
|
||||
package org.springframework.core.io;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.URI;
|
||||
import java.net.URL;
|
||||
import java.nio.channels.ReadableByteChannel;
|
||||
import java.nio.charset.Charset;
|
||||
import org.springframework.core.io.InputStreamSource;
|
||||
|
||||
public interface Resource extends InputStreamSource
|
||||
{
|
||||
File getFile();
|
||||
Resource createRelative(String p0);
|
||||
String getDescription();
|
||||
String getFilename();
|
||||
URI getURI();
|
||||
URL getURL();
|
||||
boolean exists();
|
||||
default ReadableByteChannel readableChannel(){ return null; }
|
||||
default String getContentAsString(Charset p0){ return null; }
|
||||
default boolean isFile(){ return false; }
|
||||
default boolean isOpen(){ return false; }
|
||||
default boolean isReadable(){ return false; }
|
||||
default byte[] getContentAsByteArray(){ return null; }
|
||||
long contentLength();
|
||||
long lastModified();
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
// Generated automatically from org.springframework.core.io.UrlResource for testing purposes
|
||||
|
||||
package org.springframework.core.io;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.net.URI;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
import org.springframework.core.io.AbstractFileResolvingResource;
|
||||
import org.springframework.core.io.Resource;
|
||||
|
||||
public class UrlResource extends AbstractFileResolvingResource
|
||||
{
|
||||
protected UrlResource() {}
|
||||
protected URL createRelativeURL(String p0){ return null; }
|
||||
protected void customizeConnection(URLConnection p0){}
|
||||
public File getFile(){ return null; }
|
||||
public InputStream getInputStream(){ return null; }
|
||||
public Resource createRelative(String p0){ return null; }
|
||||
public String getDescription(){ return null; }
|
||||
public String getFilename(){ return null; }
|
||||
public URI getURI(){ return null; }
|
||||
public URL getURL(){ return null; }
|
||||
public UrlResource(String p0){}
|
||||
public UrlResource(String p0, String p1){}
|
||||
public UrlResource(String p0, String p1, String p2){}
|
||||
public UrlResource(URI p0){}
|
||||
public UrlResource(URL p0){}
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public boolean isFile(){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static UrlResource from(String p0){ return null; }
|
||||
public static UrlResource from(URI p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// Generated automatically from org.springframework.core.io.WritableResource for testing purposes
|
||||
|
||||
package org.springframework.core.io;
|
||||
|
||||
import java.io.OutputStream;
|
||||
import java.nio.channels.WritableByteChannel;
|
||||
import org.springframework.core.io.Resource;
|
||||
|
||||
public interface WritableResource extends Resource
|
||||
{
|
||||
OutputStream getOutputStream();
|
||||
default WritableByteChannel writableChannel(){ return null; }
|
||||
default boolean isWritable(){ return false; }
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// Generated automatically from org.springframework.util.FileCopyUtils for testing purposes
|
||||
|
||||
package org.springframework.util;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.Reader;
|
||||
import java.io.Writer;
|
||||
|
||||
abstract public class FileCopyUtils
|
||||
{
|
||||
public FileCopyUtils(){}
|
||||
public static String copyToString(Reader p0){ return null; }
|
||||
public static byte[] copyToByteArray(File p0){ return null; }
|
||||
public static byte[] copyToByteArray(InputStream p0){ return null; }
|
||||
public static int BUFFER_SIZE = 0;
|
||||
public static int copy(File p0, File p1){ return 0; }
|
||||
public static int copy(InputStream p0, OutputStream p1){ return 0; }
|
||||
public static int copy(Reader p0, Writer p1){ return 0; }
|
||||
public static void copy(String p0, Writer p1){}
|
||||
public static void copy(byte[] p0, File p1){}
|
||||
public static void copy(byte[] p0, OutputStream p1){}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// Generated automatically from org.springframework.util.FileSystemUtils for testing purposes
|
||||
|
||||
package org.springframework.util;
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.file.Path;
|
||||
|
||||
abstract public class FileSystemUtils
|
||||
{
|
||||
public FileSystemUtils(){}
|
||||
public static boolean deleteRecursively(File p0){ return false; }
|
||||
public static boolean deleteRecursively(Path p0){ return false; }
|
||||
public static void copyRecursively(File p0, File p1){}
|
||||
public static void copyRecursively(Path p0, Path p1){}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from software.amazon.awssdk.auth.credentials.AwsCredentials for testing purposes
|
||||
|
||||
package software.amazon.awssdk.auth.credentials;
|
||||
|
||||
|
||||
public interface AwsCredentials
|
||||
{
|
||||
String accessKeyId();
|
||||
String secretAccessKey();
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from software.amazon.awssdk.auth.credentials.AwsCredentialsProvider for testing purposes
|
||||
|
||||
package software.amazon.awssdk.auth.credentials;
|
||||
|
||||
import software.amazon.awssdk.auth.credentials.AwsCredentials;
|
||||
|
||||
public interface AwsCredentialsProvider
|
||||
{
|
||||
AwsCredentials resolveCredentials();
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Generated automatically from software.amazon.awssdk.awscore.AwsRequest for testing purposes
|
||||
|
||||
package software.amazon.awssdk.awscore;
|
||||
|
||||
import java.util.Optional;
|
||||
import java.util.function.Consumer;
|
||||
import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
|
||||
import software.amazon.awssdk.core.SdkRequest;
|
||||
|
||||
abstract public class AwsRequest extends SdkRequest
|
||||
{
|
||||
protected AwsRequest() {}
|
||||
protected AwsRequest(AwsRequest.Builder p0){}
|
||||
public abstract AwsRequest.Builder toBuilder();
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public final Optional<AwsRequestOverrideConfiguration> overrideConfiguration(){ return null; }
|
||||
public int hashCode(){ return 0; }
|
||||
static public interface Builder extends SdkRequest.Builder
|
||||
{
|
||||
AwsRequest build();
|
||||
AwsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration p0);
|
||||
AwsRequest.Builder overrideConfiguration(java.util.function.Consumer<AwsRequestOverrideConfiguration.Builder> p0);
|
||||
AwsRequestOverrideConfiguration overrideConfiguration();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Generated automatically from software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration for testing purposes
|
||||
|
||||
package software.amazon.awssdk.awscore;
|
||||
|
||||
import java.util.Optional;
|
||||
import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider;
|
||||
import software.amazon.awssdk.core.RequestOverrideConfiguration;
|
||||
import software.amazon.awssdk.utils.builder.SdkBuilder;
|
||||
|
||||
public class AwsRequestOverrideConfiguration extends RequestOverrideConfiguration
|
||||
{
|
||||
protected AwsRequestOverrideConfiguration() {}
|
||||
public AwsRequestOverrideConfiguration.Builder toBuilder(){ return null; }
|
||||
public Optional<AwsCredentialsProvider> credentialsProvider(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static AwsRequestOverrideConfiguration from(RequestOverrideConfiguration p0){ return null; }
|
||||
public static AwsRequestOverrideConfiguration.Builder builder(){ return null; }
|
||||
static public interface Builder extends RequestOverrideConfiguration.Builder<AwsRequestOverrideConfiguration.Builder>, SdkBuilder<AwsRequestOverrideConfiguration.Builder, AwsRequestOverrideConfiguration>
|
||||
{
|
||||
AwsCredentialsProvider credentialsProvider();
|
||||
AwsRequestOverrideConfiguration build();
|
||||
AwsRequestOverrideConfiguration.Builder credentialsProvider(AwsCredentialsProvider p0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
// Generated automatically from software.amazon.awssdk.awscore.AwsResponse for testing purposes
|
||||
|
||||
package software.amazon.awssdk.awscore;
|
||||
|
||||
import software.amazon.awssdk.awscore.AwsResponseMetadata;
|
||||
import software.amazon.awssdk.core.SdkResponse;
|
||||
|
||||
abstract public class AwsResponse extends SdkResponse
|
||||
{
|
||||
protected AwsResponse() {}
|
||||
protected AwsResponse(AwsResponse.Builder p0){}
|
||||
public AwsResponseMetadata responseMetadata(){ return null; }
|
||||
public abstract AwsResponse.Builder toBuilder();
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
static public interface Builder extends SdkResponse.Builder
|
||||
{
|
||||
AwsResponse build();
|
||||
AwsResponse.Builder responseMetadata(AwsResponseMetadata p0);
|
||||
AwsResponseMetadata responseMetadata();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Generated automatically from software.amazon.awssdk.awscore.AwsResponseMetadata for testing purposes
|
||||
|
||||
package software.amazon.awssdk.awscore;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
abstract public class AwsResponseMetadata
|
||||
{
|
||||
protected AwsResponseMetadata() {}
|
||||
protected AwsResponseMetadata(AwsResponseMetadata p0){}
|
||||
protected AwsResponseMetadata(Map<String, String> p0){}
|
||||
protected final String getValue(String p0){ return null; }
|
||||
public String requestId(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public final String toString(){ return null; }
|
||||
public int hashCode(){ return 0; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// Generated automatically from software.amazon.awssdk.awscore.client.builder.AwsAsyncClientBuilder for testing purposes
|
||||
|
||||
package software.amazon.awssdk.awscore.client.builder;
|
||||
|
||||
import software.amazon.awssdk.core.client.builder.SdkAsyncClientBuilder;
|
||||
|
||||
public interface AwsAsyncClientBuilder<B extends AwsAsyncClientBuilder<B, C>, C> extends SdkAsyncClientBuilder<B, C>
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Generated automatically from software.amazon.awssdk.awscore.client.builder.AwsClientBuilder for testing purposes
|
||||
|
||||
package software.amazon.awssdk.awscore.client.builder;
|
||||
|
||||
import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider;
|
||||
import software.amazon.awssdk.awscore.defaultsmode.DefaultsMode;
|
||||
import software.amazon.awssdk.core.client.builder.SdkClientBuilder;
|
||||
import software.amazon.awssdk.regions.Region;
|
||||
|
||||
public interface AwsClientBuilder<BuilderT extends AwsClientBuilder<BuilderT, ClientT>, ClientT> extends SdkClientBuilder<BuilderT, ClientT>
|
||||
{
|
||||
BuilderT credentialsProvider(AwsCredentialsProvider p0);
|
||||
BuilderT dualstackEnabled(Boolean p0);
|
||||
BuilderT fipsEnabled(Boolean p0);
|
||||
BuilderT region(Region p0);
|
||||
default BuilderT defaultsMode(DefaultsMode p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from software.amazon.awssdk.awscore.defaultsmode.DefaultsMode for testing purposes
|
||||
|
||||
package software.amazon.awssdk.awscore.defaultsmode;
|
||||
|
||||
|
||||
public enum DefaultsMode
|
||||
{
|
||||
AUTO, CROSS_REGION, IN_REGION, LEGACY, MOBILE, STANDARD;
|
||||
private DefaultsMode() {}
|
||||
public String toString(){ return null; }
|
||||
public static DefaultsMode fromValue(String p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
// Generated automatically from software.amazon.awssdk.awscore.eventstream.EventStreamResponseHandler for testing purposes
|
||||
|
||||
package software.amazon.awssdk.awscore.eventstream;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Supplier;
|
||||
import org.reactivestreams.Subscriber;
|
||||
import software.amazon.awssdk.core.async.SdkPublisher;
|
||||
|
||||
public interface EventStreamResponseHandler<ResponseT, EventT>
|
||||
{
|
||||
static public interface Builder<ResponseT, EventT, SubBuilderT>
|
||||
{
|
||||
SubBuilderT onComplete(Runnable p0);
|
||||
SubBuilderT onError(Consumer<Throwable> p0);
|
||||
SubBuilderT onEventStream(Consumer<software.amazon.awssdk.core.async.SdkPublisher<EventT>> p0);
|
||||
SubBuilderT onResponse(Consumer<ResponseT> p0);
|
||||
SubBuilderT publisherTransformer(Function<software.amazon.awssdk.core.async.SdkPublisher<EventT>, software.amazon.awssdk.core.async.SdkPublisher<EventT>> p0);
|
||||
SubBuilderT subscriber(Consumer<EventT> p0);
|
||||
SubBuilderT subscriber(Supplier<Subscriber<EventT>> p0);
|
||||
}
|
||||
void complete();
|
||||
void exceptionOccurred(Throwable p0);
|
||||
void onEventStream(software.amazon.awssdk.core.async.SdkPublisher<EventT> p0);
|
||||
void responseReceived(ResponseT p0);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.ApiName for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
|
||||
public class ApiName
|
||||
{
|
||||
protected ApiName() {}
|
||||
public String name(){ return null; }
|
||||
public String version(){ return null; }
|
||||
public static ApiName.Builder builder(){ return null; }
|
||||
static public interface Builder
|
||||
{
|
||||
ApiName build();
|
||||
ApiName.Builder name(String p0);
|
||||
ApiName.Builder version(String p0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.BytesWrapper for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.charset.Charset;
|
||||
import software.amazon.awssdk.http.ContentStreamProvider;
|
||||
|
||||
abstract public class BytesWrapper
|
||||
{
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public final ByteBuffer asByteBuffer(){ return null; }
|
||||
public final ContentStreamProvider asContentStreamProvider(){ return null; }
|
||||
public final InputStream asInputStream(){ return null; }
|
||||
public final String asString(Charset p0){ return null; }
|
||||
public final String asUtf8String(){ return null; }
|
||||
public final byte[] asByteArray(){ return null; }
|
||||
public final byte[] asByteArrayUnsafe(){ return null; }
|
||||
public int hashCode(){ return 0; }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.CredentialType for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
|
||||
public class CredentialType
|
||||
{
|
||||
protected CredentialType() {}
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static CredentialType TOKEN = null;
|
||||
public static CredentialType of(String p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.FileTransformerConfiguration for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import software.amazon.awssdk.utils.builder.CopyableBuilder;
|
||||
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
|
||||
|
||||
public class FileTransformerConfiguration implements ToCopyableBuilder<FileTransformerConfiguration.Builder, FileTransformerConfiguration>
|
||||
{
|
||||
protected FileTransformerConfiguration() {}
|
||||
public FileTransformerConfiguration.Builder toBuilder(){ return null; }
|
||||
public FileTransformerConfiguration.FailureBehavior failureBehavior(){ return null; }
|
||||
public FileTransformerConfiguration.FileWriteOption fileWriteOption(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static FileTransformerConfiguration defaultCreateNew(){ return null; }
|
||||
public static FileTransformerConfiguration defaultCreateOrAppend(){ return null; }
|
||||
public static FileTransformerConfiguration defaultCreateOrReplaceExisting(){ return null; }
|
||||
public static FileTransformerConfiguration.Builder builder(){ return null; }
|
||||
static public enum FailureBehavior
|
||||
{
|
||||
DELETE, LEAVE;
|
||||
private FailureBehavior() {}
|
||||
}
|
||||
static public enum FileWriteOption
|
||||
{
|
||||
CREATE_NEW, CREATE_OR_APPEND_TO_EXISTING, CREATE_OR_REPLACE_EXISTING;
|
||||
private FileWriteOption() {}
|
||||
}
|
||||
static public interface Builder extends CopyableBuilder<FileTransformerConfiguration.Builder, FileTransformerConfiguration>
|
||||
{
|
||||
FileTransformerConfiguration.Builder failureBehavior(FileTransformerConfiguration.FailureBehavior p0);
|
||||
FileTransformerConfiguration.Builder fileWriteOption(FileTransformerConfiguration.FileWriteOption p0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.RequestOverrideConfiguration for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Consumer;
|
||||
import software.amazon.awssdk.core.ApiName;
|
||||
import software.amazon.awssdk.core.interceptor.ExecutionAttribute;
|
||||
import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
|
||||
import software.amazon.awssdk.core.signer.Signer;
|
||||
import software.amazon.awssdk.metrics.MetricPublisher;
|
||||
|
||||
abstract public class RequestOverrideConfiguration
|
||||
{
|
||||
protected RequestOverrideConfiguration() {}
|
||||
protected RequestOverrideConfiguration(RequestOverrideConfiguration.Builder<? extends Object> p0){}
|
||||
public ExecutionAttributes executionAttributes(){ return null; }
|
||||
public List<ApiName> apiNames(){ return null; }
|
||||
public List<MetricPublisher> metricPublishers(){ return null; }
|
||||
public Map<String, List<String>> headers(){ return null; }
|
||||
public Map<String, List<String>> rawQueryParameters(){ return null; }
|
||||
public Optional<Duration> apiCallAttemptTimeout(){ return null; }
|
||||
public Optional<Duration> apiCallTimeout(){ return null; }
|
||||
public Optional<Signer> signer(){ return null; }
|
||||
public abstract RequestOverrideConfiguration.Builder<? extends RequestOverrideConfiguration.Builder> toBuilder();
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
static public interface Builder<B extends RequestOverrideConfiguration.Builder>
|
||||
{
|
||||
<T> B putExecutionAttribute(software.amazon.awssdk.core.interceptor.ExecutionAttribute<T> p0, T p1);
|
||||
B addApiName(ApiName p0);
|
||||
B addApiName(java.util.function.Consumer<ApiName.Builder> p0);
|
||||
B addMetricPublisher(MetricPublisher p0);
|
||||
B apiCallAttemptTimeout(Duration p0);
|
||||
B apiCallTimeout(Duration p0);
|
||||
B executionAttributes(ExecutionAttributes p0);
|
||||
B headers(Map<String, List<String>> p0);
|
||||
B metricPublishers(List<MetricPublisher> p0);
|
||||
B putHeader(String p0, List<String> p1);
|
||||
B putRawQueryParameter(String p0, List<String> p1);
|
||||
B rawQueryParameters(Map<String, List<String>> p0);
|
||||
B signer(Signer p0);
|
||||
Duration apiCallAttemptTimeout();
|
||||
Duration apiCallTimeout();
|
||||
ExecutionAttributes executionAttributes();
|
||||
List<ApiName> apiNames();
|
||||
List<MetricPublisher> metricPublishers();
|
||||
Map<String, List<String>> headers();
|
||||
Map<String, List<String>> rawQueryParameters();
|
||||
RequestOverrideConfiguration build();
|
||||
Signer signer();
|
||||
default B putHeader(String p0, String p1){ return null; }
|
||||
default B putRawQueryParameter(String p0, String p1){ return null; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.ResponseBytes for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.io.InputStream;
|
||||
import software.amazon.awssdk.core.BytesWrapper;
|
||||
|
||||
public class ResponseBytes<ResponseT> extends BytesWrapper
|
||||
{
|
||||
protected ResponseBytes() {}
|
||||
public ResponseT response(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static <ResponseT> software.amazon.awssdk.core.ResponseBytes<ResponseT> fromByteArray(ResponseT p0, byte[] p1){ return null; }
|
||||
public static <ResponseT> software.amazon.awssdk.core.ResponseBytes<ResponseT> fromByteArrayUnsafe(ResponseT p0, byte[] p1){ return null; }
|
||||
public static <ResponseT> software.amazon.awssdk.core.ResponseBytes<ResponseT> fromInputStream(ResponseT p0, InputStream p1){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.ResponseInputStream for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.io.InputStream;
|
||||
import software.amazon.awssdk.core.io.SdkFilterInputStream;
|
||||
import software.amazon.awssdk.http.Abortable;
|
||||
import software.amazon.awssdk.http.AbortableInputStream;
|
||||
|
||||
public class ResponseInputStream<ResponseT> extends SdkFilterInputStream implements Abortable
|
||||
{
|
||||
protected ResponseInputStream() {}
|
||||
public ResponseInputStream(ResponseT p0, AbortableInputStream p1){}
|
||||
public ResponseInputStream(ResponseT p0, InputStream p1){}
|
||||
public ResponseT response(){ return null; }
|
||||
public void abort(){}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.SdkBytes for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.Serializable;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.charset.Charset;
|
||||
import software.amazon.awssdk.core.BytesWrapper;
|
||||
|
||||
public class SdkBytes extends BytesWrapper implements Serializable
|
||||
{
|
||||
protected SdkBytes() {}
|
||||
public String toString(){ return null; }
|
||||
public static SdkBytes fromByteArray(byte[] p0){ return null; }
|
||||
public static SdkBytes fromByteArrayUnsafe(byte[] p0){ return null; }
|
||||
public static SdkBytes fromByteBuffer(ByteBuffer p0){ return null; }
|
||||
public static SdkBytes fromInputStream(InputStream p0){ return null; }
|
||||
public static SdkBytes fromString(String p0, Charset p1){ return null; }
|
||||
public static SdkBytes fromUtf8String(String p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.SdkClient for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import software.amazon.awssdk.utils.SdkAutoCloseable;
|
||||
|
||||
public interface SdkClient extends SdkAutoCloseable
|
||||
{
|
||||
String serviceName();
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.SdkField for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.util.Optional;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Supplier;
|
||||
import software.amazon.awssdk.core.SdkPojo;
|
||||
import software.amazon.awssdk.core.protocol.MarshallLocation;
|
||||
import software.amazon.awssdk.core.protocol.MarshallingType;
|
||||
import software.amazon.awssdk.core.traits.Trait;
|
||||
|
||||
public class SdkField<TypeT>
|
||||
{
|
||||
protected SdkField() {}
|
||||
public <T extends Trait> T getRequiredTrait(java.lang.Class<T> p0){ return null; }
|
||||
public <T extends Trait> T getTrait(java.lang.Class<T> p0){ return null; }
|
||||
public <T extends Trait> java.util.Optional<T> getOptionalTrait(java.lang.Class<T> p0){ return null; }
|
||||
public MarshallLocation location(){ return null; }
|
||||
public String locationName(){ return null; }
|
||||
public String memberName(){ return null; }
|
||||
public String unmarshallLocationName(){ return null; }
|
||||
public Supplier<SdkPojo> constructor(){ return null; }
|
||||
public TypeT getValueOrDefault(Object p0){ return null; }
|
||||
public boolean containsTrait(Class<? extends Trait> p0){ return false; }
|
||||
public software.amazon.awssdk.core.protocol.MarshallingType<? super TypeT> marshallingType(){ return null; }
|
||||
public static <TypeT> SdkField.Builder<TypeT> builder(software.amazon.awssdk.core.protocol.MarshallingType<? super TypeT> p0){ return null; }
|
||||
public void set(Object p0, Object p1){}
|
||||
static public class Builder<TypeT>
|
||||
{
|
||||
protected Builder() {}
|
||||
public SdkField.Builder<TypeT> constructor(Supplier<SdkPojo> p0){ return null; }
|
||||
public SdkField.Builder<TypeT> getter(Function<Object, TypeT> p0){ return null; }
|
||||
public SdkField.Builder<TypeT> memberName(String p0){ return null; }
|
||||
public SdkField.Builder<TypeT> setter(BiConsumer<Object, TypeT> p0){ return null; }
|
||||
public SdkField.Builder<TypeT> traits(Trait... p0){ return null; }
|
||||
public SdkField<TypeT> build(){ return null; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.SdkNumber for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
|
||||
public class SdkNumber extends Number implements Serializable
|
||||
{
|
||||
protected SdkNumber() {}
|
||||
public BigDecimal bigDecimalValue(){ return null; }
|
||||
public String stringValue(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public double doubleValue(){ return 0; }
|
||||
public float floatValue(){ return 0; }
|
||||
public int hashCode(){ return 0; }
|
||||
public int intValue(){ return 0; }
|
||||
public long longValue(){ return 0; }
|
||||
public static SdkNumber fromBigDecimal(BigDecimal p0){ return null; }
|
||||
public static SdkNumber fromBigInteger(BigInteger p0){ return null; }
|
||||
public static SdkNumber fromDouble(double p0){ return null; }
|
||||
public static SdkNumber fromFloat(float p0){ return null; }
|
||||
public static SdkNumber fromInteger(int p0){ return null; }
|
||||
public static SdkNumber fromLong(long p0){ return null; }
|
||||
public static SdkNumber fromShort(short p0){ return null; }
|
||||
public static SdkNumber fromString(String p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.SdkPojo for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.util.List;
|
||||
import software.amazon.awssdk.core.SdkField;
|
||||
|
||||
public interface SdkPojo
|
||||
{
|
||||
List<SdkField<? extends Object>> sdkFields();
|
||||
default boolean equalsBySdkFields(Object p0){ return false; }
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.SdkRequest for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.util.Optional;
|
||||
import software.amazon.awssdk.core.RequestOverrideConfiguration;
|
||||
import software.amazon.awssdk.core.SdkPojo;
|
||||
|
||||
abstract public class SdkRequest implements SdkPojo
|
||||
{
|
||||
public <T> java.util.Optional<T> getValueForField(String p0, java.lang.Class<T> p1){ return null; }
|
||||
public SdkRequest(){}
|
||||
public abstract Optional<? extends RequestOverrideConfiguration> overrideConfiguration();
|
||||
public abstract SdkRequest.Builder toBuilder();
|
||||
static public interface Builder
|
||||
{
|
||||
RequestOverrideConfiguration overrideConfiguration();
|
||||
SdkRequest build();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.SdkResponse for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
import java.util.Optional;
|
||||
import software.amazon.awssdk.core.SdkPojo;
|
||||
import software.amazon.awssdk.http.SdkHttpResponse;
|
||||
|
||||
abstract public class SdkResponse implements SdkPojo
|
||||
{
|
||||
protected SdkResponse() {}
|
||||
protected SdkResponse(SdkResponse.Builder p0){}
|
||||
public <T> java.util.Optional<T> getValueForField(String p0, java.lang.Class<T> p1){ return null; }
|
||||
public SdkHttpResponse sdkHttpResponse(){ return null; }
|
||||
public abstract SdkResponse.Builder toBuilder();
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
static public interface Builder
|
||||
{
|
||||
SdkHttpResponse sdkHttpResponse();
|
||||
SdkResponse build();
|
||||
SdkResponse.Builder sdkHttpResponse(SdkHttpResponse p0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.ServiceConfiguration for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core;
|
||||
|
||||
|
||||
public interface ServiceConfiguration
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.async.AsyncRequestBody for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.async;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.charset.Charset;
|
||||
import java.nio.file.Path;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import org.reactivestreams.Publisher;
|
||||
import software.amazon.awssdk.core.async.BlockingInputStreamAsyncRequestBody;
|
||||
import software.amazon.awssdk.core.async.BlockingOutputStreamAsyncRequestBody;
|
||||
import software.amazon.awssdk.core.async.SdkPublisher;
|
||||
|
||||
public interface AsyncRequestBody extends SdkPublisher<ByteBuffer>
|
||||
{
|
||||
Optional<Long> contentLength();
|
||||
default String contentType(){ return null; }
|
||||
static AsyncRequestBody empty(){ return null; }
|
||||
static AsyncRequestBody fromByteBuffer(ByteBuffer p0){ return null; }
|
||||
static AsyncRequestBody fromBytes(byte[] p0){ return null; }
|
||||
static AsyncRequestBody fromFile(File p0){ return null; }
|
||||
static AsyncRequestBody fromFile(Path p0){ return null; }
|
||||
static AsyncRequestBody fromInputStream(InputStream p0, Long p1, ExecutorService p2){ return null; }
|
||||
static AsyncRequestBody fromPublisher(Publisher<ByteBuffer> p0){ return null; }
|
||||
static AsyncRequestBody fromString(String p0){ return null; }
|
||||
static AsyncRequestBody fromString(String p0, Charset p1){ return null; }
|
||||
static BlockingInputStreamAsyncRequestBody forBlockingInputStream(Long p0){ return null; }
|
||||
static BlockingOutputStreamAsyncRequestBody forBlockingOutputStream(Long p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.async.AsyncResponseTransformer for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.async;
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.file.Path;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.function.Consumer;
|
||||
import software.amazon.awssdk.core.FileTransformerConfiguration;
|
||||
import software.amazon.awssdk.core.ResponseBytes;
|
||||
import software.amazon.awssdk.core.ResponseInputStream;
|
||||
import software.amazon.awssdk.core.SdkResponse;
|
||||
import software.amazon.awssdk.core.async.ResponsePublisher;
|
||||
import software.amazon.awssdk.core.async.SdkPublisher;
|
||||
|
||||
public interface AsyncResponseTransformer<ResponseT, ResultT>
|
||||
{
|
||||
CompletableFuture<ResultT> prepare();
|
||||
static <ResponseT extends SdkResponse> AsyncResponseTransformer<ResponseT, ResponseInputStream<ResponseT>> toBlockingInputStream(){ return null; }
|
||||
static <ResponseT extends SdkResponse> AsyncResponseTransformer<ResponseT, ResponsePublisher<ResponseT>> toPublisher(){ return null; }
|
||||
static <ResponseT> AsyncResponseTransformer<ResponseT, software.amazon.awssdk.core.ResponseBytes<ResponseT>> toBytes(){ return null; }
|
||||
static <ResponseT> software.amazon.awssdk.core.async.AsyncResponseTransformer<ResponseT, ResponseT> toFile(File p0){ return null; }
|
||||
static <ResponseT> software.amazon.awssdk.core.async.AsyncResponseTransformer<ResponseT, ResponseT> toFile(File p0, FileTransformerConfiguration p1){ return null; }
|
||||
static <ResponseT> software.amazon.awssdk.core.async.AsyncResponseTransformer<ResponseT, ResponseT> toFile(File p0, java.util.function.Consumer<FileTransformerConfiguration.Builder> p1){ return null; }
|
||||
static <ResponseT> software.amazon.awssdk.core.async.AsyncResponseTransformer<ResponseT, ResponseT> toFile(Path p0){ return null; }
|
||||
static <ResponseT> software.amazon.awssdk.core.async.AsyncResponseTransformer<ResponseT, ResponseT> toFile(Path p0, FileTransformerConfiguration p1){ return null; }
|
||||
static <ResponseT> software.amazon.awssdk.core.async.AsyncResponseTransformer<ResponseT, ResponseT> toFile(Path p0, java.util.function.Consumer<FileTransformerConfiguration.Builder> p1){ return null; }
|
||||
void exceptionOccurred(Throwable p0);
|
||||
void onResponse(ResponseT p0);
|
||||
void onStream(SdkPublisher<ByteBuffer> p0);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.async.BlockingInputStreamAsyncRequestBody for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.async;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.Optional;
|
||||
import org.reactivestreams.Subscriber;
|
||||
import software.amazon.awssdk.core.async.AsyncRequestBody;
|
||||
|
||||
public class BlockingInputStreamAsyncRequestBody implements AsyncRequestBody
|
||||
{
|
||||
protected BlockingInputStreamAsyncRequestBody() {}
|
||||
public Optional<Long> contentLength(){ return null; }
|
||||
public long writeInputStream(InputStream p0){ return 0; }
|
||||
public void cancel(){}
|
||||
public void subscribe(Subscriber<? super ByteBuffer> p0){}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.async.BlockingOutputStreamAsyncRequestBody for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.async;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.Optional;
|
||||
import org.reactivestreams.Subscriber;
|
||||
import software.amazon.awssdk.core.async.AsyncRequestBody;
|
||||
import software.amazon.awssdk.utils.CancellableOutputStream;
|
||||
|
||||
public class BlockingOutputStreamAsyncRequestBody implements AsyncRequestBody
|
||||
{
|
||||
protected BlockingOutputStreamAsyncRequestBody() {}
|
||||
public CancellableOutputStream outputStream(){ return null; }
|
||||
public Optional<Long> contentLength(){ return null; }
|
||||
public void subscribe(Subscriber<? super ByteBuffer> p0){}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.async.ResponsePublisher for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.async;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import org.reactivestreams.Subscriber;
|
||||
import software.amazon.awssdk.core.SdkResponse;
|
||||
import software.amazon.awssdk.core.async.SdkPublisher;
|
||||
|
||||
public class ResponsePublisher<ResponseT extends SdkResponse> implements SdkPublisher<ByteBuffer>
|
||||
{
|
||||
protected ResponsePublisher() {}
|
||||
public ResponsePublisher(ResponseT p0, SdkPublisher<ByteBuffer> p1){}
|
||||
public ResponseT response(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public void subscribe(Subscriber<? super ByteBuffer> p0){}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.async.SdkPublisher for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.async;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Predicate;
|
||||
import org.reactivestreams.Publisher;
|
||||
|
||||
public interface SdkPublisher<T> extends org.reactivestreams.Publisher<T>
|
||||
{
|
||||
default <U extends T> software.amazon.awssdk.core.async.SdkPublisher<U> filter(java.lang.Class<U> p0){ return null; }
|
||||
default <U> software.amazon.awssdk.core.async.SdkPublisher<U> flatMapIterable(Function<T, Iterable<U>> p0){ return null; }
|
||||
default <U> software.amazon.awssdk.core.async.SdkPublisher<U> map(Function<T, U> p0){ return null; }
|
||||
default CompletableFuture<Void> subscribe(java.util.function.Consumer<T> p0){ return null; }
|
||||
default SdkPublisher<T> doAfterOnCancel(Runnable p0){ return null; }
|
||||
default SdkPublisher<T> doAfterOnComplete(Runnable p0){ return null; }
|
||||
default SdkPublisher<T> doAfterOnError(Consumer<Throwable> p0){ return null; }
|
||||
default SdkPublisher<T> filter(java.util.function.Predicate<T> p0){ return null; }
|
||||
default SdkPublisher<T> limit(int p0){ return null; }
|
||||
default SdkPublisher<java.util.List<T>> buffer(int p0){ return null; }
|
||||
static <T> SdkPublisher<T> adapt(org.reactivestreams.Publisher<T> p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.client.builder.SdkAsyncClientBuilder for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.client.builder;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
import software.amazon.awssdk.core.client.config.ClientAsyncConfiguration;
|
||||
import software.amazon.awssdk.http.async.SdkAsyncHttpClient;
|
||||
|
||||
public interface SdkAsyncClientBuilder<B extends SdkAsyncClientBuilder<B, C>, C>
|
||||
{
|
||||
B asyncConfiguration(ClientAsyncConfiguration p0);
|
||||
B httpClient(SdkAsyncHttpClient p0);
|
||||
B httpClientBuilder(SdkAsyncHttpClient.Builder p0);
|
||||
default B asyncConfiguration(java.util.function.Consumer<ClientAsyncConfiguration.Builder> p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.client.builder.SdkClientBuilder for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.client.builder;
|
||||
|
||||
import java.net.URI;
|
||||
import java.util.function.Consumer;
|
||||
import software.amazon.awssdk.core.client.config.ClientOverrideConfiguration;
|
||||
import software.amazon.awssdk.utils.builder.SdkBuilder;
|
||||
|
||||
public interface SdkClientBuilder<B extends SdkClientBuilder<B, C>, C> extends software.amazon.awssdk.utils.builder.SdkBuilder<B, C>
|
||||
{
|
||||
B endpointOverride(URI p0);
|
||||
B overrideConfiguration(ClientOverrideConfiguration p0);
|
||||
ClientOverrideConfiguration overrideConfiguration();
|
||||
default B overrideConfiguration(java.util.function.Consumer<ClientOverrideConfiguration.Builder> p0){ return null; }
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.client.config.ClientAsyncConfiguration for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.client.config;
|
||||
|
||||
import java.util.Map;
|
||||
import software.amazon.awssdk.core.client.config.SdkAdvancedAsyncClientOption;
|
||||
import software.amazon.awssdk.utils.builder.CopyableBuilder;
|
||||
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
|
||||
|
||||
public class ClientAsyncConfiguration implements ToCopyableBuilder<ClientAsyncConfiguration.Builder, ClientAsyncConfiguration>
|
||||
{
|
||||
protected ClientAsyncConfiguration() {}
|
||||
public <T> T advancedOption(software.amazon.awssdk.core.client.config.SdkAdvancedAsyncClientOption<T> p0){ return null; }
|
||||
public ClientAsyncConfiguration.Builder toBuilder(){ return null; }
|
||||
public static ClientAsyncConfiguration.Builder builder(){ return null; }
|
||||
static public interface Builder extends CopyableBuilder<ClientAsyncConfiguration.Builder, ClientAsyncConfiguration>
|
||||
{
|
||||
<T> ClientAsyncConfiguration.Builder advancedOption(software.amazon.awssdk.core.client.config.SdkAdvancedAsyncClientOption<T> p0, T p1);
|
||||
ClientAsyncConfiguration.Builder advancedOptions(Map<SdkAdvancedAsyncClientOption<? extends Object>, ? extends Object> p0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.client.config.ClientOption for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.client.config;
|
||||
|
||||
import software.amazon.awssdk.utils.AttributeMap;
|
||||
|
||||
abstract public class ClientOption<T> extends AttributeMap.Key<T>
|
||||
{
|
||||
protected ClientOption() {}
|
||||
protected ClientOption(AttributeMap.Key.UnsafeValueType p0){}
|
||||
protected ClientOption(java.lang.Class<T> p0){}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.client.config.ClientOverrideConfiguration for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.client.config;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Consumer;
|
||||
import software.amazon.awssdk.core.client.config.SdkAdvancedClientOption;
|
||||
import software.amazon.awssdk.core.interceptor.ExecutionAttribute;
|
||||
import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
|
||||
import software.amazon.awssdk.core.interceptor.ExecutionInterceptor;
|
||||
import software.amazon.awssdk.core.retry.RetryMode;
|
||||
import software.amazon.awssdk.core.retry.RetryPolicy;
|
||||
import software.amazon.awssdk.metrics.MetricPublisher;
|
||||
import software.amazon.awssdk.profiles.ProfileFile;
|
||||
import software.amazon.awssdk.utils.AttributeMap;
|
||||
import software.amazon.awssdk.utils.builder.CopyableBuilder;
|
||||
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
|
||||
|
||||
public class ClientOverrideConfiguration implements ToCopyableBuilder<ClientOverrideConfiguration.Builder, ClientOverrideConfiguration>
|
||||
{
|
||||
protected ClientOverrideConfiguration() {}
|
||||
public <T> java.util.Optional<T> advancedOption(software.amazon.awssdk.core.client.config.SdkAdvancedClientOption<T> p0){ return null; }
|
||||
public ClientOverrideConfiguration.Builder toBuilder(){ return null; }
|
||||
public ExecutionAttributes executionAttributes(){ return null; }
|
||||
public List<ExecutionInterceptor> executionInterceptors(){ return null; }
|
||||
public List<MetricPublisher> metricPublishers(){ return null; }
|
||||
public Map<String, List<String>> headers(){ return null; }
|
||||
public Optional<Duration> apiCallAttemptTimeout(){ return null; }
|
||||
public Optional<Duration> apiCallTimeout(){ return null; }
|
||||
public Optional<ProfileFile> defaultProfileFile(){ return null; }
|
||||
public Optional<RetryPolicy> retryPolicy(){ return null; }
|
||||
public Optional<String> defaultProfileName(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public static ClientOverrideConfiguration.Builder builder(){ return null; }
|
||||
static public interface Builder extends CopyableBuilder<ClientOverrideConfiguration.Builder, ClientOverrideConfiguration>
|
||||
{
|
||||
<T> ClientOverrideConfiguration.Builder putAdvancedOption(software.amazon.awssdk.core.client.config.SdkAdvancedClientOption<T> p0, T p1);
|
||||
<T> ClientOverrideConfiguration.Builder putExecutionAttribute(software.amazon.awssdk.core.interceptor.ExecutionAttribute<T> p0, T p1);
|
||||
AttributeMap advancedOptions();
|
||||
ClientOverrideConfiguration.Builder addExecutionInterceptor(ExecutionInterceptor p0);
|
||||
ClientOverrideConfiguration.Builder addMetricPublisher(MetricPublisher p0);
|
||||
ClientOverrideConfiguration.Builder advancedOptions(Map<SdkAdvancedClientOption<? extends Object>, ? extends Object> p0);
|
||||
ClientOverrideConfiguration.Builder apiCallAttemptTimeout(Duration p0);
|
||||
ClientOverrideConfiguration.Builder apiCallTimeout(Duration p0);
|
||||
ClientOverrideConfiguration.Builder defaultProfileFile(ProfileFile p0);
|
||||
ClientOverrideConfiguration.Builder defaultProfileName(String p0);
|
||||
ClientOverrideConfiguration.Builder executionAttributes(ExecutionAttributes p0);
|
||||
ClientOverrideConfiguration.Builder executionInterceptors(List<ExecutionInterceptor> p0);
|
||||
ClientOverrideConfiguration.Builder headers(Map<String, List<String>> p0);
|
||||
ClientOverrideConfiguration.Builder metricPublishers(List<MetricPublisher> p0);
|
||||
ClientOverrideConfiguration.Builder putHeader(String p0, List<String> p1);
|
||||
ClientOverrideConfiguration.Builder retryPolicy(RetryPolicy p0);
|
||||
Duration apiCallAttemptTimeout();
|
||||
Duration apiCallTimeout();
|
||||
ExecutionAttributes executionAttributes();
|
||||
List<ExecutionInterceptor> executionInterceptors();
|
||||
List<MetricPublisher> metricPublishers();
|
||||
Map<String, List<String>> headers();
|
||||
ProfileFile defaultProfileFile();
|
||||
RetryPolicy retryPolicy();
|
||||
String defaultProfileName();
|
||||
default ClientOverrideConfiguration.Builder putHeader(String p0, String p1){ return null; }
|
||||
default ClientOverrideConfiguration.Builder retryPolicy(RetryMode p0){ return null; }
|
||||
default ClientOverrideConfiguration.Builder retryPolicy(java.util.function.Consumer<RetryPolicy.Builder> p0){ return null; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.client.config.SdkAdvancedAsyncClientOption for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.client.config;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
import software.amazon.awssdk.core.client.config.ClientOption;
|
||||
|
||||
public class SdkAdvancedAsyncClientOption<T> extends software.amazon.awssdk.core.client.config.ClientOption<T>
|
||||
{
|
||||
protected SdkAdvancedAsyncClientOption() {}
|
||||
public static SdkAdvancedAsyncClientOption<Executor> FUTURE_COMPLETION_EXECUTOR = null;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.client.config.SdkAdvancedClientOption for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.client.config;
|
||||
|
||||
import software.amazon.awssdk.core.client.config.ClientOption;
|
||||
import software.amazon.awssdk.core.signer.Signer;
|
||||
|
||||
public class SdkAdvancedClientOption<T> extends software.amazon.awssdk.core.client.config.ClientOption<T>
|
||||
{
|
||||
protected SdkAdvancedClientOption() {}
|
||||
protected SdkAdvancedClientOption(java.lang.Class<T> p0){}
|
||||
public static SdkAdvancedClientOption<Boolean> DISABLE_HOST_PREFIX_INJECTION = null;
|
||||
public static SdkAdvancedClientOption<Signer> SIGNER = null;
|
||||
public static SdkAdvancedClientOption<Signer> TOKEN_SIGNER = null;
|
||||
public static SdkAdvancedClientOption<String> USER_AGENT_PREFIX = null;
|
||||
public static SdkAdvancedClientOption<String> USER_AGENT_SUFFIX = null;
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.document.Document for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.document;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
import software.amazon.awssdk.core.SdkNumber;
|
||||
import software.amazon.awssdk.core.document.DocumentVisitor;
|
||||
import software.amazon.awssdk.core.document.VoidDocumentVisitor;
|
||||
|
||||
public interface Document extends Serializable
|
||||
{
|
||||
<R> R accept(DocumentVisitor<? extends R> p0);
|
||||
List<Document> asList();
|
||||
Map<String, Document> asMap();
|
||||
Object unwrap();
|
||||
SdkNumber asNumber();
|
||||
String asString();
|
||||
boolean asBoolean();
|
||||
default boolean isBoolean(){ return false; }
|
||||
default boolean isList(){ return false; }
|
||||
default boolean isMap(){ return false; }
|
||||
default boolean isNull(){ return false; }
|
||||
default boolean isNumber(){ return false; }
|
||||
default boolean isString(){ return false; }
|
||||
static Document fromBoolean(boolean p0){ return null; }
|
||||
static Document fromList(List<Document> p0){ return null; }
|
||||
static Document fromMap(Map<String, Document> p0){ return null; }
|
||||
static Document fromNull(){ return null; }
|
||||
static Document fromNumber(BigDecimal p0){ return null; }
|
||||
static Document fromNumber(BigInteger p0){ return null; }
|
||||
static Document fromNumber(SdkNumber p0){ return null; }
|
||||
static Document fromNumber(String p0){ return null; }
|
||||
static Document fromNumber(double p0){ return null; }
|
||||
static Document fromNumber(float p0){ return null; }
|
||||
static Document fromNumber(int p0){ return null; }
|
||||
static Document fromNumber(long p0){ return null; }
|
||||
static Document fromString(String p0){ return null; }
|
||||
static Document.ListBuilder listBuilder(){ return null; }
|
||||
static Document.MapBuilder mapBuilder(){ return null; }
|
||||
static public interface ListBuilder
|
||||
{
|
||||
Document build();
|
||||
Document.ListBuilder addBoolean(boolean p0);
|
||||
Document.ListBuilder addDocument(Document p0);
|
||||
Document.ListBuilder addMap(Consumer<Document.MapBuilder> p0);
|
||||
Document.ListBuilder addNull();
|
||||
Document.ListBuilder addNumber(BigDecimal p0);
|
||||
Document.ListBuilder addNumber(BigInteger p0);
|
||||
Document.ListBuilder addNumber(SdkNumber p0);
|
||||
Document.ListBuilder addNumber(String p0);
|
||||
Document.ListBuilder addNumber(double p0);
|
||||
Document.ListBuilder addNumber(float p0);
|
||||
Document.ListBuilder addNumber(int p0);
|
||||
Document.ListBuilder addNumber(long p0);
|
||||
Document.ListBuilder addString(String p0);
|
||||
}
|
||||
static public interface MapBuilder
|
||||
{
|
||||
Document build();
|
||||
Document.MapBuilder putBoolean(String p0, boolean p1);
|
||||
Document.MapBuilder putDocument(String p0, Document p1);
|
||||
Document.MapBuilder putList(String p0, Consumer<Document.ListBuilder> p1);
|
||||
Document.MapBuilder putList(String p0, List<Document> p1);
|
||||
Document.MapBuilder putMap(String p0, Consumer<Document.MapBuilder> p1);
|
||||
Document.MapBuilder putMap(String p0, Map<String, Document> p1);
|
||||
Document.MapBuilder putNull(String p0);
|
||||
Document.MapBuilder putNumber(String p0, BigDecimal p1);
|
||||
Document.MapBuilder putNumber(String p0, BigInteger p1);
|
||||
Document.MapBuilder putNumber(String p0, SdkNumber p1);
|
||||
Document.MapBuilder putNumber(String p0, String p1);
|
||||
Document.MapBuilder putNumber(String p0, double p1);
|
||||
Document.MapBuilder putNumber(String p0, float p1);
|
||||
Document.MapBuilder putNumber(String p0, int p1);
|
||||
Document.MapBuilder putNumber(String p0, long p1);
|
||||
Document.MapBuilder putString(String p0, String p1);
|
||||
}
|
||||
void accept(VoidDocumentVisitor p0);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.document.DocumentVisitor for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.document;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import software.amazon.awssdk.core.SdkNumber;
|
||||
import software.amazon.awssdk.core.document.Document;
|
||||
|
||||
public interface DocumentVisitor<R>
|
||||
{
|
||||
R visitBoolean(Boolean p0);
|
||||
R visitList(List<Document> p0);
|
||||
R visitMap(Map<String, Document> p0);
|
||||
R visitNull();
|
||||
R visitNumber(SdkNumber p0);
|
||||
R visitString(String p0);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.document.VoidDocumentVisitor for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.document;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import software.amazon.awssdk.core.SdkNumber;
|
||||
import software.amazon.awssdk.core.document.Document;
|
||||
|
||||
public interface VoidDocumentVisitor
|
||||
{
|
||||
default void visitBoolean(Boolean p0){}
|
||||
default void visitList(List<Document> p0){}
|
||||
default void visitMap(Map<String, Document> p0){}
|
||||
default void visitNull(){}
|
||||
default void visitNumber(SdkNumber p0){}
|
||||
default void visitString(String p0){}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.exception.SdkException for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.exception;
|
||||
|
||||
import software.amazon.awssdk.utils.builder.Buildable;
|
||||
|
||||
public class SdkException extends RuntimeException
|
||||
{
|
||||
protected SdkException() {}
|
||||
protected SdkException(SdkException.Builder p0){}
|
||||
public SdkException.Builder toBuilder(){ return null; }
|
||||
public boolean retryable(){ return false; }
|
||||
public static SdkException create(String p0, Throwable p1){ return null; }
|
||||
public static SdkException.Builder builder(){ return null; }
|
||||
static public interface Builder extends Buildable
|
||||
{
|
||||
Boolean writableStackTrace();
|
||||
SdkException build();
|
||||
SdkException.Builder cause(Throwable p0);
|
||||
SdkException.Builder message(String p0);
|
||||
SdkException.Builder writableStackTrace(Boolean p0);
|
||||
String message();
|
||||
Throwable cause();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.interceptor.Context for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.interceptor;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.Optional;
|
||||
import org.reactivestreams.Publisher;
|
||||
import software.amazon.awssdk.core.SdkRequest;
|
||||
import software.amazon.awssdk.core.SdkResponse;
|
||||
import software.amazon.awssdk.core.async.AsyncRequestBody;
|
||||
import software.amazon.awssdk.core.sync.RequestBody;
|
||||
import software.amazon.awssdk.http.SdkHttpRequest;
|
||||
import software.amazon.awssdk.http.SdkHttpResponse;
|
||||
|
||||
public class Context
|
||||
{
|
||||
protected Context() {}
|
||||
static public interface AfterExecution extends Context.ModifyResponse
|
||||
{
|
||||
}
|
||||
static public interface AfterMarshalling extends Context.BeforeMarshalling
|
||||
{
|
||||
Optional<AsyncRequestBody> asyncRequestBody();
|
||||
Optional<RequestBody> requestBody();
|
||||
SdkHttpRequest httpRequest();
|
||||
}
|
||||
static public interface AfterTransmission extends Context.BeforeTransmission
|
||||
{
|
||||
Optional<InputStream> responseBody();
|
||||
Optional<Publisher<ByteBuffer>> responsePublisher();
|
||||
SdkHttpResponse httpResponse();
|
||||
}
|
||||
static public interface AfterUnmarshalling extends Context.BeforeUnmarshalling
|
||||
{
|
||||
SdkResponse response();
|
||||
}
|
||||
static public interface BeforeExecution
|
||||
{
|
||||
SdkRequest request();
|
||||
}
|
||||
static public interface BeforeMarshalling extends Context.ModifyRequest
|
||||
{
|
||||
}
|
||||
static public interface BeforeTransmission extends Context.ModifyHttpRequest
|
||||
{
|
||||
}
|
||||
static public interface BeforeUnmarshalling extends Context.ModifyHttpResponse
|
||||
{
|
||||
}
|
||||
static public interface FailedExecution
|
||||
{
|
||||
Optional<SdkHttpRequest> httpRequest();
|
||||
Optional<SdkHttpResponse> httpResponse();
|
||||
Optional<SdkResponse> response();
|
||||
SdkRequest request();
|
||||
Throwable exception();
|
||||
}
|
||||
static public interface ModifyHttpRequest extends Context.AfterMarshalling
|
||||
{
|
||||
}
|
||||
static public interface ModifyHttpResponse extends Context.AfterTransmission
|
||||
{
|
||||
}
|
||||
static public interface ModifyRequest extends Context.BeforeExecution
|
||||
{
|
||||
}
|
||||
static public interface ModifyResponse extends Context.AfterUnmarshalling
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.interceptor.ExecutionAttribute for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.interceptor;
|
||||
|
||||
|
||||
public class ExecutionAttribute<T>
|
||||
{
|
||||
protected ExecutionAttribute() {}
|
||||
public ExecutionAttribute(String p0){}
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
// Generated automatically from software.amazon.awssdk.core.interceptor.ExecutionAttributes for testing purposes
|
||||
|
||||
package software.amazon.awssdk.core.interceptor;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import software.amazon.awssdk.core.interceptor.ExecutionAttribute;
|
||||
import software.amazon.awssdk.utils.builder.CopyableBuilder;
|
||||
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
|
||||
|
||||
public class ExecutionAttributes implements ToCopyableBuilder<ExecutionAttributes.Builder, ExecutionAttributes>
|
||||
{
|
||||
protected ExecutionAttributes(Map<? extends ExecutionAttribute<? extends Object>, ? extends Object> p0){}
|
||||
public <U> ExecutionAttributes putAttribute(software.amazon.awssdk.core.interceptor.ExecutionAttribute<U> p0, U p1){ return null; }
|
||||
public <U> ExecutionAttributes putAttributeIfAbsent(software.amazon.awssdk.core.interceptor.ExecutionAttribute<U> p0, U p1){ return null; }
|
||||
public <U> U getAttribute(software.amazon.awssdk.core.interceptor.ExecutionAttribute<U> p0){ return null; }
|
||||
public <U> java.util.Optional<U> getOptionalAttribute(software.amazon.awssdk.core.interceptor.ExecutionAttribute<U> p0){ return null; }
|
||||
public ExecutionAttributes copy(){ return null; }
|
||||
public ExecutionAttributes merge(ExecutionAttributes p0){ return null; }
|
||||
public ExecutionAttributes(){}
|
||||
public ExecutionAttributes.Builder toBuilder(){ return null; }
|
||||
public Map<ExecutionAttribute<? extends Object>, Object> getAttributes(){ return null; }
|
||||
public String toString(){ return null; }
|
||||
public boolean equals(Object p0){ return false; }
|
||||
public int hashCode(){ return 0; }
|
||||
public static ExecutionAttributes unmodifiableExecutionAttributes(ExecutionAttributes p0){ return null; }
|
||||
public static ExecutionAttributes.Builder builder(){ return null; }
|
||||
public void putAbsentAttributes(ExecutionAttributes p0){}
|
||||
static public class Builder implements CopyableBuilder<ExecutionAttributes.Builder, ExecutionAttributes>
|
||||
{
|
||||
protected Builder() {}
|
||||
public <T> ExecutionAttributes.Builder put(software.amazon.awssdk.core.interceptor.ExecutionAttribute<T> p0, T p1){ return null; }
|
||||
public ExecutionAttributes build(){ return null; }
|
||||
public ExecutionAttributes.Builder putAll(Map<? extends ExecutionAttribute<? extends Object>, ? extends Object> p0){ return null; }
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user