Index

A B C D E F G H I J K L M N O P Q R S T U V W X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

addExplicitService(CloudStubService) - Method in class io.cloudstub.core.internal.CloudStubSettings
 
afterAll(ExtensionContext) - Method in class io.cloudstub.junit.CloudStubExtension
 
afterTestExecution(ExtensionContext) - Method in class io.cloudstub.junit.CloudStubExtension
 
afterTestExecution(ExtensionContext) - Method in class io.cloudstub.junit.FaultInjectionExtension
 
all() - Method in class io.cloudstub.core.internal.RequestHistory
All served requests, newest first.
allServiceIds() - Method in class io.cloudstub.core.internal.ServiceRegistry
 
apiBaseUrl() - Method in class io.cloudstub.local.cli.CloudStubCli
 
apiBaseUrl() - Method in record class io.cloudstub.local.cli.Conn
 
ApiClient - Class in io.cloudstub.local.cli.http
Generic HTTP client for the CloudStub REST API.
ApiClient(String) - Constructor for class io.cloudstub.local.cli.http.ApiClient
 
ApiClient.Result - Record Class in io.cloudstub.local.cli.http
Result of an API call: the HTTP status and the parsed JSON body (never null).
ApiHandler - Interface in io.cloudstub.core.spi.restapi
Handler for a single API route registered by a service module.
ApiParam - Record Class in io.cloudstub.core.spi.restapi
Describes a single parameter of an API route.
ApiParam(String, boolean, String) - Constructor for record class io.cloudstub.core.spi.restapi.ApiParam
Creates an instance of a ApiParam record class.
apiPort() - Method in record class io.cloudstub.local.cli.Conn
Returns the value of the apiPort record component.
ApiPortResolver - Class in io.cloudstub.local.config.resolver
Resolves the port for the REST API server.
ApiRequest - Record Class in io.cloudstub.core.spi.restapi
Inbound API HTTP request, stripped of HTTP-transport details.
ApiRequest(String, String, Map<String, String>) - Constructor for record class io.cloudstub.core.spi.restapi.ApiRequest
Creates an instance of a ApiRequest record class.
ApiResponse - Record Class in io.cloudstub.core.spi.restapi
Response produced by a module API handler.
ApiResponse(int, Map<String, Object>) - Constructor for record class io.cloudstub.core.spi.restapi.ApiResponse
Creates an instance of a ApiResponse record class.
ApiRouteRegistrar - Interface in io.cloudstub.core.spi.restapi
Passed to CloudStubApiService.registerRoutes(io.cloudstub.core.spi.restapi.CloudStubApiContext) so modules can declare API routes without depending on any HTTP transport type.
APPEND_LOG - Enum constant in enum class io.cloudstub.core.StatePersistence
Append-only log with periodic compaction (the default).
AppendLogStateStore - Class in io.cloudstub.core.internal.store
Persistent StateStore that records each mutation as a single appended record in an append-only log, rather than rewriting the whole document on every change.
AppendLogStateStore(Path) - Constructor for class io.cloudstub.core.internal.store.AppendLogStateStore
 
apply(Object, Options) - Method in class io.cloudstub.core.internal.Md5HandlebarsHelper
 
applyGlobally() - Method in class io.cloudstub.core.internal.CloudStubResponseTransformer
 
attr(String, String) - Method in class io.cloudstub.core.spi.XmlElement
Adds an attribute.
AutoDownloadResolver - Class in io.cloudstub.local.config.resolver
Resolves whether absent service module jars are auto-downloaded from Maven Central.
AwsEndpointOverride - Class in io.cloudstub.core.internal
Manages the aws.endpoint-url system property that redirects AWS SDK v2 traffic to the embedded mock server.

B

baseUrl() - Method in class io.cloudstub.local.cli.http.ApiClient
 
beforeAll(ExtensionContext) - Method in class io.cloudstub.junit.CloudStubExtension
 
beforeTestExecution(ExtensionContext) - Method in class io.cloudstub.junit.CloudStubExtension
 
beforeTestExecution(ExtensionContext) - Method in class io.cloudstub.junit.FaultInjectionExtension
 
body() - Method in record class io.cloudstub.core.spi.restapi.ApiResponse
Returns the value of the body record component.
body() - Method in interface io.cloudstub.core.spi.StubRequest
The raw request body as a string, or an empty string if there is none.
body() - Method in class io.cloudstub.core.spi.StubResponse
 
body() - Method in record class io.cloudstub.local.cli.http.ApiClient.Result
Returns the value of the body record component.

C

cachedJar(Path, String) - Static method in class io.cloudstub.core.download.ModuleDownloader
Returns a jar for service already present in dir at any version, regardless of which version was requested.
cachedJar(Path, String, String) - Static method in class io.cloudstub.core.download.ModuleDownloader
Returns the cached jar for service at exactly version (the versioned jar, or an unversioned cloudstub-<service>.jar), or null if that version is not cached.
call() - Method in class io.cloudstub.local.cli.CloudStubCli
No subcommand given — show usage.
call() - Method in class io.cloudstub.local.cli.command.ResetCommand
 
call() - Method in class io.cloudstub.local.cli.command.StatusCommand
 
call(String, String, Map<String, String>) - Method in class io.cloudstub.local.cli.http.ApiClient
Call an arbitrary API route.
CENTRAL_BASE_URL - Static variable in class io.cloudstub.core.download.ModuleDownloader
Canonical Maven Central artifact base.
child(XmlElement) - Method in class io.cloudstub.core.spi.XmlElement
Appends a child element.
child(String, String) - Method in class io.cloudstub.core.spi.XmlElement
Appends a child element <name>text</name>.
clear() - Static method in class io.cloudstub.core.internal.AwsEndpointOverride
Removes the override so the AWS SDK reverts to its normal endpoint resolution.
clear() - Method in class io.cloudstub.core.internal.RequestHistory
Discards all recorded requests.
clear(String) - Method in class io.cloudstub.core.internal.store.AppendLogStateStore
 
clear(String) - Method in class io.cloudstub.core.internal.store.InMemoryStateStore
 
clear(String) - Method in class io.cloudstub.core.internal.store.JsonFileStateStore
 
clear(String) - Method in interface io.cloudstub.core.spi.StateStore
Delete all entries whose key begins with prefix.
clearAll() - Method in class io.cloudstub.core.internal.store.AppendLogStateStore
 
clearAll() - Method in class io.cloudstub.core.internal.store.InMemoryStateStore
 
clearAll() - Method in class io.cloudstub.core.internal.store.JsonFileStateStore
 
clearAll() - Method in interface io.cloudstub.core.spi.StateStore
Delete all entries in the store across all services.
clearAllFaults() - Method in class io.cloudstub.core.CloudStub
Removes all active fault stubs for every service.
clearAllFaults() - Method in class io.cloudstub.core.internal.FaultEngine
 
clearFaults(String) - Method in class io.cloudstub.core.CloudStub
Removes all active fault stubs for serviceId, restoring normal stub behaviour.
clearFaults(String) - Method in class io.cloudstub.core.internal.FaultEngine
 
