|
1 | | -package io.koraframework.s3.client.annotation.processor; |
| 1 | +package io.koraframework.s3.client.kora.annotation.processor; |
2 | 2 |
|
3 | 3 | import com.palantir.javapoet.ArrayTypeName; |
4 | 4 | import com.palantir.javapoet.ClassName; |
|
10 | 10 |
|
11 | 11 | public class S3ClassNames { |
12 | 12 | public static class Annotation { |
13 | | - public static final ClassName CLIENT = ClassName.get("io.koraframework.s3.client.annotation", "S3", "Client"); |
14 | | - public static final ClassName BUCKET = ClassName.get("io.koraframework.s3.client.annotation", "S3", "Bucket"); |
15 | | - public static final ClassName GET = ClassName.get("io.koraframework.s3.client.annotation", "S3", "Get"); |
16 | | - public static final ClassName LIST = ClassName.get("io.koraframework.s3.client.annotation", "S3", "List"); |
17 | | - public static final ClassName PUT = ClassName.get("io.koraframework.s3.client.annotation", "S3", "Put"); |
18 | | - public static final ClassName DELETE = ClassName.get("io.koraframework.s3.client.annotation", "S3", "Delete"); |
19 | | - public static final ClassName HEAD = ClassName.get("io.koraframework.s3.client.annotation", "S3", "Head"); |
| 13 | + public static final ClassName CLIENT = ClassName.get("io.koraframework.s3.client.kora.annotation", "S3", "Client"); |
| 14 | + public static final ClassName BUCKET = ClassName.get("io.koraframework.s3.client.kora.annotation", "S3", "Bucket"); |
| 15 | + public static final ClassName GET = ClassName.get("io.koraframework.s3.client.kora.annotation", "S3", "Get"); |
| 16 | + public static final ClassName LIST = ClassName.get("io.koraframework.s3.client.kora.annotation", "S3", "List"); |
| 17 | + public static final ClassName PUT = ClassName.get("io.koraframework.s3.client.kora.annotation", "S3", "Put"); |
| 18 | + public static final ClassName DELETE = ClassName.get("io.koraframework.s3.client.kora.annotation", "S3", "Delete"); |
| 19 | + public static final ClassName HEAD = ClassName.get("io.koraframework.s3.client.kora.annotation", "S3", "Head"); |
20 | 20 |
|
21 | 21 | public static final Set<ClassName> OPERATIONS = Set.of(GET, LIST, PUT, DELETE, HEAD); |
22 | 22 | } |
23 | 23 |
|
24 | 24 |
|
25 | | - public static final ClassName CLIENT = ClassName.get("io.koraframework.s3.client", "S3Client"); |
26 | | - public static final ClassName AWS_CREDENTIALS = ClassName.get("io.koraframework.s3.client", "AwsCredentials"); |
27 | | - public static final ClassName CLIENT_FACTORY = ClassName.get("io.koraframework.s3.client", "S3ClientFactory"); |
28 | | - public static final ClassName CONFIG = ClassName.get("io.koraframework.s3.client", "S3ClientConfig"); |
29 | | - public static final ClassName CONFIG_WITH_CREDS = ClassName.get("io.koraframework.s3.client", "S3ClientConfigWithCredentials"); |
| 25 | + public static final ClassName CLIENT = ClassName.get("io.koraframework.s3.client.kora", "S3Client"); |
| 26 | + public static final ClassName S3_CREDENTIALS = ClassName.get("io.koraframework.s3.client.kora", "S3Credentials"); |
| 27 | + public static final ClassName CLIENT_FACTORY = ClassName.get("io.koraframework.s3.client.kora", "S3ClientFactory"); |
| 28 | + public static final ClassName CONFIG = ClassName.get("io.koraframework.s3.client.kora", "S3ClientConfig"); |
| 29 | + public static final ClassName CONFIG_WITH_CREDS = ClassName.get("io.koraframework.s3.client.kora", "S3ClientConfigWithCredentials"); |
30 | 30 |
|
31 | 31 | public static final ClassName CONTENT_WRITER = CLIENT.nestedClass("ContentWriter"); |
32 | 32 |
|
33 | | - public static final ClassName PUT_OBJECT_ARGS = ClassName.get("io.koraframework.s3.client.model.request", "PutObjectArgs"); |
34 | | - public static final ClassName GET_OBJECT_ARGS = ClassName.get("io.koraframework.s3.client.model.request", "GetObjectArgs"); |
35 | | - public static final ClassName DELETE_OBJECT_ARGS = ClassName.get("io.koraframework.s3.client.model.request", "DeleteObjectArgs"); |
36 | | - public static final ClassName HEAD_OBJECT_ARGS = ClassName.get("io.koraframework.s3.client.model.request", "HeadObjectArgs"); |
37 | | - public static final ClassName LIST_OBJECTS_ARGS = ClassName.get("io.koraframework.s3.client.model.request", "ListObjectsArgs"); |
38 | | - public static final ClassName CREATE_MULTIPART_UPLOAD_ARGS = ClassName.get("io.koraframework.s3.client.model.request", "CreateMultipartUploadArgs"); |
39 | | - public static final ClassName COMPLETE_MULTIPART_UPLOAD_ARGS = ClassName.get("io.koraframework.s3.client.model.request", "CompleteMultipartUploadArgs"); |
| 33 | + public static final ClassName PUT_OBJECT_ARGS = ClassName.get("io.koraframework.s3.client.kora.model.request", "PutObjectArgs"); |
| 34 | + public static final ClassName GET_OBJECT_ARGS = ClassName.get("io.koraframework.s3.client.kora.model.request", "GetObjectArgs"); |
| 35 | + public static final ClassName DELETE_OBJECT_ARGS = ClassName.get("io.koraframework.s3.client.kora.model.request", "DeleteObjectArgs"); |
| 36 | + public static final ClassName HEAD_OBJECT_ARGS = ClassName.get("io.koraframework.s3.client.kora.model.request", "HeadObjectArgs"); |
| 37 | + public static final ClassName LIST_OBJECTS_ARGS = ClassName.get("io.koraframework.s3.client.kora.model.request", "ListObjectsArgs"); |
| 38 | + public static final ClassName CREATE_MULTIPART_UPLOAD_ARGS = ClassName.get("io.koraframework.s3.client.kora.model.request", "CreateMultipartUploadArgs"); |
| 39 | + public static final ClassName COMPLETE_MULTIPART_UPLOAD_ARGS = ClassName.get("io.koraframework.s3.client.kora.model.request", "CompleteMultipartUploadArgs"); |
40 | 40 | public static final Set<TypeName> ARGS = Set.of(PUT_OBJECT_ARGS, GET_OBJECT_ARGS, DELETE_OBJECT_ARGS, HEAD_OBJECT_ARGS, LIST_OBJECTS_ARGS); |
41 | 41 |
|
42 | | - public static final ClassName GET_OBJECT_RESULT = ClassName.get("io.koraframework.s3.client.model.response", "GetObjectResult"); |
43 | | - public static final ClassName HEAD_OBJECT_RESULT = ClassName.get("io.koraframework.s3.client.model.response", "HeadObjectResult"); |
44 | | - public static final ClassName LIST_BUCKET_RESULT = ClassName.get("io.koraframework.s3.client.model.response", "ListBucketResult"); |
45 | | - public static final ClassName UPLOADED_PART = ClassName.get("io.koraframework.s3.client.model.response", "UploadedPart"); |
| 42 | + public static final ClassName GET_OBJECT_RESULT = ClassName.get("io.koraframework.s3.client.kora.model.response", "GetObjectResult"); |
| 43 | + public static final ClassName HEAD_OBJECT_RESULT = ClassName.get("io.koraframework.s3.client.kora.model.response", "HeadObjectResult"); |
| 44 | + public static final ClassName LIST_BUCKET_RESULT = ClassName.get("io.koraframework.s3.client.kora.model.response", "ListBucketResult"); |
| 45 | + public static final ClassName UPLOADED_PART = ClassName.get("io.koraframework.s3.client.kora.model.response", "UploadedPart"); |
46 | 46 | public static final ClassName LIST_BUCKET_RESULT_ITEM = LIST_BUCKET_RESULT.nestedClass("ListBucketItem"); |
47 | 47 |
|
48 | | - public static final ClassName UNKNOWN_EXCEPTION = ClassName.get("io.koraframework.s3.client.exception", "S3ClientUnknownException"); |
| 48 | + public static final ClassName UNKNOWN_EXCEPTION = ClassName.get("io.koraframework.s3.client.kora.exception", "S3ClientUnknownException"); |
49 | 49 |
|
50 | 50 | public static final Set<TypeName> BODY_TYPES = Set.of( |
51 | 51 | ArrayTypeName.of(TypeName.BYTE), |
|
0 commit comments