Top Description Inners Fields Methods
org.eclipse.jgit.lfs

public Interface Protocol

Imports
java.util.List, .Map, com.google.gson.FieldNamingPolicy, .Gson, .GsonBuilder

This interface describes the network protocol used between lfs client and lfs server
Since
4.11

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Protocol.Action

Describes in a Response a single action the client can execute on a single object

public static class
Protocol.Error

Describes an error to be returned by the LFS batch API

public static class
Protocol.ExpiringAction

An action with an additional expiration timestamp

public static class
Protocol.ObjectInfo

Describes in a response all actions the LFS server offers for a single object

public static class
Protocol.ObjectSpec

MetaData of an LFS object.

public static class
Protocol.Request

A request sent to an LFS server

public static class
Protocol.Response

A response received from an LFS server

Field Summary

Modifier and TypeField and Description
public static final String
CONTENTTYPE_VND_GIT_LFS_JSON

The contenttype used in LFS requests

public static final String
HDR_AUTH

Authorization header when auto-discovering via SSH.

public static final String
HDR_AUTH_SSH_PREFIX

Prefix of authentication token obtained through SSH.

public static final String
INFO_LFS_ENDPOINT

Path to the LFS info servlet.

public static final String
OBJECTS_LFS_ENDPOINT

Path to the LFS objects servlet.

public static final String
OPERATION_DOWNLOAD

The "download" operation

public static final String
OPERATION_UPLOAD

The "upload" operation

Method Summary

Modifier and TypeMethod and Description
public static Gson

Returns:

a Gson instance suitable for handling this Protocol
gson
()

Gson instance for handling this protocol

Field Detail

CONTENTTYPE_VND_GIT_LFS_JSONback to summary
public static final String CONTENTTYPE_VND_GIT_LFS_JSON

The contenttype used in LFS requests

HDR_AUTHback to summary
public static final String HDR_AUTH

Authorization header when auto-discovering via SSH.

HDR_AUTH_SSH_PREFIXback to summary
public static final String HDR_AUTH_SSH_PREFIX

Prefix of authentication token obtained through SSH.

INFO_LFS_ENDPOINTback to summary
public static final String INFO_LFS_ENDPOINT

Path to the LFS info servlet.

OBJECTS_LFS_ENDPOINTback to summary
public static final String OBJECTS_LFS_ENDPOINT

Path to the LFS objects servlet.

OPERATION_DOWNLOADback to summary
public static final String OPERATION_DOWNLOAD

The "download" operation

OPERATION_UPLOADback to summary
public static final String OPERATION_UPLOAD

The "upload" operation

Method Detail

gsonback to summary
public static Gson gson()

Gson instance for handling this protocol

Returns:Gson

a Gson instance suitable for handling this Protocol

Since
4.11
org.eclipse.jgit.lfs back to summary

public Class Protocol.Action

extends Object
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.lfs.Protocol.ExpiringAction

Describes in a Response a single action the client can execute on a single object

Field Summary

Modifier and TypeField and Description
public Map<String, String>
public String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

headerback to summary
public Map<String, String> header
hrefback to summary
public String href

Constructor Detail

Actionback to summary
public Action()
org.eclipse.jgit.lfs back to summary

public Class Protocol.Error

extends Object
Class Inheritance
Annotations
@SuppressWarnings:JavaLangClash

Describes an error to be returned by the LFS batch API

Field Summary

Modifier and TypeField and Description
public int
public String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

codeback to summary
public int code
messageback to summary
public String message

Constructor Detail

Errorback to summary
public Error()
org.eclipse.jgit.lfs back to summary

public Class Protocol.ExpiringAction

extends Action
Class Inheritance

An action with an additional expiration timestamp
Since
4.11

Field Summary

Modifier and TypeField and Description
public String
expiresAt

Absolute date/time in format "yyyy-MM-dd'T'HH:mm:ss.SSSX"

public String
expiresIn

Validity time in milliseconds (preferred over expiresAt as specified: https://github.com/git-lfs/git-lfs/blob/master/docs/api/authentication.md)

Inherited from org.eclipse.jgit.lfs.Protocol.Action:
headerhref

Constructor Summary

AccessConstructor and Description
public

Field Detail

expiresAtback to summary
public String expiresAt

Absolute date/time in format "yyyy-MM-dd'T'HH:mm:ss.SSSX"

expiresInback to summary
public String expiresIn

Validity time in milliseconds (preferred over expiresAt as specified: https://github.com/git-lfs/git-lfs/blob/master/docs/api/authentication.md)

Constructor Detail

ExpiringActionback to summary
public ExpiringAction()
org.eclipse.jgit.lfs back to summary

public Class Protocol.ObjectInfo

extends ObjectSpec
Class Inheritance

Describes in a response all actions the LFS server offers for a single object

Field Summary

Modifier and TypeField and Description
public Map<String, Protocol.Action>
public Protocol.Error
Inherited from org.eclipse.jgit.lfs.Protocol.ObjectSpec:
oidsize

Constructor Summary

AccessConstructor and Description
public

Field Detail

actionsback to summary
public Map<String, Protocol.Action> actions
errorback to summary
public Protocol.Error error

Constructor Detail

ObjectInfoback to summary
public ObjectInfo()
org.eclipse.jgit.lfs back to summary

public Class Protocol.ObjectSpec

extends Object
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.lfs.Protocol.ObjectInfo

MetaData of an LFS object. Needs to be specified when requesting objects from the LFS server and is also returned in the response

Field Summary

Modifier and TypeField and Description
public String
public long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

oidback to summary
public String oid
sizeback to summary
public long size

Constructor Detail

ObjectSpecback to summary
public ObjectSpec()
org.eclipse.jgit.lfs back to summary

public Class Protocol.Request

extends Object
Class Inheritance

A request sent to an LFS server

Field Summary

Modifier and TypeField and Description
public List<Protocol.ObjectSpec>
objects

The objects of this request

public String
operation

The operation of this request

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

objectsback to summary
public List<Protocol.ObjectSpec> objects

The objects of this request

operationback to summary
public String operation

The operation of this request

Constructor Detail

Requestback to summary
public Request()
org.eclipse.jgit.lfs back to summary

public Class Protocol.Response

extends Object
Class Inheritance

A response received from an LFS server

Field Summary

Modifier and TypeField and Description
public List<Protocol.ObjectInfo>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

objectsback to summary
public List<Protocol.ObjectInfo> objects

Constructor Detail

Responseback to summary
public Response()