コード例 #1
0
 /**
  * update response with created status and feedback
  *
  * @param artifactoryResponse - encapsulate all data require for response
  * @param proxyDescriptor - proxy descriptor
  */
 private void updateResponse(RestResponse artifactoryResponse, ProxyDescriptor proxyDescriptor) {
   artifactoryResponse.info("Successfully created proxy '" + proxyDescriptor.getKey() + "'");
   artifactoryResponse.responseCode(HttpServletResponse.SC_CREATED);
 }
コード例 #2
0
 /**
  * return not found error
  *
  * @param errorMessage
  * @param response
  */
 private void throwInternalError(String errorMessage, RestResponse response) {
   response.error(errorMessage);
   response.responseCode(HttpServletResponse.SC_NOT_FOUND);
 }