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 void
close()
protected InputStream
rawBodyStream()
Get the raw implementation specific body stream for this response.HttpURLConnection
toHttpURLConnection()
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.ByteArrayResponse
Get 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:
rawBodyStream
in 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:
toHttpURLConnection
in classGitHubConnectorResponse
- Returns:
- an object that implements at least the response related methods of
HttpURLConnection
.
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classGitHubConnectorResponse.ByteArrayResponse
- Throws:
IOException
-
-