protected HttpPut putDSMethod(final String objectPath, final String ds, final String content)
     throws UnsupportedEncodingException {
   final HttpPut put = new HttpPut(serverAddress + objectPath + "/" + ds + "/fcr:content");
   put.setEntity(new StringEntity(content));
   logger.debug("PUT: {}", put.getURI());
   return put;
 }
예제 #2
0
 @Override
 public int hashCode() {
   int result;
   long temp;
   result = httpPut != null ? httpPut.getURI().hashCode() : 0;
   temp = notificationId != +0.0d ? Double.doubleToLongBits(notificationId) : 0L;
   result = 31 * result + (int) (temp ^ (temp >>> 32));
   return result;
 }
예제 #3
0
 @Override
 public boolean equals(Object o) {
   if (this == o) return true;
   if (o == null || getClass() != o.getClass()) return false;
   PushDelivery that = (PushDelivery) o;
   if (Double.compare(that.notificationId, notificationId) != 0) return false;
   if (httpPut != null ? !httpPut.getURI().equals(that.httpPut.getURI()) : that.httpPut != null)
     return false;
   return true;
 }
 protected HttpPut putObjMethod(final String param) {
   final HttpPut put = new HttpPut(serverAddress + param);
   logger.debug("PUT: {}", put.getURI());
   return put;
 }