コード例 #1
0
  private HttpClientResponse processPost(HttpClientRequest request) throws HttpProcessException {

    HttpPost post = new HttpPost(request.getRequestUrl().toString());

    addHeaders(request, post);

    HttpEntry entry = request.getEntry();

    if (entry != null) {
      post.setEntity(new HttpEntryEntityAdapter(entry));
    } else {
      Logger.onBookFor(this.getClass())
          .warn("No entity to post to {0}", request.getRequestUrl().toString());
    }

    return execute(post);
  }
コード例 #2
0
 /** {@inheritDoc} */
 @Override
 public void activate(ServiceContext serviceContext) {
   Logger.onBookFor(this.getClass()).debug("Activating with do nothing");
 }