Package org.eclipse.jgit.lfs
Interface Protocol
public interface Protocol
This interface describes the network protocol used between lfs client and lfs
server
- Since:
- 4.11
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDescribes in a Response a single action the client can execute on a single objectstatic classDescribes an error to be returned by the LFS batch APIstatic classAn action with an additional expiration timestampstatic classDescribes in a response all actions the LFS server offers for a single objectstatic classMetaData of an LFS object.static classA request sent to an LFS serverstatic classA response received from an LFS server -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe contenttype used in LFS requestsstatic final StringAuthorization header when auto-discovering via SSH.static final StringPrefix of authentication token obtained through SSH.static final StringPath to the LFS info servlet.static final StringPath to the LFS objects servlet.static final StringThe "download" operationstatic final StringThe "upload" operation -
Method Summary
Static Methods
-
Field Details
-
OPERATION_DOWNLOAD
The "download" operation- See Also:
-
OPERATION_UPLOAD
The "upload" operation- See Also:
-
CONTENTTYPE_VND_GIT_LFS_JSON
The contenttype used in LFS requests- See Also:
-
HDR_AUTH
Authorization header when auto-discovering via SSH.- See Also:
-
HDR_AUTH_SSH_PREFIX
Prefix of authentication token obtained through SSH.- See Also:
-
INFO_LFS_ENDPOINT
Path to the LFS info servlet.- See Also:
-
OBJECTS_LFS_ENDPOINT
Path to the LFS objects servlet.- See Also:
-
-
Method Details
-
gson
static com.google.gson.Gson gson()- Returns:
- a
Gsoninstance suitable for handling thisProtocol - Since:
- 4.11
-