Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit96a19fc

Browse files
author
Scott Kidder
committed
Update Maven artifact ID and add docs for API methods
1 parent3f57581 commit96a19fc

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.brightcove</groupId>
5-
<artifactId>castlab-java-api</artifactId>
5+
<artifactId>castlabs-java-api</artifactId>
66
<version>1.0.0</version>
77
<developers>
88
<developer>

‎src/main/java/com/brightcove/castlabs/client/CastlabsClient.java‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,16 @@ protected String getTicket(String merchantId) throws CastlabsException, IOExcept
177177
}
178178
}
179179

180-
publicIngestKeysResponseingestKeys(IngestKeysRequestassets,StringmerchantId)
180+
/**
181+
* Ingest one or more keys into the Castlabs keystore.
182+
*
183+
* @param request
184+
* @param merchantId
185+
* @return response from Castlabs
186+
* @throws CastlabsException error reported by Castlabs
187+
* @throws IOException network error while communicating with Castlabs REST API
188+
*/
189+
publicIngestKeysResponseingestKeys(IngestKeysRequestrequest,StringmerchantId)
181190
throwsCastlabsException,IOException {
182191
finalStringuri =this.ingestionBaseUrl +"frontend/api/keys/v2/ingest/" +merchantId
183192
+"?ticket=" +this.getTicket(merchantId);
@@ -196,7 +205,7 @@ public IngestKeysResponse ingestKeys(IngestKeysRequest assets, String merchantId
196205
.setSocketTimeout(connectionTimeout).build();
197206
ingestRequest.setConfig(requestConfig);
198207
}
199-
ingestRequest.setEntity(newStringEntity(objectMapper.writeValueAsString(assets)));
208+
ingestRequest.setEntity(newStringEntity(objectMapper.writeValueAsString(request)));
200209
ticketResponse =httpclient.execute(ingestRequest);
201210
if (ticketResponse !=null) {
202211
finalintstatusCode =ticketResponse.getStatusLine().getStatusCode();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp