Interface DocumentGateway
- All Known Implementing Classes:
RestDocumentGateway
public interface DocumentGateway
Port to the documents on the resource server, read with the token the service client obtained for itself (client
credentials). An implementation never returns
null and reports every failure as a
DocumentAccessException, so no transport or framework type reaches its callers.-
Method Summary
Modifier and TypeMethodDescriptionLists the documents the service client may see.
-
Method Details
-
listDocuments
Lists the documents the service client may see.- Returns:
- the documents, empty when there are none.
- Throws:
DocumentAccessException- if the token cannot be obtained, the resource server refuses it or cannot be reached.
-