clearHistory() - Method in class io.cloudstub.core.CloudStub
Clears the captured request history, leaving registered stubs and stored state intact.
CliDispatch - Class in io.cloudstub.local.cli
Decides whether a cloudstub-local invocation runs the server or the CLI.
close() - Method in class io.cloudstub.core.CloudStub
 
close() - Method in class io.cloudstub.local.LocalServer
 
CloudStub - Class in io.cloudstub.core
Entry point for the CloudStub framework.
CloudStub() - Constructor for class io.cloudstub.core.CloudStub
 
CloudStubAlreadyStartedException - Exception in io.cloudstub.core.exception
 
CloudStubAlreadyStartedException() - Constructor for exception io.cloudstub.core.exception.CloudStubAlreadyStartedException
 
CloudStubApiContext - Interface in io.cloudstub.core.spi.restapi
CloudStubApiService - Interface in io.cloudstub.core.spi
Optional companion to CloudStubService for modules that want to expose API routes under /api/<serviceId>/….
CloudStubCli - Class in io.cloudstub.local.cli
Entry point for the CloudStub CLI surface of cloudstub-local.
CloudStubCli() - Constructor for class io.cloudstub.local.cli.CloudStubCli
 
CloudStubContext - Interface in io.cloudstub.core.spi
CloudStubContextImpl - Class in io.cloudstub.core.internal
 
CloudStubContextImpl(StubRegistrar, StateStore) - Constructor for class io.cloudstub.core.internal.CloudStubContextImpl
 
CloudStubDynamoDBApiService - Class in io.cloudstub.dynamodb
REST API surface for DynamoDB, mounted under /api/dynamodb/….
CloudStubDynamoDBApiService() - Constructor for class io.cloudstub.dynamodb.CloudStubDynamoDBApiService
 
CloudStubDynamoDBService - Class in io.cloudstub.dynamodb
CloudStub service module for Amazon DynamoDB.
CloudStubDynamoDBService() - Constructor for class io.cloudstub.dynamodb.CloudStubDynamoDBService
 
CloudStubExtension - Class in io.cloudstub.junit
JUnit extension (JUnit 5 and 6) that manages the CloudStub lifecycle around a test class and applies fault injection annotations (SimulateThrottle, SimulateTimeout, SimulateNetworkBrownout) to individual test methods.
CloudStubExtension() - Constructor for class io.cloudstub.junit.CloudStubExtension
 
CloudStubLambdaApiService - Class in io.cloudstub.lambda
REST API surface for Lambda, mounted under /api/lambda/….
CloudStubLambdaApiService() - Constructor for class io.cloudstub.lambda.CloudStubLambdaApiService
 
CloudStubLambdaService - Class in io.cloudstub.lambda
CloudStub service module for AWS Lambda.
CloudStubLambdaService() - Constructor for class io.cloudstub.lambda.CloudStubLambdaService
 
CloudStubNotStartedException - Exception in io.cloudstub.core.exception
 
CloudStubNotStartedException() - Constructor for exception io.cloudstub.core.exception.CloudStubNotStartedException
 
CloudStubResponseTransformer - Class in io.cloudstub.core.internal
The single global response transformer: it produces a matched stub's real response — running its module-supplied StubHandler against the shared StateStore when the stub is stateful — and then applies any active fault for the stub's service as a decoration over that response.
CloudStubResponseTransformer(StateStore, ServiceRegistry, FaultEngine) - Constructor for class io.cloudstub.core.internal.CloudStubResponseTransformer
 
CloudStubS3ApiService - Class in io.cloudstub.s3
REST API surface for S3, mounted under /api/s3/….
CloudStubS3ApiService() - Constructor for class io.cloudstub.s3.CloudStubS3ApiService
 
CloudStubS3Service - Class in io.cloudstub.s3
CloudStub service module for S3.
CloudStubS3Service() - Constructor for class io.cloudstub.s3.CloudStubS3Service
 
CloudStubSecretsManagerApiService - Class in io.cloudstub.secretsmanager
REST API surface for Secrets Manager, mounted under /api/secretsmanager/….
CloudStubSecretsManagerApiService() - Constructor for class io.cloudstub.secretsmanager.CloudStubSecretsManagerApiService
 
CloudStubSecretsManagerService - Class in io.cloudstub.secretsmanager
CloudStub service module for AWS Secrets Manager.
CloudStubSecretsManagerService() - Constructor for class io.cloudstub.secretsmanager.CloudStubSecretsManagerService
 
CloudStubService - Interface in io.cloudstub.core.spi
Entry point that every CloudStub service module must implement.
CloudStubSettings - Class in io.cloudstub.core.internal
Mutable holder for all pre-start configuration of a CloudStub instance.
CloudStubSettings(int) - Constructor for class io.cloudstub.core.internal.CloudStubSettings
 
CloudStubSNSApiService - Class in io.cloudstub.sns
REST API surface for SNS, mounted under /api/sns/….
CloudStubSNSApiService() - Constructor for class io.cloudstub.sns.CloudStubSNSApiService
 
CloudStubSNSService - Class in io.cloudstub.sns
CloudStub service module for Amazon SNS.
CloudStubSNSService() - Constructor for class io.cloudstub.sns.CloudStubSNSService
 
CloudStubSqsApiService - Class in io.cloudstub.sqs
REST API surface for SQS, mounted under /api/sqs/….
CloudStubSqsApiService() - Constructor for class io.cloudstub.sqs.CloudStubSqsApiService
 
CloudStubSqsService - Class in io.cloudstub.sqs
CloudStub service module for Amazon SQS.
CloudStubSqsService() - Constructor for class io.cloudstub.sqs.CloudStubSqsService
 
CloudStubSSMApiService - Class in io.cloudstub.ssm
REST API surface for SSM Parameter Store, mounted under /api/ssm/….
CloudStubSSMApiService() - Constructor for class io.cloudstub.ssm.CloudStubSSMApiService
 
CloudStubSSMService - Class in io.cloudstub.ssm
CloudStub service module for the Amazon SSM Parameter Store.
CloudStubSSMService() - Constructor for class io.cloudstub.ssm.CloudStubSSMService
 
CloudStubStateException - Exception in io.cloudstub.core.exception
Thrown when the persistent state store cannot read or write its backing file.
CloudStubStateException(String, Throwable) - Constructor for exception io.cloudstub.core.exception.CloudStubStateException
 
CloudStubUnavailableException - Exception in io.cloudstub.local.cli.http
Thrown when the CloudStub REST API cannot be reached (server down, wrong port, network error).
CloudStubUnavailableException(String) - Constructor for exception io.cloudstub.local.cli.http.CloudStubUnavailableException
 
CloudStubUnavailableException(String, Throwable) - Constructor for exception io.cloudstub.local.cli.http.CloudStubUnavailableException
 
CloudStubV1Endpoints - Class in io.cloudstub.sdkv1
Helper for pointing AWS SDK v1 clients at a running CloudStub instance.
Conn - Record Class in io.cloudstub.local.cli
Connection settings for a running CloudStub instance.
Conn(String, int) - Constructor for record class io.cloudstub.local.cli.Conn
Creates an instance of a Conn record class.
content() - Method in record class io.cloudstub.codegen.GeneratedFile
Returns the value of the content record component.
CONTENT_TYPE_JSON - Static variable in class io.cloudstub.core.spi.StubResponse
Content type for AWS JSON-protocol services (SQS, Secrets Manager, DynamoDB).
CONTENT_TYPE_XML - Static variable in class io.cloudstub.core.spi.StubResponse
Content type for AWS query/XML-protocol services (SNS, legacy SQS).
contentType() - Method in class io.cloudstub.core.spi.StubResponse
 
CoreVersion - Class in io.cloudstub.core.download
Reports the running cloudstub-core version from a build-stamped classpath resource.
create(Path, StatePersistence) - Static method in class io.cloudstub.core.internal.store.StateStoreFactory
 
createStarted(CloudStubSettings, CloudStubResponseTransformer) - Static method in class io.cloudstub.core.internal.WireMockServerFactory
Builds a WireMock server from settings, starts it, and returns it.
current() - Static method in class io.cloudstub.core.download.CoreVersion
 

D

DEFAULT_API_PORT - Static variable in class io.cloudstub.local.config.resolver.ApiPortResolver
 
DEFAULT_DIR - Static variable in class io.cloudstub.local.config.resolver.ModulesDirResolver
 
DEFAULT_MAX_REQUEST_HISTORY - Static variable in class io.cloudstub.core.CloudStub
Default cap on retained request-history entries; bounds memory in long-lived processes.
DEFAULT_PORT - Static variable in class io.cloudstub.local.config.resolver.PortResolver
 
delete(String) - Method in class io.cloudstub.core.internal.store.AppendLogStateStore
 
delete(String) - Method in class io.cloudstub.core.internal.store.InMemoryStateStore
 
delete(String) - Method in class io.cloudstub.core.internal.store.JsonFileStateStore
 
delete(String) - Method in interface io.cloudstub.core.spi.StateStore
Delete a single entry.
DELETE - Enum constant in enum class io.cloudstub.core.spi.HttpMethod
 
description() - Method in record class io.cloudstub.core.spi.restapi.ApiParam
Returns the value of the description record component.
Digest - Class in io.cloudstub.core.spi
Checksum helpers for service modules (SQS message checksums, S3 ETags).
download(String, String, Path) - Method in class io.cloudstub.core.download.ModuleDownloader
Downloads the module jar for service into dir, verifying its checksum before the file is made visible and pruning any other cached version.

E

empty() - Static method in class io.cloudstub.local.config.LocalConfig
An empty configuration backed by no file.
enabledServiceIds() - Method in class io.cloudstub.core.internal.CloudStubSettings
 
equals(Object) - Method in record class io.cloudstub.codegen.GeneratedFile
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class io.cloudstub.codegen.GenerationResult
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class io.cloudstub.core.restapi.ModuleStatus
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class io.cloudstub.core.restapi.RequestRecord
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class io.cloudstub.core.restapi.StubInfo
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class io.cloudstub.core.spi.restapi.ApiParam
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class io.cloudstub.core.spi.restapi.ApiRequest
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class io.cloudstub.core.spi.restapi.ApiResponse
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class io.cloudstub.local.cli.Conn
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class io.cloudstub.local.cli.http.ApiClient.Result
Indicates whether some other object is "equal to" this one.
explicitServices() - Method in class io.cloudstub.core.internal.CloudStubSettings
 

F

FaultEngine - Class in io.cloudstub.core.internal
Records the active fault, if any, for each service.
FaultEngine() - Constructor for class io.cloudstub.core.internal.FaultEngine
 
FaultInjectionExtension - Class in io.cloudstub.junit
Standalone JUnit 6 extension that applies fault injection annotations to test methods.
FaultInjectionExtension(CloudStub) - Constructor for class io.cloudstub.junit.FaultInjectionExtension
 
files() - Method in record class io.cloudstub.codegen.GenerationResult
Returns the value of the files record component.
forPort(int) - Static method in class io.cloudstub.sdkv1.CloudStubV1Endpoints
Returns an AwsClientBuilder.EndpointConfiguration that redirects any SDK v1 client to http://localhost:<port>.
forService(String) - Method in class io.cloudstub.core.internal.RequestHistory
Served requests handled by serviceId, newest first; unmatched requests excluded.
from(String[]) - Static method in record class io.cloudstub.local.cli.Conn
Parse connection options from the raw argument list, falling back to env vars then defaults.

G

generate(Path, String) - Method in class io.cloudstub.codegen.ModuleGenerator
 
GeneratedFile - Record Class in io.cloudstub.codegen
A single file produced by the generator: a path relative to the module root and its content.
GeneratedFile(String, String) - Constructor for record class io.cloudstub.codegen.GeneratedFile
Creates an instance of a GeneratedFile record class.
GenerationResult - Record Class in io.cloudstub.codegen
The outcome of a single model generation run.
GenerationResult(String, String, List<GeneratedFile>) - Constructor for record class io.cloudstub.codegen.GenerationResult
Creates an instance of a GenerationResult record class.
get(String) - Method in class io.cloudstub.core.internal.store.AppendLogStateStore
 
get(String) - Method in class io.cloudstub.core.internal.store.InMemoryStateStore
 
get(String) - Method in class io.cloudstub.core.internal.store.JsonFileStateStore
 
get(String) - Method in interface io.cloudstub.core.spi.StateStore
Retrieve the value stored under key, or null if the key does not exist.
get(String) - Method in class io.cloudstub.local.config.LocalConfig
 
GET - Enum constant in enum class io.cloudstub.core.spi.HttpMethod
 
getInt(String) - Method in class io.cloudstub.local.config.LocalConfig
 
getName() - Method in class io.cloudstub.core.internal.CloudStubResponseTransformer
 
getName() - Method in class io.cloudstub.core.internal.Md5HandlebarsHelper
 
getStatus() - Method in class io.cloudstub.local.cli.http.ApiClient
GET /api/status, returning the parsed body.
GROUP - Static variable in class io.cloudstub.core.download.ModuleDownloader
Published Maven group shared by every CloudStub module.

H

handle(ApiRequest) - Method in interface io.cloudstub.core.spi.restapi.ApiHandler
 
handle(StubRequest, StateStore) - Method in interface io.cloudstub.core.spi.StubHandler
Handle a matched request.
hashCode() - Method in record class io.cloudstub.codegen.GeneratedFile
Returns a hash code value for this object.
hashCode() - Method in record class io.cloudstub.codegen.GenerationResult
Returns a hash code value for this object.
hashCode() - Method in record class io.cloudstub.core.restapi.ModuleStatus
Returns a hash code value for this object.
hashCode() - Method in record class io.cloudstub.core.restapi.RequestRecord
Returns a hash code value for this object.
hashCode() - Method in record class io.cloudstub.core.restapi.StubInfo
Returns a hash code value for this object.
hashCode() - Method in record class io.cloudstub.core.spi.restapi.ApiParam
Returns a hash code value for this object.
hashCode() - Method in record class io.cloudstub.core.spi.restapi.ApiRequest
Returns a hash code value for this object.
hashCode() - Method in record class io.cloudstub.core.spi.restapi.ApiResponse
Returns a hash code value for this object.
hashCode() - Method in record class io.cloudstub.local.cli.Conn
Returns a hash code value for this object.
hashCode() - Method in record class io.cloudstub.local.cli.http.ApiClient.Result
Returns a hash code value for this object.
HEAD - Enum constant in enum class io.cloudstub.core.spi.HttpMethod
 
header(String) - Method in interface io.cloudstub.core.spi.StubRequest
The value of the named request header, case-insensitively, or null if absent.
header(String) - Static method in class io.cloudstub.local.cli.util.Printer
 
headers() - Method in class io.cloudstub.core.spi.StubResponse
Additional response headers beyond Content-Type; never null, possibly empty.
HELPER_NAME - Static variable in class io.cloudstub.core.internal.Md5HandlebarsHelper
 
host() - Method in record class io.cloudstub.local.cli.Conn
Returns the value of the host record component.
HttpMethod - Enum Class in io.cloudstub.core.spi

I

id() - Method in record class io.cloudstub.core.restapi.ModuleStatus
Returns the value of the id record component.
initialize(WireMockServer, CloudStubSettings, StateStore, CloudStubResponseTransformer, ServiceRegistry) - Static method in class io.cloudstub.core.internal.ModuleInitializer
 
injectBrownout(String, double) - Method in class io.cloudstub.core.internal.FaultEngine
 
injectThrottle(String) - Method in class io.cloudstub.core.internal.FaultEngine
 
injectTimeout(String) - Method in class io.cloudstub.core.internal.FaultEngine
 
InMemoryStateStore - Class in io.cloudstub.core.internal.store
Thread-safe in-memory StateStore.
InMemoryStateStore() - Constructor for class io.cloudstub.core.internal.store.InMemoryStateStore
 
io.cloudstub.codegen - package io.cloudstub.codegen
 
io.cloudstub.core - package io.cloudstub.core
 
io.cloudstub.core.download - package io.cloudstub.core.download
 
io.cloudstub.core.exception - package io.cloudstub.core.exception
 
io.cloudstub.core.internal - package io.cloudstub.core.internal
 
io.cloudstub.core.internal.store - package io.cloudstub.core.internal.store
 
io.cloudstub.core.restapi - package io.cloudstub.core.restapi
 
io.cloudstub.core.spi - package io.cloudstub.core.spi
 
io.cloudstub.core.spi.restapi - package io.cloudstub.core.spi.restapi
 
io.cloudstub.dynamodb - package io.cloudstub.dynamodb
 
io.cloudstub.junit - package io.cloudstub.junit
 
io.cloudstub.lambda - package io.cloudstub.lambda
 
io.cloudstub.local - package io.cloudstub.local
 
io.cloudstub.local.cli - package io.cloudstub.local.cli
 
io.cloudstub.local.cli.command - package io.cloudstub.local.cli.command
 
io.cloudstub.local.cli.http - package io.cloudstub.local.cli.http
 
io.cloudstub.local.cli.util - package io.cloudstub.local.cli.util
 
io.cloudstub.local.config - package io.cloudstub.local.config
 
io.cloudstub.local.config.exception - package io.cloudstub.local.config.exception
 
io.cloudstub.local.config.resolver - package io.cloudstub.local.config.resolver
 
io.cloudstub.s3 - package io.cloudstub.s3
 
io.cloudstub.sdkv1 - package io.cloudstub.sdkv1
 
io.cloudstub.secretsmanager - package io.cloudstub.secretsmanager
 
io.cloudstub.sns - package io.cloudstub.sns
 
io.cloudstub.sqs - package io.cloudstub.sqs
 
io.cloudstub.ssm - package io.cloudstub.ssm
 
isCached(Path, String, String) - Static method in class io.cloudstub.core.download.ModuleDownloader
Returns whether the jar for service at version is present in dir — either the exact versioned jar or an unversioned cloudstub-<service>.jar.
isCliInvocation(String[]) - Static method in class io.cloudstub.local.cli.CliDispatch
True when the arguments name a CLI command rather than a server start.
isEnabled(String[], LocalConfig) - Static method in class io.cloudstub.local.config.resolver.AutoDownloadResolver
 
isSuccess() - Method in record class io.cloudstub.local.cli.http.ApiClient.Result
 

J

json(int, Map<String, ?>) - Static method in class io.cloudstub.core.spi.StubResponse
A JSON response with an explicit status, serialised from a JDK map/list/value tree (see StubResponse.json(Map)).
json(JsonNode) - Static method in class io.cloudstub.local.cli.util.Printer
 
json(String) - Static method in class io.cloudstub.core.spi.StubResponse
A 200 OK JSON response with the AWS JSON content type.
json(Map<String, ?>) - Static method in class io.cloudstub.core.spi.StubResponse
A 200 OK JSON response whose body is serialised from a JDK map/list/value tree (Map, List, String, number/boolean).
Json - Class in io.cloudstub.core.spi
Helpers for assembling JSON response bodies from plain JDK collections, to pass to StubResponse.json(Map).
JSON_FILE - Enum constant in enum class io.cloudstub.core.StatePersistence
Single JSON document rewritten in full on every mutation.
jsonField(String) - Method in interface io.cloudstub.core.spi.StubRequest
Reads a scalar field from the JSON request body, addressed by a dotted path, so JSON-protocol modules (SQS, DynamoDB, Lambda, …) never have to write their own parser.
JsonFileStateStore - Class in io.cloudstub.core.internal.store
Persistent StateStore that serialises state to a JSON file on every mutation.
JsonFileStateStore(Path) - Constructor for class io.cloudstub.core.internal.store.JsonFileStateStore
 

K

KEY_API_PORT - Static variable in class io.cloudstub.local.config.LocalConfig
 
KEY_AUTO_DOWNLOAD - Static variable in class io.cloudstub.local.config.LocalConfig
 
KEY_MAVEN_BASE_URL - Static variable in class io.cloudstub.local.config.LocalConfig
 
KEY_MAX_HISTORY - Static variable in class io.cloudstub.local.config.LocalConfig
 
KEY_MODULE_VERSION - Static variable in class io.cloudstub.local.config.LocalConfig
 
KEY_MODULES_DIR - Static variable in class io.cloudstub.local.config.LocalConfig
 
KEY_PORT - Static variable in class io.cloudstub.local.config.LocalConfig
 
KEY_SERVICES - Static variable in class io.cloudstub.local.config.LocalConfig
 
KEY_STORE_DIR - Static variable in class io.cloudstub.local.config.LocalConfig
 
kv(String, String) - Static method in class io.cloudstub.local.cli.util.Printer
 

L

list(String) - Method in class io.cloudstub.core.internal.store.AppendLogStateStore
 
list(String) - Method in class io.cloudstub.core.internal.store.InMemoryStateStore
 
list(String) - Method in class io.cloudstub.core.internal.store.JsonFileStateStore
 
list(String) - Method in interface io.cloudstub.core.spi.StateStore
List all keys whose path begins with prefix.
load(Class<?>, String) - Static method in class io.cloudstub.core.spi.StubTemplates
Reads the template /templates/<name>.hbs from the classpath of anchor and returns its trimmed UTF-8 contents.
load(String[]) - Static method in class io.cloudstub.local.config.LocalConfig
 
