JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws

Class AmazonWebServiceClient

    • Field Detail

    • Constructor Detail

      • AmazonWebServiceClient

        public AmazonWebServiceClient(ClientConfiguration clientConfiguration)
        Constructs a new AmazonWebServiceClient object using the specified configuration.
        Parameters:
        clientConfiguration - The client configuration for this client.
      • AmazonWebServiceClient

        public AmazonWebServiceClient(ClientConfiguration clientConfiguration,
         RequestMetricCollector requestMetricCollector)
        Constructs a new AmazonWebServiceClient object using the specified configuration and request metric collector.
        Parameters:
        clientConfiguration - The client configuration for this client.
        requestMetricCollector - optional request metric collector to be used at the http client level; can be null.
    • Method Detail

      • setEndpoint

        @Deprecated
        public void setEndpoint(String endpoint)
         throws IllegalArgumentException 
        Deprecated. use AwsClientBuilder.setEndpointConfiguration(AwsClientBuilder.EndpointConfiguration) for example: builder.setEndpointConfiguration(new EndpointConfiguration(endpoint, signingRegion));
        Overrides the default endpoint for this client. Callers can use this method to control which AWS region they want to work with.

        This method is not threadsafe. Endpoints should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit.

        Callers can pass in just the endpoint (ex: "ec2.amazonaws.com") or a full URL, including the protocol (ex: "https://ec2.amazonaws.com"). If the protocol is not specified here, the default protocol from this client's ClientConfiguration will be used, which by default is HTTPS.

        For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/java-dg-region-selection.html#region-selection-choose-endpoint

        Parameters:
        endpoint - The endpoint (ex: "ec2.amazonaws.com") or a full URL, including the protocol (ex: "https://ec2.amazonaws.com") of the region specific AWS endpoint this client will communicate with.
        Throws:
        IllegalArgumentException - If any problems are detected with the specified endpoint.
      • setEndpoint

        @Deprecated
        public void setEndpoint(String endpoint,
         String serviceName,
         String regionId)
        Deprecated. Please use the client builders instead. The AwsClientBuilder.withEndpointConfiguration(AwsClientBuilder.EndpointConfiguration) method on the builder allows setting both endpoint and signing region. See Creating Service Clients for more information.
        Allows specifying the endpoint along with signing information (service name and signing region). This method will overwrite any information set previously by any set/with/configure Region/Endpoint methods.

        Overrides the default endpoint for this client ("http://dynamodb.us-east-1.amazonaws.com/") and explicitly provides an AWS region ID and AWS service name to use when the client calculates a signature for requests. In almost all cases, this region ID and service name are automatically determined from the endpoint, and callers should use the simpler one-argument form of setEndpoint instead of this method.

        Callers can pass in just the endpoint (ex: "dynamodb.us-east-1.amazonaws.com/") or a full URL, including the protocol (ex: "http://dynamodb.us-east-1.amazonaws.com/"). If the protocol is not specified here, the default protocol from this client's ClientConfiguration will be used, which by default is HTTPS.

        For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID= 3912

        Parameters:
        endpoint - The endpoint (ex: "dynamodb.us-east-1.amazonaws.com/") or a full URL, including the protocol (ex: "http://dynamodb.us-east-1.amazonaws.com/") of the region specific AWS endpoint this client will communicate with.
        serviceName - This parameter is ignored.
        regionId - The ID of the region in which this service resides AND the overriding region for signing purposes.
        Throws:
        IllegalArgumentException - If any problems are detected with the specified endpoint.
      • getSignerByURI

        public Signer getSignerByURI(URI uri)
        Returns the signer based on the given URI and the current AWS client configuration. Currently only the SQS client can have different region on a per request basis. For other AWS clients, the region remains the same on a per AWS client level.

        Note, however, the signer returned for S3 is incomplete at this stage as the information on the S3 bucket and key is not yet known.

      • shutdown

        public void shutdown()
        Shuts down this client object, releasing any resources that might be held open. If this method is not invoked, resources may be leaked. Once a client has been shutdown, it should not be used to make any more requests.
      • addRequestHandler

        @Deprecated
        public void addRequestHandler(RequestHandler requestHandler)
        Deprecated. by addRequestHandler(RequestHandler2). Appends a request handler to the list of registered handlers that are run as part of a request's lifecycle.
        Parameters:
        requestHandler - The new handler to add to the current list of request handlers.
      • setTimeOffset

        public void setTimeOffset(int timeOffset)
        Sets the optional value for time offset for this client. This value will be applied to all requests processed through this client. Value is in seconds, positive values imply the current clock is "fast", negative values imply clock is slow.
        Parameters:
        timeOffset - The optional value for time offset (in seconds) for this client.
      • withTimeOffset

        public AmazonWebServiceClient withTimeOffset(int timeOffset)
        Sets the optional value for time offset for this client. This value will be applied to all requests processed through this client. Value is in seconds, positive values imply the current clock is "fast", negative values imply clock is slow.
        Parameters:
        timeOffset - The optional value for time offset (in seconds) for this client.
        Returns:
        the updated web service client
      • getTimeOffset

        public int getTimeOffset()
        Returns the optional value for time offset for this client. This value will be applied to all requests processed through this client. Value is in seconds, positive values imply the current clock is "fast", negative values imply clock is slow.
        Returns:
        The optional value for time offset (in seconds) for this client.
      • getServiceName

        public String getServiceName()
        Returns the service abbreviation for this service, used for identifying service endpoints by region, identifying the necessary signer, etc. Used to be call "getServiceAbbreviation".
      • getEndpointPrefix

        public String getEndpointPrefix()
        Returns:
        the service name that should be used when computing the region endpoints. This method returns the value of the regionMetadataServiceName configuration in the internal config file if such configuration is specified for the current client, otherwise it returns the same service name that is used for request signing.
      • setServiceNameIntern

        public final void setServiceNameIntern(String serviceName)
        An internal method used to explicitly override the service name computed by the default implementation. This method is not expected to be normally called except for AWS internal development purposes.
      • setSignerRegionOverride

        public final void setSignerRegionOverride(String signerRegionOverride)
        An internal method used to explicitly override the internal signer region computed by the default implementation. This method is not expected to be normally called except for AWS internal development purposes.
      • makeImmutable

        @Deprecated
        public final void makeImmutable()
        Deprecated.
        Internal only API to lock a client's mutable methods. Only intended for use by the fluent builders.
      • getSignerOverride

        public String getSignerOverride()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /