Package org.eclipse.jgit.transport
Class TransportHttp.Service
- java.lang.Object
-
- org.eclipse.jgit.transport.TransportHttp.Service
-
- Direct Known Subclasses:
TransportHttp.LongPollService
,TransportHttp.MultiRequestService
- Enclosing class:
- TransportHttp
abstract class TransportHttp.Service extends java.lang.Object
Basic service for sending and receiving HTTP requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
TransportHttp.Service.HttpExecuteStream
(package private) class
TransportHttp.Service.HttpOutputStream
-
Field Summary
Fields Modifier and Type Field Description protected HttpConnection
conn
protected TransportHttp.Service.HttpExecuteStream
execute
(package private) UnionInputStream
in
protected TransportHttp.Service.HttpOutputStream
out
protected java.lang.String
requestType
protected java.lang.String
responseType
protected java.lang.String
serviceName
-
Constructor Summary
Constructors Constructor Description Service(java.lang.String serviceName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract void
execute()
(package private) java.io.InputStream
getInputStream()
(package private) TransportHttp.Service.HttpOutputStream
getOutputStream()
(package private) void
openResponse()
(package private) void
openStream()
(package private) void
sendRequest()
-
-
-
Field Detail
-
serviceName
protected final java.lang.String serviceName
-
requestType
protected final java.lang.String requestType
-
responseType
protected final java.lang.String responseType
-
conn
protected HttpConnection conn
-
out
protected TransportHttp.Service.HttpOutputStream out
-
execute
protected final TransportHttp.Service.HttpExecuteStream execute
-
in
final UnionInputStream in
-
-
Method Detail
-
openStream
void openStream() throws java.io.IOException
- Throws:
java.io.IOException
-
sendRequest
void sendRequest() throws java.io.IOException
- Throws:
java.io.IOException
-
openResponse
void openResponse() throws java.io.IOException
- Throws:
java.io.IOException
-
getOutputStream
TransportHttp.Service.HttpOutputStream getOutputStream()
-
getInputStream
java.io.InputStream getInputStream()
-
execute
abstract void execute() throws java.io.IOException
- Throws:
java.io.IOException
-
-