LocalConfig - Class in io.cloudstub.local.config
Optional .properties configuration file for standalone mode, located from --config=<path>, then CLOUDSTUB_CONFIG, then ./cloudstub.properties.
LocalConfigException - Exception in io.cloudstub.local.config.exception
Signals an unusable standalone config file.
LocalConfigException(String) - Constructor for exception io.cloudstub.local.config.exception.LocalConfigException
 
LocalMain - Class in io.cloudstub.local
 
LocalMain() - Constructor for class io.cloudstub.local.LocalMain
 
LocalServer - Class in io.cloudstub.local
The cloudstub-local HTTP server for the secondary management port (REST API + web console).
LocalServer(CloudStub, int, List<CloudStubApiService>) - Constructor for class io.cloudstub.local.LocalServer
 

M

main(String[]) - Static method in class io.cloudstub.codegen.Main
 
main(String[]) - Static method in class io.cloudstub.local.LocalMain
 
Main - Class in io.cloudstub.codegen
Entry point for the CloudStub stub code generator.
Main() - Constructor for class io.cloudstub.codegen.Main
 
matched() - Method in record class io.cloudstub.core.restapi.RequestRecord
Returns the value of the matched record component.
matchKey() - Method in record class io.cloudstub.core.restapi.StubInfo
Returns the value of the matchKey record component.
MavenBaseUrlResolver - Class in io.cloudstub.local.config.resolver
Resolves the Maven repository base URL that auto-download fetches module jars from.
MaxHistoryResolver - Class in io.cloudstub.local.config.resolver
Resolves the cap on retained request-history entries for the long-lived local process.
maxRequestHistory() - Method in class io.cloudstub.core.internal.CloudStubSettings
 
Md5HandlebarsHelper - Class in io.cloudstub.core.internal
WireMock extension that registers a {{md5 value}} Handlebars helper.
Md5HandlebarsHelper() - Constructor for class io.cloudstub.core.internal.Md5HandlebarsHelper
 
md5Hex(byte[]) - Static method in class io.cloudstub.core.spi.Digest
Lowercase hex MD5 digest of value.
md5Hex(String) - Static method in class io.cloudstub.core.spi.Digest
Lowercase hex MD5 digest of value's UTF-8 bytes.
method() - Method in record class io.cloudstub.core.restapi.RequestRecord
Returns the value of the method record component.
method() - Method in record class io.cloudstub.core.spi.restapi.ApiRequest
Returns the value of the method record component.
method() - Method in interface io.cloudstub.core.spi.StubRequest
The HTTP method of the request.
ModelResolver - Interface in io.cloudstub.codegen
 
modifyHttpRequest(Context.ModifyHttpRequest, ExecutionAttributes) - Method in class io.cloudstub.s3.S3VirtualHostStyleInterceptor
 
ModuleDownloader - Class in io.cloudstub.core.download
Provisions a CloudStub service module jar from Maven Central into a plugin directory: fetch, checksum-verify, then store.
ModuleDownloader() - Constructor for class io.cloudstub.core.download.ModuleDownloader
Creates a downloader that resolves from Maven Central.
ModuleDownloader(String) - Constructor for class io.cloudstub.core.download.ModuleDownloader
Creates a downloader resolving from baseUrl (a Maven repository layout root).
ModuleDownloadException - Exception in io.cloudstub.core.download
Thrown when a service module jar cannot be provisioned from Maven Central.
ModuleDownloadException(String) - Constructor for exception io.cloudstub.core.download.ModuleDownloadException
 
ModuleGenerator - Class in io.cloudstub.codegen
Generates a complete, compilable cloudstub-* module skeleton from a Smithy service model.
ModuleGenerator() - Constructor for class io.cloudstub.codegen.ModuleGenerator
 
ModuleGenerator(boolean) - Constructor for class io.cloudstub.codegen.ModuleGenerator
 
ModuleInitializer - Class in io.cloudstub.core.internal
Discovers and registers all CloudStubService modules against a running server.
moduleName() - Method in record class io.cloudstub.codegen.GenerationResult
Returns the value of the moduleName record component.
modules() - Method in class io.cloudstub.core.CloudStub
Returns a live snapshot of all loaded modules and their registered stubs.
ModulesDirResolver - Class in io.cloudstub.local.config.resolver
Resolves the directory from which module jars are loaded at startup.
ModuleStatus - Record Class in io.cloudstub.core.restapi
Status snapshot for one loaded service module and its registered stubs.
ModuleStatus(String, List<StubInfo>) - Constructor for record class io.cloudstub.core.restapi.ModuleStatus
Creates an instance of a ModuleStatus record class.
moduleStatuses() - Method in class io.cloudstub.core.internal.WireMockStubRegistrar
Returns a live snapshot of all modules and their registered stubs.
ModuleVersionResolver - Class in io.cloudstub.local.config.resolver
Resolves the version of the module jars to auto-download.

N

name() - Method in record class io.cloudstub.core.spi.restapi.ApiParam
Returns the value of the name record component.
NAME - Static variable in class io.cloudstub.core.internal.CloudStubResponseTransformer
 

O

object(Object...) - Static method in class io.cloudstub.core.spi.Json
An ordered JSON object built from alternating key/value arguments, e.g.
of(int, String, String) - Static method in class io.cloudstub.core.spi.StubResponse
A response with an explicit status, content type, and body.
of(String) - Static method in interface io.cloudstub.codegen.ModelResolver
 
of(String) - Static method in class io.cloudstub.core.spi.XmlElement
A new element with the given tag name.
operation() - Method in record class io.cloudstub.core.restapi.RequestRecord
Returns the value of the operation record component.

P

PATCH - Enum constant in enum class io.cloudstub.core.spi.HttpMethod
 
path() - Method in record class io.cloudstub.core.spi.restapi.ApiRequest
Returns the value of the path record component.
path() - Method in interface io.cloudstub.core.spi.StubRequest
The request path (without query string), e.g.
persistenceBackend() - Method in class io.cloudstub.core.internal.CloudStubSettings
 
port() - Method in class io.cloudstub.core.CloudStub
Returns the port the server is listening on.
port() - Method in class io.cloudstub.core.internal.CloudStubSettings
 
port() - Method in class io.cloudstub.junit.CloudStubExtension
Returns the port the embedded server is listening on.
port() - Method in class io.cloudstub.local.LocalServer
The port the API is listening on.
PortResolver - Class in io.cloudstub.local.config.resolver
Resolves the port the mock server binds.
POST - Enum constant in enum class io.cloudstub.core.spi.HttpMethod
 
Printer - Class in io.cloudstub.local.cli.util
Terminal output helpers.
protocol() - Method in record class io.cloudstub.core.restapi.StubInfo
Returns the value of the protocol record component.
provideTemplateHelpers() - Method in class io.cloudstub.core.internal.Md5HandlebarsHelper
 
put(String, Object) - Method in class io.cloudstub.core.internal.store.AppendLogStateStore
 
put(String, Object) - Method in class io.cloudstub.core.internal.store.InMemoryStateStore
 
put(String, Object) - Method in class io.cloudstub.core.internal.store.JsonFileStateStore
 
put(String, Object) - Method in interface io.cloudstub.core.spi.StateStore
Store a value under key.
PUT - Enum constant in enum class io.cloudstub.core.spi.HttpMethod
 

Q

