/modules/dxp/apps/portal-workflow/portal-workflow-metrics-rest-client/src/main/java/com/liferay/portal/workflow/metrics/rest/client/resource/v1_0/ProcessResource.java

https://github.com/danielreuther/liferay-portal · Java · 800 lines · 588 code · 195 blank · 17 comment · 65 complexity · eb73974934f6649f713d38bfa7a757ba MD5 · raw file

  1. /**
  2. * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
  3. *
  4. * The contents of this file are subject to the terms of the Liferay Enterprise
  5. * Subscription License ("License"). You may not use this file except in
  6. * compliance with the License. You can obtain a copy of the License by
  7. * contacting Liferay, Inc. See the License for the specific language governing
  8. * permissions and limitations under the License, including but not limited to
  9. * distribution rights of the Software.
  10. *
  11. *
  12. *
  13. */
  14. package com.liferay.portal.workflow.metrics.rest.client.resource.v1_0;
  15. import com.liferay.portal.workflow.metrics.rest.client.dto.v1_0.Process;
  16. import com.liferay.portal.workflow.metrics.rest.client.http.HttpInvoker;
  17. import com.liferay.portal.workflow.metrics.rest.client.problem.Problem;
  18. import java.util.LinkedHashMap;
  19. import java.util.Locale;
  20. import java.util.Map;
  21. import java.util.logging.Level;
  22. import java.util.logging.Logger;
  23. import javax.annotation.Generated;
  24. /**
  25. * @author Rafael Praxedes
  26. * @generated
  27. */
  28. @Generated("")
  29. public interface ProcessResource {
  30. public static Builder builder() {
  31. return new Builder();
  32. }
  33. public Process postProcess(Process process) throws Exception;
  34. public HttpInvoker.HttpResponse postProcessHttpResponse(Process process)
  35. throws Exception;
  36. public void postProcessBatch(String callbackURL, Object object)
  37. throws Exception;
  38. public HttpInvoker.HttpResponse postProcessBatchHttpResponse(
  39. String callbackURL, Object object)
  40. throws Exception;
  41. public void deleteProcess(Long processId) throws Exception;
  42. public HttpInvoker.HttpResponse deleteProcessHttpResponse(Long processId)
  43. throws Exception;
  44. public void deleteProcessBatch(String callbackURL, Object object)
  45. throws Exception;
  46. public HttpInvoker.HttpResponse deleteProcessBatchHttpResponse(
  47. String callbackURL, Object object)
  48. throws Exception;
  49. public Process getProcess(Long processId) throws Exception;
  50. public HttpInvoker.HttpResponse getProcessHttpResponse(Long processId)
  51. throws Exception;
  52. public void putProcess(Long processId, Process process) throws Exception;
  53. public HttpInvoker.HttpResponse putProcessHttpResponse(
  54. Long processId, Process process)
  55. throws Exception;
  56. public void putProcessBatch(String callbackURL, Object object)
  57. throws Exception;
  58. public HttpInvoker.HttpResponse putProcessBatchHttpResponse(
  59. String callbackURL, Object object)
  60. throws Exception;
  61. public String getProcessTitle(Long processId) throws Exception;
  62. public HttpInvoker.HttpResponse getProcessTitleHttpResponse(Long processId)
  63. throws Exception;
  64. public static class Builder {
  65. public Builder authentication(String login, String password) {
  66. _login = login;
  67. _password = password;
  68. return this;
  69. }
  70. public ProcessResource build() {
  71. return new ProcessResourceImpl(this);
  72. }
  73. public Builder contextPath(String contextPath) {
  74. _contextPath = contextPath;
  75. return this;
  76. }
  77. public Builder endpoint(String host, int port, String scheme) {
  78. _host = host;
  79. _port = port;
  80. _scheme = scheme;
  81. return this;
  82. }
  83. public Builder header(String key, String value) {
  84. _headers.put(key, value);
  85. return this;
  86. }
  87. public Builder locale(Locale locale) {
  88. _locale = locale;
  89. return this;
  90. }
  91. public Builder parameter(String key, String value) {
  92. _parameters.put(key, value);
  93. return this;
  94. }
  95. public Builder parameters(String... parameters) {
  96. if ((parameters.length % 2) != 0) {
  97. throw new IllegalArgumentException(
  98. "Parameters length is not an even number");
  99. }
  100. for (int i = 0; i < parameters.length; i += 2) {
  101. String parameterName = String.valueOf(parameters[i]);
  102. String parameterValue = String.valueOf(parameters[i + 1]);
  103. _parameters.put(parameterName, parameterValue);
  104. }
  105. return this;
  106. }
  107. private Builder() {
  108. }
  109. private String _contextPath = "";
  110. private Map<String, String> _headers = new LinkedHashMap<>();
  111. private String _host = "localhost";
  112. private Locale _locale;
  113. private String _login = "";
  114. private String _password = "";
  115. private Map<String, String> _parameters = new LinkedHashMap<>();
  116. private int _port = 8080;
  117. private String _scheme = "http";
  118. }
  119. public static class ProcessResourceImpl implements ProcessResource {
  120. public Process postProcess(Process process) throws Exception {
  121. HttpInvoker.HttpResponse httpResponse = postProcessHttpResponse(
  122. process);
  123. String content = httpResponse.getContent();
  124. if ((httpResponse.getStatusCode() / 100) != 2) {
  125. _logger.log(
  126. Level.WARNING,
  127. "Unable to process HTTP response content: " + content);
  128. _logger.log(
  129. Level.WARNING,
  130. "HTTP response message: " + httpResponse.getMessage());
  131. _logger.log(
  132. Level.WARNING,
  133. "HTTP response status code: " +
  134. httpResponse.getStatusCode());
  135. throw new Problem.ProblemException(Problem.toDTO(content));
  136. }
  137. else {
  138. _logger.fine("HTTP response content: " + content);
  139. _logger.fine(
  140. "HTTP response message: " + httpResponse.getMessage());
  141. _logger.fine(
  142. "HTTP response status code: " +
  143. httpResponse.getStatusCode());
  144. }
  145. try {
  146. return com.liferay.portal.workflow.metrics.rest.client.serdes.
  147. v1_0.ProcessSerDes.toDTO(content);
  148. }
  149. catch (Exception e) {
  150. _logger.log(
  151. Level.WARNING,
  152. "Unable to process HTTP response: " + content, e);
  153. throw new Problem.ProblemException(Problem.toDTO(content));
  154. }
  155. }
  156. public HttpInvoker.HttpResponse postProcessHttpResponse(Process process)
  157. throws Exception {
  158. HttpInvoker httpInvoker = HttpInvoker.newHttpInvoker();
  159. httpInvoker.body(process.toString(), "application/json");
  160. if (_builder._locale != null) {
  161. httpInvoker.header(
  162. "Accept-Language", _builder._locale.toLanguageTag());
  163. }
  164. for (Map.Entry<String, String> entry :
  165. _builder._headers.entrySet()) {
  166. httpInvoker.header(entry.getKey(), entry.getValue());
  167. }
  168. for (Map.Entry<String, String> entry :
  169. _builder._parameters.entrySet()) {
  170. httpInvoker.parameter(entry.getKey(), entry.getValue());
  171. }
  172. httpInvoker.httpMethod(HttpInvoker.HttpMethod.POST);
  173. httpInvoker.path(
  174. _builder._scheme + "://" + _builder._host + ":" +
  175. _builder._port + _builder._contextPath +
  176. "/o/portal-workflow-metrics/v1.0/processes");
  177. httpInvoker.userNameAndPassword(
  178. _builder._login + ":" + _builder._password);
  179. return httpInvoker.invoke();
  180. }
  181. public void postProcessBatch(String callbackURL, Object object)
  182. throws Exception {
  183. HttpInvoker.HttpResponse httpResponse =
  184. postProcessBatchHttpResponse(callbackURL, object);
  185. String content = httpResponse.getContent();
  186. if ((httpResponse.getStatusCode() / 100) != 2) {
  187. _logger.log(
  188. Level.WARNING,
  189. "Unable to process HTTP response content: " + content);
  190. _logger.log(
  191. Level.WARNING,
  192. "HTTP response message: " + httpResponse.getMessage());
  193. _logger.log(
  194. Level.WARNING,
  195. "HTTP response status code: " +
  196. httpResponse.getStatusCode());
  197. throw new Problem.ProblemException(Problem.toDTO(content));
  198. }
  199. else {
  200. _logger.fine("HTTP response content: " + content);
  201. _logger.fine(
  202. "HTTP response message: " + httpResponse.getMessage());
  203. _logger.fine(
  204. "HTTP response status code: " +
  205. httpResponse.getStatusCode());
  206. }
  207. }
  208. public HttpInvoker.HttpResponse postProcessBatchHttpResponse(
  209. String callbackURL, Object object)
  210. throws Exception {
  211. HttpInvoker httpInvoker = HttpInvoker.newHttpInvoker();
  212. httpInvoker.body(object.toString(), "application/json");
  213. if (_builder._locale != null) {
  214. httpInvoker.header(
  215. "Accept-Language", _builder._locale.toLanguageTag());
  216. }
  217. for (Map.Entry<String, String> entry :
  218. _builder._headers.entrySet()) {
  219. httpInvoker.header(entry.getKey(), entry.getValue());
  220. }
  221. for (Map.Entry<String, String> entry :
  222. _builder._parameters.entrySet()) {
  223. httpInvoker.parameter(entry.getKey(), entry.getValue());
  224. }
  225. httpInvoker.httpMethod(HttpInvoker.HttpMethod.POST);
  226. if (callbackURL != null) {
  227. httpInvoker.parameter(
  228. "callbackURL", String.valueOf(callbackURL));
  229. }
  230. httpInvoker.path(
  231. _builder._scheme + "://" + _builder._host + ":" +
  232. _builder._port + _builder._contextPath +
  233. "/o/portal-workflow-metrics/v1.0/processes/batch");
  234. httpInvoker.userNameAndPassword(
  235. _builder._login + ":" + _builder._password);
  236. return httpInvoker.invoke();
  237. }
  238. public void deleteProcess(Long processId) throws Exception {
  239. HttpInvoker.HttpResponse httpResponse = deleteProcessHttpResponse(
  240. processId);
  241. String content = httpResponse.getContent();
  242. if ((httpResponse.getStatusCode() / 100) != 2) {
  243. _logger.log(
  244. Level.WARNING,
  245. "Unable to process HTTP response content: " + content);
  246. _logger.log(
  247. Level.WARNING,
  248. "HTTP response message: " + httpResponse.getMessage());
  249. _logger.log(
  250. Level.WARNING,
  251. "HTTP response status code: " +
  252. httpResponse.getStatusCode());
  253. throw new Problem.ProblemException(Problem.toDTO(content));
  254. }
  255. else {
  256. _logger.fine("HTTP response content: " + content);
  257. _logger.fine(
  258. "HTTP response message: " + httpResponse.getMessage());
  259. _logger.fine(
  260. "HTTP response status code: " +
  261. httpResponse.getStatusCode());
  262. }
  263. try {
  264. return;
  265. }
  266. catch (Exception e) {
  267. _logger.log(
  268. Level.WARNING,
  269. "Unable to process HTTP response: " + content, e);
  270. throw new Problem.ProblemException(Problem.toDTO(content));
  271. }
  272. }
  273. public HttpInvoker.HttpResponse deleteProcessHttpResponse(
  274. Long processId)
  275. throws Exception {
  276. HttpInvoker httpInvoker = HttpInvoker.newHttpInvoker();
  277. if (_builder._locale != null) {
  278. httpInvoker.header(
  279. "Accept-Language", _builder._locale.toLanguageTag());
  280. }
  281. for (Map.Entry<String, String> entry :
  282. _builder._headers.entrySet()) {
  283. httpInvoker.header(entry.getKey(), entry.getValue());
  284. }
  285. for (Map.Entry<String, String> entry :
  286. _builder._parameters.entrySet()) {
  287. httpInvoker.parameter(entry.getKey(), entry.getValue());
  288. }
  289. httpInvoker.httpMethod(HttpInvoker.HttpMethod.DELETE);
  290. httpInvoker.path(
  291. _builder._scheme + "://" + _builder._host + ":" +
  292. _builder._port + _builder._contextPath +
  293. "/o/portal-workflow-metrics/v1.0/processes/{processId}");
  294. httpInvoker.path("processId", processId);
  295. httpInvoker.userNameAndPassword(
  296. _builder._login + ":" + _builder._password);
  297. return httpInvoker.invoke();
  298. }
  299. public void deleteProcessBatch(String callbackURL, Object object)
  300. throws Exception {
  301. HttpInvoker.HttpResponse httpResponse =
  302. deleteProcessBatchHttpResponse(callbackURL, object);
  303. String content = httpResponse.getContent();
  304. if ((httpResponse.getStatusCode() / 100) != 2) {
  305. _logger.log(
  306. Level.WARNING,
  307. "Unable to process HTTP response content: " + content);
  308. _logger.log(
  309. Level.WARNING,
  310. "HTTP response message: " + httpResponse.getMessage());
  311. _logger.log(
  312. Level.WARNING,
  313. "HTTP response status code: " +
  314. httpResponse.getStatusCode());
  315. throw new Problem.ProblemException(Problem.toDTO(content));
  316. }
  317. else {
  318. _logger.fine("HTTP response content: " + content);
  319. _logger.fine(
  320. "HTTP response message: " + httpResponse.getMessage());
  321. _logger.fine(
  322. "HTTP response status code: " +
  323. httpResponse.getStatusCode());
  324. }
  325. }
  326. public HttpInvoker.HttpResponse deleteProcessBatchHttpResponse(
  327. String callbackURL, Object object)
  328. throws Exception {
  329. HttpInvoker httpInvoker = HttpInvoker.newHttpInvoker();
  330. httpInvoker.body(object.toString(), "application/json");
  331. if (_builder._locale != null) {
  332. httpInvoker.header(
  333. "Accept-Language", _builder._locale.toLanguageTag());
  334. }
  335. for (Map.Entry<String, String> entry :
  336. _builder._headers.entrySet()) {
  337. httpInvoker.header(entry.getKey(), entry.getValue());
  338. }
  339. for (Map.Entry<String, String> entry :
  340. _builder._parameters.entrySet()) {
  341. httpInvoker.parameter(entry.getKey(), entry.getValue());
  342. }
  343. httpInvoker.httpMethod(HttpInvoker.HttpMethod.DELETE);
  344. if (callbackURL != null) {
  345. httpInvoker.parameter(
  346. "callbackURL", String.valueOf(callbackURL));
  347. }
  348. httpInvoker.path(
  349. _builder._scheme + "://" + _builder._host + ":" +
  350. _builder._port + _builder._contextPath +
  351. "/o/portal-workflow-metrics/v1.0/processes/batch");
  352. httpInvoker.userNameAndPassword(
  353. _builder._login + ":" + _builder._password);
  354. return httpInvoker.invoke();
  355. }
  356. public Process getProcess(Long processId) throws Exception {
  357. HttpInvoker.HttpResponse httpResponse = getProcessHttpResponse(
  358. processId);
  359. String content = httpResponse.getContent();
  360. if ((httpResponse.getStatusCode() / 100) != 2) {
  361. _logger.log(
  362. Level.WARNING,
  363. "Unable to process HTTP response content: " + content);
  364. _logger.log(
  365. Level.WARNING,
  366. "HTTP response message: " + httpResponse.getMessage());
  367. _logger.log(
  368. Level.WARNING,
  369. "HTTP response status code: " +
  370. httpResponse.getStatusCode());
  371. throw new Problem.ProblemException(Problem.toDTO(content));
  372. }
  373. else {
  374. _logger.fine("HTTP response content: " + content);
  375. _logger.fine(
  376. "HTTP response message: " + httpResponse.getMessage());
  377. _logger.fine(
  378. "HTTP response status code: " +
  379. httpResponse.getStatusCode());
  380. }
  381. try {
  382. return com.liferay.portal.workflow.metrics.rest.client.serdes.
  383. v1_0.ProcessSerDes.toDTO(content);
  384. }
  385. catch (Exception e) {
  386. _logger.log(
  387. Level.WARNING,
  388. "Unable to process HTTP response: " + content, e);
  389. throw new Problem.ProblemException(Problem.toDTO(content));
  390. }
  391. }
  392. public HttpInvoker.HttpResponse getProcessHttpResponse(Long processId)
  393. throws Exception {
  394. HttpInvoker httpInvoker = HttpInvoker.newHttpInvoker();
  395. if (_builder._locale != null) {
  396. httpInvoker.header(
  397. "Accept-Language", _builder._locale.toLanguageTag());
  398. }
  399. for (Map.Entry<String, String> entry :
  400. _builder._headers.entrySet()) {
  401. httpInvoker.header(entry.getKey(), entry.getValue());
  402. }
  403. for (Map.Entry<String, String> entry :
  404. _builder._parameters.entrySet()) {
  405. httpInvoker.parameter(entry.getKey(), entry.getValue());
  406. }
  407. httpInvoker.httpMethod(HttpInvoker.HttpMethod.GET);
  408. httpInvoker.path(
  409. _builder._scheme + "://" + _builder._host + ":" +
  410. _builder._port + _builder._contextPath +
  411. "/o/portal-workflow-metrics/v1.0/processes/{processId}");
  412. httpInvoker.path("processId", processId);
  413. httpInvoker.userNameAndPassword(
  414. _builder._login + ":" + _builder._password);
  415. return httpInvoker.invoke();
  416. }
  417. public void putProcess(Long processId, Process process)
  418. throws Exception {
  419. HttpInvoker.HttpResponse httpResponse = putProcessHttpResponse(
  420. processId, process);
  421. String content = httpResponse.getContent();
  422. if ((httpResponse.getStatusCode() / 100) != 2) {
  423. _logger.log(
  424. Level.WARNING,
  425. "Unable to process HTTP response content: " + content);
  426. _logger.log(
  427. Level.WARNING,
  428. "HTTP response message: " + httpResponse.getMessage());
  429. _logger.log(
  430. Level.WARNING,
  431. "HTTP response status code: " +
  432. httpResponse.getStatusCode());
  433. throw new Problem.ProblemException(Problem.toDTO(content));
  434. }
  435. else {
  436. _logger.fine("HTTP response content: " + content);
  437. _logger.fine(
  438. "HTTP response message: " + httpResponse.getMessage());
  439. _logger.fine(
  440. "HTTP response status code: " +
  441. httpResponse.getStatusCode());
  442. }
  443. try {
  444. return;
  445. }
  446. catch (Exception e) {
  447. _logger.log(
  448. Level.WARNING,
  449. "Unable to process HTTP response: " + content, e);
  450. throw new Problem.ProblemException(Problem.toDTO(content));
  451. }
  452. }
  453. public HttpInvoker.HttpResponse putProcessHttpResponse(
  454. Long processId, Process process)
  455. throws Exception {
  456. HttpInvoker httpInvoker = HttpInvoker.newHttpInvoker();
  457. httpInvoker.body(process.toString(), "application/json");
  458. if (_builder._locale != null) {
  459. httpInvoker.header(
  460. "Accept-Language", _builder._locale.toLanguageTag());
  461. }
  462. for (Map.Entry<String, String> entry :
  463. _builder._headers.entrySet()) {
  464. httpInvoker.header(entry.getKey(), entry.getValue());
  465. }
  466. for (Map.Entry<String, String> entry :
  467. _builder._parameters.entrySet()) {
  468. httpInvoker.parameter(entry.getKey(), entry.getValue());
  469. }
  470. httpInvoker.httpMethod(HttpInvoker.HttpMethod.PUT);
  471. httpInvoker.path(
  472. _builder._scheme + "://" + _builder._host + ":" +
  473. _builder._port + _builder._contextPath +
  474. "/o/portal-workflow-metrics/v1.0/processes/{processId}");
  475. httpInvoker.path("processId", processId);
  476. httpInvoker.userNameAndPassword(
  477. _builder._login + ":" + _builder._password);
  478. return httpInvoker.invoke();
  479. }
  480. public void putProcessBatch(String callbackURL, Object object)
  481. throws Exception {
  482. HttpInvoker.HttpResponse httpResponse = putProcessBatchHttpResponse(
  483. callbackURL, object);
  484. String content = httpResponse.getContent();
  485. if ((httpResponse.getStatusCode() / 100) != 2) {
  486. _logger.log(
  487. Level.WARNING,
  488. "Unable to process HTTP response content: " + content);
  489. _logger.log(
  490. Level.WARNING,
  491. "HTTP response message: " + httpResponse.getMessage());
  492. _logger.log(
  493. Level.WARNING,
  494. "HTTP response status code: " +
  495. httpResponse.getStatusCode());
  496. throw new Problem.ProblemException(Problem.toDTO(content));
  497. }
  498. else {
  499. _logger.fine("HTTP response content: " + content);
  500. _logger.fine(
  501. "HTTP response message: " + httpResponse.getMessage());
  502. _logger.fine(
  503. "HTTP response status code: " +
  504. httpResponse.getStatusCode());
  505. }
  506. }
  507. public HttpInvoker.HttpResponse putProcessBatchHttpResponse(
  508. String callbackURL, Object object)
  509. throws Exception {
  510. HttpInvoker httpInvoker = HttpInvoker.newHttpInvoker();
  511. httpInvoker.body(object.toString(), "application/json");
  512. if (_builder._locale != null) {
  513. httpInvoker.header(
  514. "Accept-Language", _builder._locale.toLanguageTag());
  515. }
  516. for (Map.Entry<String, String> entry :
  517. _builder._headers.entrySet()) {
  518. httpInvoker.header(entry.getKey(), entry.getValue());
  519. }
  520. for (Map.Entry<String, String> entry :
  521. _builder._parameters.entrySet()) {
  522. httpInvoker.parameter(entry.getKey(), entry.getValue());
  523. }
  524. httpInvoker.httpMethod(HttpInvoker.HttpMethod.PUT);
  525. if (callbackURL != null) {
  526. httpInvoker.parameter(
  527. "callbackURL", String.valueOf(callbackURL));
  528. }
  529. httpInvoker.path(
  530. _builder._scheme + "://" + _builder._host + ":" +
  531. _builder._port + _builder._contextPath +
  532. "/o/portal-workflow-metrics/v1.0/processes/batch");
  533. httpInvoker.userNameAndPassword(
  534. _builder._login + ":" + _builder._password);
  535. return httpInvoker.invoke();
  536. }
  537. public String getProcessTitle(Long processId) throws Exception {
  538. HttpInvoker.HttpResponse httpResponse = getProcessTitleHttpResponse(
  539. processId);
  540. String content = httpResponse.getContent();
  541. if ((httpResponse.getStatusCode() / 100) != 2) {
  542. _logger.log(
  543. Level.WARNING,
  544. "Unable to process HTTP response content: " + content);
  545. _logger.log(
  546. Level.WARNING,
  547. "HTTP response message: " + httpResponse.getMessage());
  548. _logger.log(
  549. Level.WARNING,
  550. "HTTP response status code: " +
  551. httpResponse.getStatusCode());
  552. throw new Problem.ProblemException(Problem.toDTO(content));
  553. }
  554. else {
  555. _logger.fine("HTTP response content: " + content);
  556. _logger.fine(
  557. "HTTP response message: " + httpResponse.getMessage());
  558. _logger.fine(
  559. "HTTP response status code: " +
  560. httpResponse.getStatusCode());
  561. }
  562. try {
  563. return content;
  564. }
  565. catch (Exception e) {
  566. _logger.log(
  567. Level.WARNING,
  568. "Unable to process HTTP response: " + content, e);
  569. throw new Problem.ProblemException(Problem.toDTO(content));
  570. }
  571. }
  572. public HttpInvoker.HttpResponse getProcessTitleHttpResponse(
  573. Long processId)
  574. throws Exception {
  575. HttpInvoker httpInvoker = HttpInvoker.newHttpInvoker();
  576. if (_builder._locale != null) {
  577. httpInvoker.header(
  578. "Accept-Language", _builder._locale.toLanguageTag());
  579. }
  580. for (Map.Entry<String, String> entry :
  581. _builder._headers.entrySet()) {
  582. httpInvoker.header(entry.getKey(), entry.getValue());
  583. }
  584. for (Map.Entry<String, String> entry :
  585. _builder._parameters.entrySet()) {
  586. httpInvoker.parameter(entry.getKey(), entry.getValue());
  587. }
  588. httpInvoker.httpMethod(HttpInvoker.HttpMethod.GET);
  589. httpInvoker.path(
  590. _builder._scheme + "://" + _builder._host + ":" +
  591. _builder._port + _builder._contextPath +
  592. "/o/portal-workflow-metrics/v1.0/processes/{processId}/title");
  593. httpInvoker.path("processId", processId);
  594. httpInvoker.userNameAndPassword(
  595. _builder._login + ":" + _builder._password);
  596. return httpInvoker.invoke();
  597. }
  598. private ProcessResourceImpl(Builder builder) {
  599. _builder = builder;
  600. }
  601. private static final Logger _logger = Logger.getLogger(
  602. ProcessResource.class.getName());
  603. private Builder _builder;
  604. }
  605. }