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.ObjectBasic service for sending and receiving HTTP requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classTransportHttp.Service.HttpExecuteStream(package private) classTransportHttp.Service.HttpOutputStream
-
Field Summary
Fields Modifier and Type Field Description protected HttpConnectionconnprotected TransportHttp.Service.HttpExecuteStreamexecute(package private) UnionInputStreaminprotected TransportHttp.Service.HttpOutputStreamoutprotected TransferConfig.ProtocolVersionprotocolVersionprotected java.lang.StringrequestTypeprotected java.lang.StringresponseTypeprotected java.lang.StringserviceName
-
Constructor Summary
Constructors Constructor Description Service(java.lang.String serviceName, TransferConfig.ProtocolVersion protocolVersion)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract voidexecute()(package private) java.io.InputStreamgetInputStream()(package private) TransportHttp.Service.HttpOutputStreamgetOutputStream()(package private) voidopenResponse()(package private) voidopenStream()(package private) voidsendRequest()
-
-
-
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
-
protocolVersion
protected final TransferConfig.ProtocolVersion protocolVersion
-
in
final UnionInputStream in
-
-
Constructor Detail
-
Service
Service(java.lang.String serviceName, TransferConfig.ProtocolVersion protocolVersion)
-
-
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
-
-