queryParam(String) - Method in interface io.cloudstub.core.spi.StubRequest
The value of the named query-string parameter, or null if absent.
queryParams() - Method in record class io.cloudstub.core.spi.restapi.ApiRequest
Returns the value of the queryParams record component.
queryParamValues(String) - Method in interface io.cloudstub.core.spi.StubRequest
All values of the named query-string parameter, in request order, for a parameter that may repeat (e.g.

R

rate() - Element in annotation interface io.cloudstub.junit.SimulateNetworkBrownout
Fraction of requests to fail, in [0.0, 1.0].
register(CloudStubContext) - Method in interface io.cloudstub.core.spi.CloudStubService
Registers all stubs for this service and receives the shared state store.
register(CloudStubContext) - Method in class io.cloudstub.dynamodb.CloudStubDynamoDBService
 
register(CloudStubContext) - Method in class io.cloudstub.lambda.CloudStubLambdaService
 
register(CloudStubContext) - Method in class io.cloudstub.s3.CloudStubS3Service
 
register(CloudStubContext) - Method in class io.cloudstub.secretsmanager.CloudStubSecretsManagerService
 
register(CloudStubContext) - Method in class io.cloudstub.sns.CloudStubSNSService
 
register(CloudStubContext) - Method in class io.cloudstub.sqs.CloudStubSqsService
 
register(CloudStubContext) - Method in class io.cloudstub.ssm.CloudStubSSMService
 
register(HttpMethod, String, String, ApiHandler) - Method in interface io.cloudstub.core.spi.restapi.ApiRouteRegistrar
Convenience overload for a route with no CLI command name and no parameters.
register(HttpMethod, String, String, String, List<ApiParam>, ApiHandler) - Method in interface io.cloudstub.core.spi.restapi.ApiRouteRegistrar
Register a route under /api/<serviceId>/<path>, advertising a CLI command name and its parameters so a generic client can drive it.
registerJsonTargetStub(String, StubHandler) - Method in class io.cloudstub.core.internal.WireMockStubRegistrar
 
registerJsonTargetStub(String, StubHandler) - Method in interface io.cloudstub.core.spi.StubRegistrar
Registers a stateful stub for JSON / X-Amz-Target services (e.g.
registerJsonTargetStub(String, String) - Method in class io.cloudstub.core.internal.WireMockStubRegistrar
 
registerJsonTargetStub(String, String) - Method in interface io.cloudstub.core.spi.StubRegistrar
Registers a stub for JSON / X-Amz-Target services (e.g.
registerRestStub(HttpMethod, String, StubHandler) - Method in class io.cloudstub.core.internal.WireMockStubRegistrar
 
registerRestStub(HttpMethod, String, StubHandler) - Method in interface io.cloudstub.core.spi.StubRegistrar
Registers a stateful stub for REST path-based services (e.g.
registerRestStub(HttpMethod, String, String) - Method in class io.cloudstub.core.internal.WireMockStubRegistrar
 
registerRestStub(HttpMethod, String, String) - Method in interface io.cloudstub.core.spi.StubRegistrar
Registers a stub for REST path-based services (e.g.
registerRoutes(CloudStubApiContext) - Method in interface io.cloudstub.core.spi.CloudStubApiService
Called at API server startup.
registerRoutes(CloudStubApiContext) - Method in class io.cloudstub.dynamodb.CloudStubDynamoDBApiService
 
registerRoutes(CloudStubApiContext) - Method in class io.cloudstub.lambda.CloudStubLambdaApiService
 
registerRoutes(CloudStubApiContext) - Method in class io.cloudstub.s3.CloudStubS3ApiService
 
registerRoutes(CloudStubApiContext) - Method in class io.cloudstub.secretsmanager.CloudStubSecretsManagerApiService
 
registerRoutes(CloudStubApiContext) - Method in class io.cloudstub.sns.CloudStubSNSApiService
 
registerRoutes(CloudStubApiContext) - Method in class io.cloudstub.sqs.CloudStubSqsApiService
 
registerRoutes(CloudStubApiContext) - Method in class io.cloudstub.ssm.CloudStubSSMApiService
 
registerXmlFormStub(String, StubHandler) - Method in class io.cloudstub.core.internal.WireMockStubRegistrar
 
registerXmlFormStub(String, StubHandler) - Method in interface io.cloudstub.core.spi.StubRegistrar
Registers a stateful stub for XML/Form URL services (e.g.
registerXmlFormStub(String, String) - Method in class io.cloudstub.core.internal.WireMockStubRegistrar
 
registerXmlFormStub(String, String) - Method in interface io.cloudstub.core.spi.StubRegistrar
Registers a stub for XML/Form URL services (e.g.
registrar() - Method in class io.cloudstub.core.internal.CloudStubContextImpl
 
registrar() - Method in interface io.cloudstub.core.spi.CloudStubContext
The registrar through which the module declares its HTTP stubs.
registrar() - Method in interface io.cloudstub.core.spi.restapi.CloudStubApiContext
The registrar through which the module declares its API routes.
relativePath() - Method in record class io.cloudstub.codegen.GeneratedFile
Returns the value of the relativePath record component.
render() - Method in class io.cloudstub.core.spi.XmlElement
Serialises this element and its subtree to an XML string, escaping all text and attributes.
requestHistory() - Method in class io.cloudstub.core.CloudStub
Returns all requests served since startup, newest first.
requestHistory(String) - Method in class io.cloudstub.core.CloudStub
Returns all requests served to the given service since startup, newest first.
RequestHistory - Class in io.cloudstub.core.internal
Read/clear view over the WireMock request journal, translated into CloudStub's RequestRecord domain model.
RequestHistory(WireMockServer) - Constructor for class io.cloudstub.core.internal.RequestHistory
 
RequestRecord - Record Class in io.cloudstub.core.restapi
Immutable snapshot of a single request served by the mock engine.
RequestRecord(String, String, String, String, String, int, boolean) - Constructor for record class io.cloudstub.core.restapi.RequestRecord
Creates an instance of a RequestRecord record class.
required() - Method in record class io.cloudstub.core.spi.restapi.ApiParam
Returns the value of the required record component.
ResetCommand - Class in io.cloudstub.local.cli.command
 
ResetCommand() - Constructor for class io.cloudstub.local.cli.command.ResetCommand
 
resolve() - Method in interface io.cloudstub.codegen.ModelResolver
 
resolve(String[], LocalConfig) - Static method in class io.cloudstub.local.config.resolver.ApiPortResolver
 
resolve(String[], LocalConfig) - Static method in class io.cloudstub.local.config.resolver.MavenBaseUrlResolver
 
resolve(String[], LocalConfig) - Static method in class io.cloudstub.local.config.resolver.MaxHistoryResolver
 
resolve(String[], LocalConfig) - Static method in class io.cloudstub.local.config.resolver.ModulesDirResolver
 
resolve(String[], LocalConfig) - Static method in class io.cloudstub.local.config.resolver.ModuleVersionResolver
 
resolve(String[], LocalConfig) - Static method in class io.cloudstub.local.config.resolver.PortResolver
 
resolve(String[], LocalConfig) - Static method in class io.cloudstub.local.config.resolver.ServiceSelector
 
resolve(String[], LocalConfig) - Static method in class io.cloudstub.local.config.resolver.StoreDirectoryResolver
 
result(ApiClient.Result) - Static method in class io.cloudstub.local.cli.util.Printer
Render an API call result: pretty JSON on success, the server's error message otherwise.
Result(int, JsonNode) - Constructor for record class io.cloudstub.local.cli.http.ApiClient.Result
Creates an instance of a Result record class.
run(String[]) - Static method in class io.cloudstub.local.cli.CloudStubCli
Run the CLI for the given arguments, returning the process exit code.

S

S3VirtualHostStyleInterceptor - Class in io.cloudstub.s3
AWS SDK v2 ExecutionInterceptor that prepends the bucket to the request path when a default-configured (virtual-hosted-style) S3Client talks to a CloudStub endpoint, so CloudStub's path-style (/{bucket}/{key}) stubs match without pathStyleAccessEnabled.
S3VirtualHostStyleInterceptor() - Constructor for class io.cloudstub.s3.S3VirtualHostStyleInterceptor
 
service() - Element in annotation interface io.cloudstub.junit.SimulateNetworkBrownout
Service ID to affect, e.g.
service() - Element in annotation interface io.cloudstub.junit.SimulateThrottle
Service ID to throttle, e.g.
service() - Element in annotation interface io.cloudstub.junit.SimulateTimeout
Service ID to delay, e.g.
serviceId() - Method in record class io.cloudstub.codegen.GenerationResult
Returns the value of the serviceId record component.
serviceId() - Method in record class io.cloudstub.core.restapi.RequestRecord
Returns the value of the serviceId record component.
serviceId() - Method in interface io.cloudstub.core.spi.CloudStubApiService
Must match the CloudStubService.serviceId() of the same module.
serviceId() - Method in interface io.cloudstub.core.spi.CloudStubService
Unique, lowercase identifier for the AWS service this module handles.
serviceId() - Method in class io.cloudstub.dynamodb.CloudStubDynamoDBApiService
 
serviceId() - Method in class io.cloudstub.dynamodb.CloudStubDynamoDBService
 
serviceId() - Method in class io.cloudstub.lambda.CloudStubLambdaApiService
 
serviceId() - Method in class io.cloudstub.lambda.CloudStubLambdaService
 
serviceId() - Method in class io.cloudstub.s3.CloudStubS3ApiService
 
serviceId() - Method in class io.cloudstub.s3.CloudStubS3Service
 
serviceId() - Method in class io.cloudstub.secretsmanager.CloudStubSecretsManagerApiService
 
serviceId() - Method in class io.cloudstub.secretsmanager.CloudStubSecretsManagerService
 
serviceId() - Method in class io.cloudstub.sns.CloudStubSNSApiService
 
serviceId() - Method in class io.cloudstub.sns.CloudStubSNSService
 
serviceId() - Method in class io.cloudstub.sqs.CloudStubSqsApiService
 
serviceId() - Method in class io.cloudstub.sqs.CloudStubSqsService
 
serviceId() - Method in class io.cloudstub.ssm.CloudStubSSMApiService
 
serviceId() - Method in class io.cloudstub.ssm.CloudStubSSMService
 
ServiceRegistry - Class in io.cloudstub.core.internal
Records which stubs each service module registered, so CloudStubResponseTransformer can look up a matched stub's protocol when decorating its response with a fault, without coupling to the module's implementation.
ServiceRegistry() - Constructor for class io.cloudstub.core.internal.ServiceRegistry
 
ServiceSelector - Class in io.cloudstub.local.config.resolver
Resolves which services the local server should enable.
set(int) - Static method in class io.cloudstub.core.internal.AwsEndpointOverride
Points the AWS SDK at http://localhost:<port>.
setCurrentService(String) - Method in class io.cloudstub.core.internal.WireMockStubRegistrar
Called by CloudStub before each service module registers its stubs.
setEnabledServiceIds(Collection<String>) - Method in class io.cloudstub.core.internal.CloudStubSettings
 
setMaxRequestHistory(int) - Method in class io.cloudstub.core.internal.CloudStubSettings
 
setPersistenceBackend(StatePersistence) - Method in class io.cloudstub.core.internal.CloudStubSettings
 
setPort(int) - Method in class io.cloudstub.core.internal.CloudStubSettings
 
setStoreDirectory(Path) - Method in class io.cloudstub.core.internal.CloudStubSettings
 
simulateNetworkBrownout(String, double) - Method in class io.cloudstub.core.CloudStub
Causes approximately rate fraction of requests to serviceId to fail with a connection reset; the remainder are served normally.
SimulateNetworkBrownout - Annotation Interface in io.cloudstub.junit
Causes approximately rate fraction of requests to the named service to fail with a connection reset; the remainder are served normally.
SimulateNetworkBrownout.List - Annotation Interface in io.cloudstub.junit
 
simulateThrottle(String) - Method in class io.cloudstub.core.CloudStub
Causes all stubs for serviceId to return an AWS-style throttling error (HTTP 400, ThrottlingException) for the duration of the current test.
SimulateThrottle - Annotation Interface in io.cloudstub.junit
Causes all stubs for the named service to return a ThrottlingException (HTTP 400) for the duration of the annotated test method.
SimulateThrottle.List - Annotation Interface in io.cloudstub.junit
 
simulateTimeout(String) - Method in class io.cloudstub.core.CloudStub
Causes all stubs for serviceId to respond after a long fixed delay, triggering the AWS SDK's call timeout exception.
SimulateTimeout - Annotation Interface in io.cloudstub.junit
Causes all stubs for the named service to delay their response beyond the AWS SDK's call timeout, triggering a timeout exception at the SDK level.
SimulateTimeout.List - Annotation Interface in io.cloudstub.junit
 
start() - Method in class io.cloudstub.core.CloudStub
Starts the embedded server, registers all discovered service stubs, and injects aws.endpoint-url so the AWS SDK v2 routes traffic locally.
start() - Method in class io.cloudstub.local.LocalServer
 
startedAt() - Method in class io.cloudstub.core.CloudStub
Returns the instant the server was started.
StatePersistence - Enum Class in io.cloudstub.core
Selects the persistent StateStore backend used when a store directory is configured via CloudStub.withStoreDirectory(java.nio.file.Path).
stateStore() - Method in class io.cloudstub.core.CloudStub
Returns the shared state store.
stateStore() - Method in class io.cloudstub.core.internal.CloudStubContextImpl
 
stateStore() - Method in interface io.cloudstub.core.spi.CloudStubContext
The shared state store.
stateStore() - Method in interface io.cloudstub.core.spi.restapi.CloudStubApiContext
The shared state store; the same instance the module's stubs use.
StateStore - Interface in io.cloudstub.core.spi
Shared key-value backend owned and lifecycle-managed by the core engine.
StateStoreFactory - Class in io.cloudstub.core.internal.store
Chooses the StateStore implementation for a CloudStub instance: a persistent store of the requested StatePersistence backend when a directory is configured, otherwise a throwaway in-memory store.
status() - Method in class io.cloudstub.core.spi.StubResponse
 
statusCode() - Method in record class io.cloudstub.core.restapi.RequestRecord
Returns the value of the statusCode record component.
statusCode() - Method in record class io.cloudstub.core.spi.restapi.ApiResponse
Returns the value of the statusCode record component.
statusCode() - Method in record class io.cloudstub.local.cli.http.ApiClient.Result
Returns the value of the statusCode record component.
StatusCommand - Class in io.cloudstub.local.cli.command
 
StatusCommand() - Constructor for class io.cloudstub.local.cli.command.StatusCommand
 
stop() - Method in class io.cloudstub.core.CloudStub
Stops the embedded server and removes the aws.endpoint-url system property.
stop() - Method in class io.cloudstub.local.LocalServer
 
storeDirectory() - Method in class io.cloudstub.core.internal.CloudStubSettings
 
StoreDirectoryResolver - Class in io.cloudstub.local.config.resolver
Resolves the directory used for persistent state in local mode.
stripServe(String[]) - Static method in class io.cloudstub.local.cli.CliDispatch
Returns the arguments with a leading serve token removed, leaving server flags intact.
StubHandler - Interface in io.cloudstub.core.spi
A request-time handler for a stateful stub.
StubInfo - Record Class in io.cloudstub.core.restapi
Describes a single registered stub: its protocol and match key.
StubInfo(String, String) - Constructor for record class io.cloudstub.core.restapi.StubInfo
Creates an instance of a StubInfo record class.
StubRegistrar - Interface in io.cloudstub.core.spi
Facade through which service modules register HTTP stubs without any direct dependency on the underlying networking driver (WireMock).
StubRequest - Interface in io.cloudstub.core.spi
Read-only view of an incoming HTTP request, handed to a StubHandler at request time.
StubResponse - Class in io.cloudstub.core.spi
Immutable HTTP response returned by a StubHandler.
stubs() - Method in record class io.cloudstub.core.restapi.ModuleStatus
Returns the value of the stubs record component.
StubTemplates - Class in io.cloudstub.core.spi
Loads Handlebars response templates bundled as classpath resources in a module's JAR.

T

text(String) - Method in class io.cloudstub.core.spi.XmlElement
Sets the element's text content.
timestamp() - Method in record class io.cloudstub.core.restapi.RequestRecord
Returns the value of the timestamp record component.
toString() - Method in record class io.cloudstub.codegen.GeneratedFile
Returns a string representation of this record class.
toString() - Method in record class io.cloudstub.codegen.GenerationResult
Returns a string representation of this record class.
toString() - Method in record class io.cloudstub.core.restapi.ModuleStatus
Returns a string representation of this record class.
toString() - Method in record class io.cloudstub.core.restapi.RequestRecord
Returns a string representation of this record class.
toString() - Method in record class io.cloudstub.core.restapi.StubInfo
Returns a string representation of this record class.
toString() - Method in record class io.cloudstub.core.spi.restapi.ApiParam
Returns a string representation of this record class.
toString() - Method in record class io.cloudstub.core.spi.restapi.ApiRequest
Returns a string representation of this record class.
toString() - Method in record class io.cloudstub.core.spi.restapi.ApiResponse
Returns a string representation of this record class.
toString() - Method in record class io.cloudstub.local.cli.Conn
Returns a string representation of this record class.
toString() - Method in record class io.cloudstub.local.cli.http.ApiClient.Result
Returns a string representation of this record class.
transform(Response, ServeEvent) - Method in class io.cloudstub.core.internal.CloudStubResponseTransformer
 

U

unavailable(String) - Static method in class io.cloudstub.local.cli.util.Printer
 
url() - Method in record class io.cloudstub.core.restapi.RequestRecord
Returns the value of the url record component.

V

value() - Element in annotation interface io.cloudstub.junit.SimulateNetworkBrownout.List
 
value() - Element in annotation interface io.cloudstub.junit.SimulateThrottle.List
 
value() - Element in annotation interface io.cloudstub.junit.SimulateTimeout.List
 
valueOf(String) - Static method in enum class io.cloudstub.core.spi.HttpMethod
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class io.cloudstub.core.StatePersistence
Returns the enum constant of this class with the specified name.
values() - Static method in enum class io.cloudstub.core.spi.HttpMethod
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class io.cloudstub.core.StatePersistence
Returns an array containing the constants of this enum class, in the order they are declared.

W

WireMockServerFactory - Class in io.cloudstub.core.internal
Builds and starts the embedded WireMock server from CloudStubSettings.
WireMockStubRegistrar - Class in io.cloudstub.core.internal
Internal StubRegistrar implementation that delegates to a live WireMock server.
WireMockStubRegistrar(WireMockServer, CloudStubResponseTransformer, ServiceRegistry) - Constructor for class io.cloudstub.core.internal.WireMockStubRegistrar
 
withEnabledServices(Collection<String>) - Method in class io.cloudstub.core.CloudStub
Restricts ServiceLoader discovery to the given service IDs.
withHeader(String, String) - Method in class io.cloudstub.core.spi.StubResponse
Returns a copy of this response with an additional header.
withMavenBaseUrl(String) - Method in class io.cloudstub.junit.CloudStubExtension
Sets the Maven repository base URL module jars are downloaded from.
withMaxRequestHistory(int) - Method in class io.cloudstub.core.CloudStub
Caps the number of request-history entries retained in memory.
withModule(String) - Method in class io.cloudstub.junit.CloudStubExtension
Records a published service module to auto-download by id.
withModules(String...) - Method in class io.cloudstub.junit.CloudStubExtension
Records several published service modules to auto-download by id; the plural of CloudStubExtension.withModule(String).
withModules(List<String>) - Method in class io.cloudstub.junit.CloudStubExtension
Records several published service modules to auto-download by id; the plural of CloudStubExtension.withModule(String).
withModulesCacheDir(Path) - Method in class io.cloudstub.junit.CloudStubExtension
Sets the directory used to cache downloaded module jars.
withModuleVersion(String) - Method in class io.cloudstub.junit.CloudStubExtension
withPersistenceBackend(StatePersistence) - Method in class io.cloudstub.core.CloudStub
Selects the persistent state backend used when a store directory is configured via CloudStub.withStoreDirectory(java.nio.file.Path).
withPort(int) - Method in class io.cloudstub.core.CloudStub
Binds the server to a specific port instead of a random available one.
withService(CloudStubService) - Method in class io.cloudstub.core.CloudStub
Registers a service module explicitly, in addition to any modules discovered via ServiceLoader.
withService(CloudStubService) - Method in class io.cloudstub.junit.CloudStubExtension
Registers a service implementation to be installed when CloudStub starts.
withServices(CloudStubService...) - Method in class io.cloudstub.junit.CloudStubExtension
Registers several service implementations at once; the plural of CloudStubExtension.withService(CloudStubService).
withStoreDirectory(Path) - Method in class io.cloudstub.core.CloudStub
Configures a directory for persistent state storage.

X

xml(XmlElement) - Static method in class io.cloudstub.core.spi.StubResponse
A 200 OK XML response whose body is rendered from an XmlElement tree, which performs the XML encoding and escaping.
xml(String) - Static method in class io.cloudstub.core.spi.StubResponse
A 200 OK XML response with the AWS query/XML content type.
XmlElement - Class in io.cloudstub.core.spi
A builder for an XML element tree for AWS Query (XML) response bodies.
A B C D E F G H I J K L M N O P Q R S T U V W X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form