Modifier and Type | Method and Description |
---|---|
static X509Session |
X509Session.create(X509Certificate certificate,
PrivateKey key,
Session session) |
static Session |
ClientIdentityManager.getCurrentSession()
a simple encapsulation to return a session object built from the
CertificateManager
|
SubjectInfo |
CertificateManager.getSubjectInfo(X509Certificate certificate)
Retrieve the SubjectInfo contained in the given certificate
|
Modifier and Type | Method and Description |
---|---|
static org.apache.http.client.HttpClient |
HttpUtils.createHttpClient(X509Session x509session)
Creates an HttpClient configured with the X509 credentials.
|
static org.apache.http.impl.client.HttpClientBuilder |
HttpUtils.getHttpClientBuilder(X509Session x509session)
Returns an HttpClientBuilder with the DataONE-standard ConnectionManager configuration
specified.
|
static org.apache.http.impl.client.HttpClientBuilder |
HttpUtils.getHttpClientBuilder(X509Session x509session,
Boolean monitorStaleConnections)
Returns an HttpClientBuilder with the DataONE-standard ConnectionManager configuration
specified.
|
Modifier and Type | Method and Description |
---|---|
void |
SimpleMultipartEntity.addFilePart(String name,
Object serializableD1Object)
The DataONE object (serializable datatype) passed in
is serialized as the specified type to file.
|
void |
SimpleMultipartEntity.addFilePart(String name,
Object serializableD1Object,
Class type)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
TypeFactory.clone(Object original)
Clone via marshalling and unmarshalling using the TypeMarshaller to ensure
a DEEP copy and no shared object references.
|
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
NodelistUtil.mapNodeList(InputStream nodeListStream)
Convenience method of transferring nodeId and nodeBaseURL into a Map
|
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
NodelistUtil.mapNodeList(InputStream nodeListStream)
Convenience method of transferring nodeId and nodeBaseURL into a Map
|
Modifier and Type | Method and Description |
---|---|
static BigInteger |
BigIntegerMarshaller.deserializeBigInteger(String bigIntValue)
convert a String to a BigInteger
The String must be greater or equal to 0
|
static File |
TypeMarshaller.marshalTypeToFile(Object typeObject,
String filenamePath)
Marshalls the typeObject to the provided file.
|
static void |
TypeMarshaller.marshalTypeToOutputStream(Object typeObject,
OutputStream os)
Marshalls the typeObject to the provided outputStream.
|
static void |
TypeMarshaller.marshalTypeToOutputStream(Object typeObject,
OutputStream os,
String styleSheet)
Marshalls the typeObject to the provided outputStream.
|
static String |
BigIntegerMarshaller.serializeBigInteger(BigInteger bigInt) |
static <T> T |
TypeMarshaller.unmarshalTypeFromFile(Class<T> domainClass,
File file)
Unmarshals the contents of the filenamePath into the specified domainClass.
|
static <T> T |
TypeMarshaller.unmarshalTypeFromFile(Class<T> domainClass,
String filenamePath)
Unmarshalls the contents of file parameter to the specified domainClass
|
static <T> T |
TypeMarshaller.unmarshalTypeFromStream(Class<T> domainClass,
InputStream inputStream)
Unmarshals the inputStream to the specified domainClass
and unequivocally closes the passed in InputStream .
|
static void |
TypeMarshaller.validateAgainstSchema(Object typeObject)
A method to validate DataONE types against the schemas registered with the
TypeMarshaller.
|
Copyright © 2020. All Rights Reserved.