private static String formatStatusInfo(final Response.StatusType statusInfo) { return String.valueOf(statusInfo.getStatusCode()) + '/' + statusInfo.getFamily() + '|' + statusInfo.getReasonPhrase(); } }
private static String formatStatusInfo(final Response.StatusType statusInfo) { return String.valueOf(statusInfo.getStatusCode()) + '/' + statusInfo.getFamily() + '|' + statusInfo.getReasonPhrase(); } }
@Override public int getStatus() { return status.getStatusCode(); }
@Override public String toString() { return "ClientResponse{" + "method=" + requestContext.getMethod() + ", uri=" + requestContext.getUri() + ", status=" + status.getStatusCode() + ", reason=" + status.getReasonPhrase() + "}"; }
/** * Get the status code associated with the response. * * @return the response status code. */ protected int getStatus() { return statusType.getStatusCode(); }
/** * Get the status code associated with the response. * * @return the response status code. */ public int getStatus() { return statusType.getStatusCode(); }
@Override public int getStatus() { return status.getStatusCode(); }
@Override public int getStatus() { return status.getStatusCode(); }
@Override public int getStatus() { return status.getStatusCode(); }
@Override public int getStatus() { return status.getStatusCode(); }
@Override public int getStatus() { return status.getStatusCode(); }
@Override public int getStatus() { return status.getStatusCode(); }
/** * Create a new status type instance with a custom reason phrase. * * @param status response status type. * @param reason custom response status reason phrase. * @return new status type instance representing a given response status code and custom reason phrase. */ public static StatusType from(StatusType status, String reason) { return new StatusImpl(status.getStatusCode(), reason); }
@Override public String toString() { return "ClientResponse{" + "method=" + requestContext.getMethod() + ", uri=" + requestContext.getUri() + ", status=" + status.getStatusCode() + ", reason=" + status.getReasonPhrase() + "}"; }
protected ParamException(Throwable cause, Response.StatusType status, Class<? extends Annotation> parameterType, String name, String defaultStringValue) { super(cause, status.getStatusCode()); this.parameterType = parameterType; this.name = name; this.defaultStringValue = defaultStringValue; }
/** * Create a new status type instance with a custom reason phrase. * * @param status response status type. * @param reason custom response status reason phrase. * @return new status type instance representing a given response status code and custom reason phrase. */ public static StatusType from(StatusType status, String reason) { return new StatusImpl(status.getStatusCode(), reason); }
@Override public String toString() { return "ClientResponse{" + "method=" + requestContext.getMethod() + ", uri=" + requestContext.getUri() + ", status=" + status.getStatusCode() + ", reason=" + status.getReasonPhrase() + "}"; }
@Override public String toString() { return "OutboundJaxrsResponse{" + "status=" + status.getStatusCode() + ", reason=" + status.getReasonPhrase() + ", hasEntity=" + context.hasEntity() + ", closed=" + closed + ", buffered=" + buffered + "}"; }
protected ParamException(Throwable cause, Response.StatusType status, Class<? extends Annotation> parameterType, String name, String defaultStringValue) { super(cause, status.getStatusCode()); this.parameterType = parameterType; this.name = name; this.defaultStringValue = defaultStringValue; }
@Override public String toString() { return "OutboundJaxrsResponse{" + "status=" + status.getStatusCode() + ", reason=" + status.getReasonPhrase() + ", hasEntity=" + context.hasEntity() + ", closed=" + closed + ", buffered=" + buffered + "}"; }