Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add startTransaction for creating transactions * Add transaction header constants * Add method to retrieve transaction uri * Add method to add Atomic-Id header for transactions * Use transaction endpoint constant * Override addTransaction for all builders * Initial TransactionBuilder idea * Checkstyle updates * Create RequestBuilders per transaction endpoint * Move start and TRANSACTION_ENDPOINT to TransactionBuilder * Add uri validation methods * Add simple tests for tx uri validation * Split start valid into separate tests * Use regex from fcrepo for validation help on tx ids * Create TransactionURI for more strict api definitions * Update ATOMIC_ID constant * Try to retrieve the Atomic-ID from a response when getting the transaction uri * Add TransactionalFcrepoClient for automatically adding Atomic-IDs to requests * Add builder option for a TransactionFcrepoClient * Create a container to test the transactional client * Use DateTimeFormatter when checking all Atomic-Expires headers * Add a method for creating transaction clients from a fcrepo client Updates the FcrepoClient constructor to take a HttpClientBuilder in order to construct new clients * Extend BodyRequestBuilder to allow for removal of addTransaction * Make addTransaction protected to hide it in unused builders * Add function to start a tx and create a client * Test for startTransactionalClient * Drop Optional from getTransactionUri * Add transaction helpers to client * Move startTransactionClient to FcrepoClient * Update tests to be only through TransactionalFcrepoClient * Create RequestBuilders for tx endpoints in TransactionalFcrepoClient * Update import for TRANSACTION_ENDPOINT * Remove unused classes * Shorten transaction methods * Keep functionality for base or transaction endpoints * Add test creating a client using the full transaction endpoint * Drop need for TransactionURI * Use Get/Post/etc builders for the transaction api
- Loading branch information
1 parent
641b4ca
commit 3393573
Showing
15 changed files
with
515 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 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 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
Oops, something went wrong.