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,
javax.ws.rs.client.Client jerseyClient) |
DigipostClient(DigipostClientConfig config,
ApiFlavor deliveryType,
String digipostUrl,
long senderAccountId,
Signer signer) |
DigipostClient(DigipostClientConfig config,
ApiFlavor deliveryType,
String digipostUrl,
long senderAccountId,
Signer signer,
ApiService apiService) |
DigipostClient(DigipostClientConfig config,
ApiFlavor deliveryType,
String digipostUrl,
long senderAccountId,
Signer signer,
javax.ws.rs.client.Client jerseyClient) |
DigipostClient(DigipostClientConfig config,
ApiFlavor deliveryType,
String digipostUrl,
long senderAccountId,
Signer signer,
EventLogger eventLogger,
ApiService apiService) |
DigipostClient(DigipostClientConfig config,
ApiFlavor deliveryType,
String digipostUrl,
long senderAccountId,
Signer signer,
EventLogger eventLogger,
javax.ws.rs.client.Client jerseyClient,
ApiService overriddenApiService) |
Modifier and Type | Method and Description |
---|---|
static org.glassfish.jersey.client.JerseyClient |
createJerseyClientWithoutSSLValidation()
Dersom vi tester mot et av Digiposts testmiljøer, vil vi ikke bruke
SSL-validering.
|
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(org.joda.time.DateTime from,
org.joda.time.DateTime to,
int offset,
int maxResults) |
DocumentEvents |
getDocumentEvents(String organisation,
String partId,
org.joda.time.DateTime from,
org.joda.time.DateTime 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)
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, javax.ws.rs.client.Client jerseyClient)
public DigipostClient(DigipostClientConfig config, ApiFlavor deliveryType, String digipostUrl, long senderAccountId, Signer signer, EventLogger eventLogger, ApiService apiService)
public DigipostClient(DigipostClientConfig config, ApiFlavor deliveryType, String digipostUrl, long senderAccountId, InputStream certificateP12File, String certificatePassword, EventLogger eventLogger, javax.ws.rs.client.Client jerseyClient)
public DigipostClient(DigipostClientConfig config, ApiFlavor deliveryType, String digipostUrl, long senderAccountId, Signer signer, EventLogger eventLogger, javax.ws.rs.client.Client jerseyClient, ApiService overriddenApiService)
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(org.joda.time.DateTime from, org.joda.time.DateTime to, int offset, int maxResults)
public DocumentEvents getDocumentEvents(String organisation, String partId, org.joda.time.DateTime from, org.joda.time.DateTime 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 static org.glassfish.jersey.client.JerseyClient createJerseyClientWithoutSSLValidation()
public InputStream getContent(String path)
Copyright © 2016 Digipost Open Source. All rights reserved.