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); }
/** {@inheritDoc} */ @Override public void activate(ServiceContext serviceContext) { Logger.onBookFor(this.getClass()).debug("Activating with do nothing"); }