Skip navigation links

Azure SDK for Java Reference Documentation

Azure Core client library for Java

See: Description

Azure Core 
Package Description
com.azure.core.annotation
Package containing annotations for client side methods that maps to REST APIs.
com.azure.core.credential
Package containing basic credential classes for authentication purposes.
com.azure.core.cryptography
Package containing core cryptography interfaces.
com.azure.core.exception
Package containing core exception classes.
com.azure.core.http
Package containing HTTP abstractions between the AnnotationParser, RestProxy, and HTTP client.
com.azure.core.http.policy
Package containing HttpPipelinePolicy interface and its implementations.
com.azure.core.http.rest
Package containing REST-related APIs.
com.azure.core.util
Package containing core utility classes.
com.azure.core.util.logging
Package containing logging APIs.
com.azure.core.util.polling
Package containing API for long running operations.
com.azure.core.util.tracing
Package containing API for tracing.

Azure Core client library for Java

Build Documentation

Azure Core provides shared primitives, abstractions, and helpers for modern Java Azure SDK client libraries. These libraries follow the Azure SDK Design Guidelines for Java and can be easily identified by package names starting with com.azure and module names starting with azure-, e.g. com.azure.storage.blobs would be found within the /sdk/storage/azure-storage-blob directory. A more complete list of client libraries using Azure Core can be found here.

Azure Core allows client libraries to expose common functionality in a consistent fashion, so that once you learn how to use these APIs in one client library, you will know how to use them in other client libraries.

Getting started

Typically, you will not need to install or specifically depend on Azure Core, instead it will be transitively downloaded by your build tool when you depend on of the client libraries using it. In case you want to depend on it explicitly (to implement your own client library, for example), include the following Maven dependency:

<dependency>
  <groupId>com.azure</groupId>
  <artifactId>azure-core</artifactId>
  <version>1.0.0</version>
</dependency>

For details on including this dependency in other build tools (Gradle, SBT, etc), refer here.

Key concepts

The key concepts of Azure Core (and therefore all Azure client libraries using Azure Core) include:

These will be introduced by way of the examples presented below.

Examples

Accessing HTTP Response Details Using Response<T>

Service clients have methods that can be used to call Azure services. We refer to these client methods service methods. Service methods return a shared Azure Core type Response<T>. This type provides access to both the deserialized result of the service call, and to the details of the HTTP response returned from the server.

HTTP pipelines with HttpPipeline

Coming soon ...

Exception Hierarchy with AzureException

Coming soon ...

Pagination with PagedFlux<T>

Coming soon ...

Long Running Operations with Poller<T>

Coming soon ...

Next steps

Get started with some of the Azure libraries that are built using Azure Core.

Troubleshooting

If you encounter any bugs, please file issues via GitHub Issues or checkout StackOverflow for Azure Java SDK.

Contributing

If you would like to become an active contributor to this project please follow the instructions provided in Microsoft Azure Projects Contribution Guidelines.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Impressions

Skip navigation links
Visit the Azure for Java Developerssite for more Java documentation, including quick starts, tutorials, and code samples.

Copyright © 2019 Microsoft Corporation. All rights reserved.