Package org.kohsuke.github.internal
Class GitHubConnectorHttpConnectorAdapter.HttpURLConnectionGitHubConnectorResponse
java.lang.Object
org.kohsuke.github.connector.GitHubConnectorResponse
org.kohsuke.github.connector.GitHubConnectorResponse.ByteArrayResponse
org.kohsuke.github.internal.GitHubConnectorHttpConnectorAdapter.HttpURLConnectionGitHubConnectorResponse
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- GitHubConnectorHttpConnectorAdapter
public static final class GitHubConnectorHttpConnectorAdapter.HttpURLConnectionGitHubConnectorResponse
extends GitHubConnectorResponse.ByteArrayResponse
Initial response information supplied when a response is received but before the body is processed.
Implementation specific to
HttpURLConnection. For internal use only.-
Nested Class Summary
Nested classes/interfaces inherited from class org.kohsuke.github.connector.GitHubConnectorResponse
GitHubConnectorResponse.ByteArrayResponse -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected InputStreamGet the raw implementation specific body stream for this response.Deprecated.Methods inherited from class org.kohsuke.github.connector.GitHubConnectorResponse.ByteArrayResponse
bodyStreamMethods inherited from class org.kohsuke.github.connector.GitHubConnectorResponse
allHeaders, header, parseInt, request, statusCode, wrapStream
-
Method Details
-
rawBodyStream
Description copied from class:GitHubConnectorResponse.ByteArrayResponseGet the raw implementation specific body stream for this response. This method will only be called once to completion. If an exception is thrown, it may be called multiple times.- Specified by:
rawBodyStreamin classGitHubConnectorResponse.ByteArrayResponse- Returns:
- the stream for the raw response
- Throws:
IOException- if an I/O Exception occurs.
-
toHttpURLConnection
Deprecated.Get this response as aHttpURLConnection.- Overrides:
toHttpURLConnectionin classGitHubConnectorResponse- Returns:
- an object that implements at least the response related methods of
HttpURLConnection.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classGitHubConnectorResponse.ByteArrayResponse- Throws:
IOException
-