.getFirst( headerField.first() ) ) ); data.setMethod( request.getMethod() ); data.setUri( uri ); data.setStatus( responseCode );
@Override public String getHttpMethod() { return clientRequest.getMethod(); }
@Override public String getRequestMethod() { return clientRequest.getMethod(); }
@Override public String getHttpMethod() { return clientRequest.getMethod(); }
@Override public String getMethod() { return request.getMethod(); }
private String getMethod(ClientRequest request) { return request.getMethod(); }
@Override public String getMethod() { return request.getMethod(); }
@Override public String getMethod() { return clientRequest.getMethod(); }
@Override public String getMethod() { return clientRequest.getMethod(); }
private void printRequestLine(StringBuilder b, long id, ClientRequest request) { prefixId(b, id).append(NOTIFICATION_PREFIX).append("Client out-bound request").append("\n"); prefixId(b, id).append(REQUEST_PREFIX).append(request.getMethod()).append(" "). append(request.getURI().toASCIIString()).append("\n"); }
private void printRequestLine(StringBuilder b, long id, ClientRequest request) { prefixId(b, id).append(NOTIFICATION_PREFIX) .append("Client out-bound request").append("\n"); prefixId(b, id).append(REQUEST_PREFIX).append(request.getMethod()) .append(" ").append(request.getURI().toASCIIString()) .append("\n"); }
private void printRequestLine(StringBuilder b, long id, ClientRequest request) { prefixId(b, id).append(NOTIFICATION_PREFIX).append("Client out-bound request").append("\n"); prefixId(b, id).append(REQUEST_PREFIX).append(request.getMethod()).append(" "). append(request.getURI().toASCIIString()).append("\n"); }
protected String buildErrorMessage(GedcomxApplicationState state) { StringBuilder builder = new StringBuilder("Unsuccessful ").append(state.request.getMethod()).append(" to ").append(state.getUri()).append(" (").append(state.response.getStatus()).append(")"); List<HttpWarning> warnings = state.getWarnings(); if (warnings != null && warnings.size() > 0) { for (HttpWarning warning : warnings) { builder.append("\nWarning: ").append(warning.getMessage()); } } return builder.toString(); }
@Override protected FamilySearchPlatform loadEntityConditionally(ClientResponse response) { if (HttpMethod.GET.equals(request.getMethod()) && (response.getClientResponseStatus() == ClientResponse.Status.OK || response.getClientResponseStatus() == ClientResponse.Status.GONE)) { return loadEntity(response); } else { return null; } }
@Override protected FamilySearchPlatform loadEntityConditionally(ClientResponse response) { if (HttpMethod.GET.equals(request.getMethod()) && (response.getClientResponseStatus() == ClientResponse.Status.OK || response.getClientResponseStatus() == ClientResponse.Status.GONE)) { return loadEntity(response); } else { return null; } }
@Override protected FamilySearchPlatform loadEntityConditionally(ClientResponse response) { if (HttpMethod.GET.equals(request.getMethod()) && (response.getClientResponseStatus() == ClientResponse.Status.OK || response.getClientResponseStatus() == ClientResponse.Status.GONE)) { return loadEntity(response); } else { return null; } }
@Override protected FamilySearchPlatform loadEntityConditionally(ClientResponse response) { if (HttpMethod.GET.equals(request.getMethod()) && (response.getClientResponseStatus() == ClientResponse.Status.OK || response.getClientResponseStatus() == ClientResponse.Status.GONE) || response.getClientResponseStatus() == ClientResponse.Status.PRECONDITION_FAILED) { return loadEntity(response); } else { return null; } }
@Override protected FamilySearchPlatform loadEntityConditionally(ClientResponse response) { if (HttpMethod.GET.equals(request.getMethod()) && (response.getClientResponseStatus() == ClientResponse.Status.OK || response.getClientResponseStatus() == ClientResponse.Status.GONE) || response.getClientResponseStatus() == ClientResponse.Status.PRECONDITION_FAILED) { return loadEntity(response); } else { return null; } }
@Override protected FamilySearchPlatform loadEntityConditionally(ClientResponse response) { if (HttpMethod.GET.equals(request.getMethod()) && (response.getClientResponseStatus() == ClientResponse.Status.OK || response.getClientResponseStatus() == ClientResponse.Status.GONE) || response.getClientResponseStatus() == ClientResponse.Status.PRECONDITION_FAILED) { return loadEntity(response); } else { return null; } }