Class ApacheRFC9457Reporter
java.lang.Object
org.eclipse.aether.spi.connector.transport.http.RFC9457.RFC9457Reporter<org.apache.http.client.methods.CloseableHttpResponse,org.apache.http.client.HttpResponseException,org.apache.http.HttpRequest>
org.eclipse.aether.transport.apache.ApacheRFC9457Reporter
public class ApacheRFC9457Reporter
extends RFC9457Reporter<org.apache.http.client.methods.CloseableHttpResponse,org.apache.http.client.HttpResponseException,org.apache.http.HttpRequest>
-
Field Summary
FieldsFields inherited from class org.eclipse.aether.spi.connector.transport.http.RFC9457.RFC9457Reporter
CONTENT_TYPE_PROBLEM_DETAILS_JSON -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetBody(org.apache.http.client.methods.CloseableHttpResponse response) protected StringgetReasonPhrase(org.apache.http.client.methods.CloseableHttpResponse response) protected intgetStatusCode(org.apache.http.client.methods.CloseableHttpResponse response) protected booleanisRFC9457Message(org.apache.http.client.methods.CloseableHttpResponse response) voidprepareRequest(org.apache.http.HttpRequest request) Prepares the request to accept RFC 9457 responses.Methods inherited from class org.eclipse.aether.spi.connector.transport.http.RFC9457.RFC9457Reporter
generateException, hasRFC9457ContentType
-
Field Details
-
INSTANCE
-
-
Method Details
-
prepareRequest
Description copied from class:RFC9457ReporterPrepares the request to accept RFC 9457 responses. This involves setting/updating the "Accept" header to include "application/problem+json".- Specified by:
prepareRequestin classRFC9457Reporter<org.apache.http.client.methods.CloseableHttpResponse,org.apache.http.client.HttpResponseException, org.apache.http.HttpRequest> - Parameters:
request- The request or request builder to prepare- See Also:
-
isRFC9457Message
- Specified by:
isRFC9457Messagein classRFC9457Reporter<org.apache.http.client.methods.CloseableHttpResponse,org.apache.http.client.HttpResponseException, org.apache.http.HttpRequest>
-
getStatusCode
- Specified by:
getStatusCodein classRFC9457Reporter<org.apache.http.client.methods.CloseableHttpResponse,org.apache.http.client.HttpResponseException, org.apache.http.HttpRequest>
-
getReasonPhrase
- Specified by:
getReasonPhrasein classRFC9457Reporter<org.apache.http.client.methods.CloseableHttpResponse,org.apache.http.client.HttpResponseException, org.apache.http.HttpRequest>
-
getBody
protected String getBody(org.apache.http.client.methods.CloseableHttpResponse response) throws IOException - Specified by:
getBodyin classRFC9457Reporter<org.apache.http.client.methods.CloseableHttpResponse,org.apache.http.client.HttpResponseException, org.apache.http.HttpRequest> - Throws:
IOException
-