Example #1
0
 /**
  * Construct a new request.
  *
  * @param request request string without the base URI
  * @param data data to send to the server
  * @param m HTTP method
  */
 protected Put(final String request, final byte[] data, final HTTPMethod m) {
   uri = URI.create(BASE_URL + request);
   content = data;
   method = m;
 }
Example #2
0
 /**
  * Construct a new GET request.
  *
  * @param request request string without the base URI
  */
 public Get(final String request) {
   uri = URI.create(BASE_URL + request);
 }