@Override public String toString() { return documentTypeIdentifier.toString(); }
@Override public String toString() { return documentTypeIdentifier.toString(); }
@Override public String toString() { return documentTypeIdentifier.toString(); }
@Override public int hashCode() { return toString().hashCode(); }
ps.setString(4, rawStatistics.getSender().getIdentifier()); ps.setString(5, rawStatistics.getReceiver().getIdentifier()); ps.setString(6, rawStatistics.getDocumentTypeIdentifier().toString()); ps.setString(7, rawStatistics.getProcessIdentifier().toString()); ps.setString(8, rawStatistics.getChannelId() == null ? null : rawStatistics.getChannelId().stringValue());
ps.setString(4, rawStatistics.getSender().getIdentifier()); ps.setString(5, rawStatistics.getReceiver().getIdentifier()); ps.setString(6, rawStatistics.getDocumentTypeIdentifier().toString()); ps.setString(7, rawStatistics.getProcessIdentifier().toString()); ps.setString(8, rawStatistics.getChannelId() == null ? null : rawStatistics.getChannelId().stringValue());
ps.setString(4, rawStatistics.getSender().getIdentifier()); ps.setString(5, rawStatistics.getReceiver().getIdentifier()); ps.setString(6, rawStatistics.getDocumentTypeIdentifier().toString()); ps.setString(7, rawStatistics.getProcessIdentifier().toString()); ps.setString(8, rawStatistics.getChannelId() == null ? null : rawStatistics.getChannelId().stringValue());
ps.setString(4, rawStatistics.getSender().getIdentifier()); ps.setString(5, rawStatistics.getReceiver().getIdentifier()); ps.setString(6, rawStatistics.getDocumentTypeIdentifier().toString()); ps.setString(7, rawStatistics.getProcessIdentifier().toString()); ps.setString(8, rawStatistics.getChannelId() == null ? null : rawStatistics.getChannelId().stringValue());
public ServiceMetadata getServiceMetadata(ParticipantIdentifier participantIdentifier, DocumentTypeIdentifier documentTypeIdentifier) throws LookupException, PeppolSecurityException { URI location = locator.lookup(participantIdentifier); URI provider = this.provider.resolveServiceMetadata(location, participantIdentifier, documentTypeIdentifier); FetcherResponse fetcherResponse; try { fetcherResponse = fetcher.fetch(provider); } catch (FileNotFoundException e) { throw new LookupException(String.format( "Combination of receiver (%s) and document type identifier (%s) is not supported.", participantIdentifier.toString(), documentTypeIdentifier.toString()), e); } PotentiallySigned<ServiceMetadata> serviceMetadata = reader.parseServiceMetadata(fetcherResponse); if (serviceMetadata instanceof Signed) validator.validate(Service.SMP, ((Signed) serviceMetadata).getCertificate()); return serviceMetadata.getContent(); }