public class DigipostClient extends Object
Modifier and Type | Field and Description |
---|---|
static EventLogger |
NOOP_EVENT_LOGGER |
Constructor and Description |
---|
DigipostClient(DeliveryMethod deliveryType,
String digipostUrl,
long senderAccountId,
InputStream certificateP12File,
String certificatePassword) |
DigipostClient(DeliveryMethod deliveryType,
String digipostUrl,
long senderAccountId,
InputStream certificateP12File,
String certificatePassword,
EventLogger eventLogger,
javax.ws.rs.client.Client jerseyClient) |
DigipostClient(DeliveryMethod deliveryType,
String digipostUrl,
long senderAccountId,
Signer signer) |
DigipostClient(DeliveryMethod deliveryType,
String digipostUrl,
long senderAccountId,
Signer signer,
ApiService apiService) |
DigipostClient(DeliveryMethod deliveryType,
String digipostUrl,
long senderAccountId,
Signer signer,
javax.ws.rs.client.Client jerseyClient) |
DigipostClient(DeliveryMethod deliveryType,
String digipostUrl,
long senderAccountId,
Signer signer,
EventLogger eventLogger,
ApiService apiService) |
DigipostClient(DeliveryMethod 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) |
IdentificationResult |
identifyRecipient(Identification identification) |
Recipients |
search(String searchString) |
void |
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(DeliveryMethod deliveryType, String digipostUrl, long senderAccountId, InputStream certificateP12File, String certificatePassword)
public DigipostClient(DeliveryMethod deliveryType, String digipostUrl, long senderAccountId, Signer signer)
public DigipostClient(DeliveryMethod deliveryType, String digipostUrl, long senderAccountId, Signer signer, ApiService apiService)
public DigipostClient(DeliveryMethod deliveryType, String digipostUrl, long senderAccountId, Signer signer, javax.ws.rs.client.Client jerseyClient)
public DigipostClient(DeliveryMethod deliveryType, String digipostUrl, long senderAccountId, Signer signer, EventLogger eventLogger, ApiService apiService)
public DigipostClient(DeliveryMethod deliveryType, String digipostUrl, long senderAccountId, InputStream certificateP12File, String certificatePassword, EventLogger eventLogger, javax.ws.rs.client.Client jerseyClient)
public DigipostClient(DeliveryMethod deliveryType, String digipostUrl, long senderAccountId, Signer signer, EventLogger eventLogger, javax.ws.rs.client.Client jerseyClient, ApiService overriddenApiService)
public void 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 static org.glassfish.jersey.client.JerseyClient createJerseyClientWithoutSSLValidation()
public InputStream getContent(String path)
Copyright © 2015 Digipost Open Source. All rights reserved.