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.
|
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) |
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) |
DigipostClient |
setThrowOnResponseValidationError(boolean throwOnError)
Bestemmer klienten skal kaste exception ved feil under validering av serversignatur, eller
om den heller skal logge med log level warn.
|
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 DigipostClient setThrowOnResponseValidationError(boolean throwOnError)
throwOnError
- true hvis den skal kaste exception, false for warn loggingpublic 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)
Copyright © 2017 Digipost. All rights reserved.