Package com.netscape.certsrv.client
Class PKIClient
java.lang.Object
com.netscape.certsrv.client.PKIClient
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.slf4j.Logger
static final String[]
javax.ws.rs.core.MediaType
-
Constructor Summary
ConstructorsConstructorDescriptionPKIClient
(ClientConfig config) PKIClient
(ClientConfig config, String apiVersion, org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback) PKIClient
(ClientConfig config, org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<T> T
<T> T
<T> javax.ws.rs.client.Entity<T>
entity
(T object) <T> T
<T> T
<T> T
<T> T
<T> T
getEntity
(javax.ws.rs.core.Response response, javax.ws.rs.core.GenericType<T> clazz) getInfo()
javax.ws.rs.core.MediaType
void
handleErrorResponse
(javax.ws.rs.core.Response response) Marshall request object with custom mapping if available.<T> T
patch
(String path, Map<String, Object> params, javax.ws.rs.client.Entity<?> entity, Class<T> responseType) <T> T
<T> T
<T> T
post
(String path, Map<String, Object> params, javax.ws.rs.client.Entity<?> entity, Class<T> responseType) <T> T
<T> T
put
(String path, Map<String, Object> params, javax.ws.rs.client.Entity<?> entity, Class<T> responseType) void
javax.ws.rs.client.WebTarget
<T> T
unmarshall
(javax.ws.rs.core.Response response, Class<T> clazz) Unmarshall response object using custom mapping if available.
-
Field Details
-
logger
public static org.slf4j.Logger logger -
MESSAGE_FORMATS
-
config
-
connection
-
apiVersion
-
messageFormat
public javax.ws.rs.core.MediaType messageFormat -
infoClient
-
info
-
-
Constructor Details
-
PKIClient
- Throws:
Exception
-
PKIClient
public PKIClient(ClientConfig config, org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback) throws Exception - Throws:
Exception
-
PKIClient
public PKIClient(ClientConfig config, String apiVersion, org.mozilla.jss.ssl.SSLCertificateApprovalCallback callback) throws Exception - Throws:
Exception
-
-
Method Details
-
getAPIVersion
-
getMessageFormat
public javax.ws.rs.core.MediaType getMessageFormat() -
getSubsystem
-
marshall
Marshall request object with custom mapping if available.- Throws:
Exception
-
unmarshall
Unmarshall response object using custom mapping if available.- Throws:
Exception
-
handleErrorResponse
- Throws:
Exception
-
entity
- Throws:
Exception
-
getEntity
- Throws:
Exception
-
getEntity
public <T> T getEntity(javax.ws.rs.core.Response response, javax.ws.rs.core.GenericType<T> clazz) throws Exception - Throws:
Exception
-
getConfig
-
getConnection
-
target
-
get
- Throws:
Exception
-
get
- Throws:
Exception
-
get
public <T> T get(String path, Map<String, Object> params, javax.ws.rs.core.GenericType<T> responseType) throws Exception- Throws:
Exception
-
post
- Throws:
Exception
-
post
- Throws:
Exception
-
post
public <T> T post(String path, Map<String, Object> params, javax.ws.rs.client.Entity<?> entity, Class<T> responseType) throws Exception- Throws:
Exception
-
post
public <T> T post(String path, javax.ws.rs.core.MultivaluedMap<String, String> content, Class<T> responseType) throws Exception- Throws:
Exception
-
put
public <T> T put(String path, Map<String, Object> params, javax.ws.rs.client.Entity<?> entity, Class<T> responseType) throws Exception- Throws:
Exception
-
patch
public <T> T patch(String path, Map<String, Object> params, javax.ws.rs.client.Entity<?> entity, Class<T> responseType) throws Exception- Throws:
Exception
-
delete
- Throws:
Exception
-
delete
- Throws:
Exception
-
getInfo
- Throws:
Exception
-
setOutput
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-