-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Amqp Message Update - API Change #17464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
hemanttanwar
merged 25 commits into
Azure:master
from
hemanttanwar:sb-t2-amqp-message-redesign
Nov 19, 2020
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
b234383
Amqp Message Update - API Change
c4c6b25
Adding test
01aeb75
Merge master into branch
66b1fb1
Removing Iterable constructor
888217b
Adding java doc
ae8f8f2
Adding java doc
2918312
fix javadoc
fbf1efe
Adding java doc
e4525a5
Renames amqp body type
ab9a71c
type rename-> service bus change
efdc611
Rev API changes for body type rename
bb72b21
Added API based on review comments
9eb5273
Review commnets
5513888
Review Comments
4839f2f
Review coments
0886d24
Review Comments
c64ca01
Review Comments
0292180
Removed copy constructors
235a6a4
unit test change
3140431
Incorporate review comments
2d71f31
Incorporate review comments
79c5438
Removed copy constructors
627f57f
Review comments , code snippets java doc etc
6c9667a
fix copy constructor API change
c72a301
Resolved more review comments
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/AmqpAddress.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| package com.azure.core.amqp.models; | ||
|
|
||
| import java.util.Objects; | ||
|
|
||
| /** | ||
| * This represents amqp address information. This will be used in populating information like 'To', 'ReplyTo' etc. | ||
| * | ||
| * <p><strong>Create and retrieve address</strong></p> | ||
| * {@codesnippet com.azure.core.amqp.models.AmqpAddress.createAndGet} | ||
| * | ||
| * @see <a href="http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-address-string"> | ||
| * Address type Format.</a> | ||
| */ | ||
| public final class AmqpAddress { | ||
|
|
||
| private final String address; | ||
|
|
||
| /** | ||
| * Creates the {@link AmqpAddress} with given {@code address}. | ||
| * | ||
| * @param address The address to set for this instance. | ||
| * @throws NullPointerException if {@code address} is null. | ||
| */ | ||
| public AmqpAddress(String address) { | ||
| this.address = Objects.requireNonNull(address, "'address' cannot be null."); | ||
| } | ||
|
|
||
| /** | ||
| * {@inheritDoc} | ||
| */ | ||
| @Override | ||
| public int hashCode() { | ||
| return address.hashCode(); | ||
| } | ||
|
|
||
| /** | ||
| * {@inheritDoc} | ||
| */ | ||
| @Override | ||
| public boolean equals(Object other) { | ||
| if (other == null) { | ||
| return false; | ||
| } | ||
|
|
||
| if (this.getClass() != other.getClass()) { | ||
| return false; | ||
| } | ||
|
|
||
| if (this == other) { | ||
| return true; | ||
| } | ||
|
|
||
| return Objects.equals(address, other.toString()); | ||
| } | ||
|
|
||
| /** | ||
| * {@inheritDoc} | ||
| */ | ||
| @Override | ||
| public String toString() { | ||
| return this.address; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/AmqpBodyType.java
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/AmqpDataBody.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.