public class DigipostClient extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DigipostClient.DigipostClientBuilder |
Modifier and Type | Field and Description |
---|---|
static EventLogger |
NOOP_EVENT_LOGGER |
Constructor and Description |
---|
DigipostClient(DigipostClientConfig config,
ApiFlavor deliveryType,
String digipostUrl,
long senderAccountId,
InputStream certificateP12File,
String certificatePassword) |
DigipostClient(DigipostClientConfig config,
ApiFlavor deliveryType,
String digipostUrl,
long senderAccountId,
InputStream certificateP12File,
String certificatePassword,
EventLogger eventLogger,
org.apache.http.impl.client.HttpClientBuilder clientBuilder,
org.apache.http.HttpHost proxy) |
DigipostClient(DigipostClientConfig config,
ApiFlavor deliveryType,
String digipostUrl,
long senderAccountId,
Signer signer,
ApiService apiService) |
DigipostClient(DigipostClientConfig config,
ApiFlavor deliveryType,
String digipostUrl,
long senderAccountId,
Signer signer,
EventLogger eventLogger,
org.apache.http.impl.client.HttpClientBuilder clientBuilder) |
DigipostClient(DigipostClientConfig config,
ApiFlavor deliveryType,
String digipostUrl,
long senderAccountId,
Signer signer,
EventLogger eventLogger,
org.apache.http.impl.client.HttpClientBuilder clientBuilder,
ApiService overriddenApiService,
org.apache.http.HttpHost proxy) |
DigipostClient(DigipostClientConfig config,
ApiFlavor deliveryType,
String digipostUrl,
long senderAccountId,
Signer signer,
org.apache.http.impl.client.HttpClientBuilder clientBuilder) |
Modifier and Type | Method and Description |
---|---|
OngoingDelivery.WithPrintFallback |
createMessage(Message message)
Oppretter en forsendelse for sending gjennom Digipost.
|
OngoingDelivery.ForPrintOnly |
createPrintOnlyMessage(Message printMessage)
Opprette forsendelse som skal gå direkte til print og videre til utsending
gjennom vanlig postgang.
|
void |
deleteInboxDocument(InboxDocument inboxDocument)
Delets the given document from the server
|
Autocomplete |
getAutocompleteSuggestions(String searchString) |
InputStream |
getContent(String path) |
DocumentEvents |
getDocumentEvents(String organisation,
String partId,
ZonedDateTime from,
ZonedDateTime to,
int offset,
int maxResults) |
DocumentEvents |
getDocumentEvents(ZonedDateTime from,
ZonedDateTime to,
int offset,
int maxResults) |
DocumentStatus |
getDocumentStatus(Link linkToDocumentStatus) |
DocumentStatus |
getDocumentStatus(long senderId,
String uuid) |
Inbox |
getInbox(SenderId senderId)
Get the first 100 documents in the inbox for the organisation represented by senderId.
|
Inbox |
getInbox(SenderId senderId,
int offset,
int limit)
Get documents from the inbox for the organisation represented by senderId.
|
InputStream |
getInboxDocumentContent(InboxDocument inboxDocument)
Get the content of a document as a stream.
|
SenderInformation |
getSenderInformation(long senderId)
Hent informasjon om en gitt avsender.
|
SenderInformation |
getSenderInformation(String orgnr,
String avsenderenhet)
Hent informasjon om en gitt avsender.
|
IdentificationResult |
identifyRecipient(Identification identification) |
Recipients |
search(String searchString) |
public static final EventLogger NOOP_EVENT_LOGGER
public DigipostClient(DigipostClientConfig config, ApiFlavor deliveryType, String digipostUrl, long senderAccountId, InputStream certificateP12File, String certificatePassword)
public DigipostClient(DigipostClientConfig config, ApiFlavor deliveryType, String digipostUrl, long senderAccountId, Signer signer, ApiService apiService)
public DigipostClient(DigipostClientConfig config, ApiFlavor deliveryType, String digipostUrl, long senderAccountId, Signer signer, org.apache.http.impl.client.HttpClientBuilder clientBuilder)
public DigipostClient(DigipostClientConfig config, ApiFlavor deliveryType, String digipostUrl, long senderAccountId, Signer signer, EventLogger eventLogger, org.apache.http.impl.client.HttpClientBuilder clientBuilder)
public DigipostClient(DigipostClientConfig config, ApiFlavor deliveryType, String digipostUrl, long senderAccountId, InputStream certificateP12File, String certificatePassword, EventLogger eventLogger, org.apache.http.impl.client.HttpClientBuilder clientBuilder, org.apache.http.HttpHost proxy)
public DigipostClient(DigipostClientConfig config, ApiFlavor deliveryType, String digipostUrl, long senderAccountId, Signer signer, EventLogger eventLogger, org.apache.http.impl.client.HttpClientBuilder clientBuilder, ApiService overriddenApiService, org.apache.http.HttpHost proxy)
public OngoingDelivery.WithPrintFallback createMessage(Message message)
public OngoingDelivery.ForPrintOnly createPrintOnlyMessage(Message printMessage)
public IdentificationResult identifyRecipient(Identification identification)
public Recipients search(String searchString)
public Autocomplete getAutocompleteSuggestions(String searchString)
public DocumentEvents getDocumentEvents(ZonedDateTime from, ZonedDateTime to, int offset, int maxResults)
public DocumentEvents getDocumentEvents(String organisation, String partId, ZonedDateTime from, ZonedDateTime to, int offset, int maxResults)
public SenderInformation getSenderInformation(long senderId)
senderId
- avsender-IDen til avsenderen du vil ha informasjon om.SenderInformation
public SenderInformation getSenderInformation(String orgnr, String avsenderenhet)
orgnr
- organisasjonsnummeret til avsenderen (påkrevet).avsenderenhet
- underenhet for gitt orgnr
, dersom
aktuelt, eller null
.SenderInformation
public DocumentStatus getDocumentStatus(Link linkToDocumentStatus)
public DocumentStatus getDocumentStatus(long senderId, String uuid)
public InputStream getContent(String path)
public Inbox getInbox(SenderId senderId)
senderId
- Either an organisation that you operate on behalf of or your brokerIdpublic Inbox getInbox(SenderId senderId, int offset, int limit)
senderId
- Either an organisation that you operate on behalf of or your brokerIdoffset
- Number of documents to skip. For paginationlimit
- Maximum number of documents to retrieve (max 1000)public InputStream getInboxDocumentContent(InboxDocument inboxDocument)
inboxDocument
- The document to get content forpublic void deleteInboxDocument(InboxDocument inboxDocument)
inboxDocument
- The document to deleteCopyright © 2017 Digipost. All rights reserved.