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 toHttpURLConnection. For internal use only.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.kohsuke.github.connector.GitHubConnectorResponse
GitHubConnectorResponse.ByteArrayResponse
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()protected InputStreamrawBodyStream()Get the raw implementation specific body stream for this response.HttpURLConnectiontoHttpURLConnection()Deprecated.-
Methods inherited from class org.kohsuke.github.connector.GitHubConnectorResponse.ByteArrayResponse
bodyStream
-
Methods inherited from class org.kohsuke.github.connector.GitHubConnectorResponse
allHeaders, header, parseInt, request, statusCode, wrapStream
-
-
-
-
Method Detail
-
rawBodyStream
@CheckForNull protected InputStream rawBodyStream() throws IOException
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
@Nonnull @Deprecated public HttpURLConnection toHttpURLConnection()
Deprecated.Get this response as aHttpURLConnection.- Overrides:
toHttpURLConnectionin classGitHubConnectorResponse- Returns:
- an object that implements at least the response related methods of
HttpURLConnection.
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classGitHubConnectorResponse.ByteArrayResponse- Throws:
IOException
-
-