java.lang.Object
org.eclipse.jgit.transport.DaemonService
A service exposed by
Daemon
over anonymous
git://
.-
Method Summary
Modifier and TypeMethodDescriptionGet name of the command requested by clients.boolean
Determine if this service can handle the requested command.boolean
Whether this service is enabled for invocation.boolean
Whether this service can be configured in the repository config filevoid
setEnabled
(boolean on) Set if it is allowed to use this servicevoid
setOverridable
(boolean on) Whether to permit repositories to override this service's enabled state with thedaemon.servicename
config setting.
-
Method Details
-
isEnabled
public boolean isEnabled()Whether this service is enabled for invocation.- Returns:
- whether this service is enabled for invocation.
-
setEnabled
public void setEnabled(boolean on) Set if it is allowed to use this service- Parameters:
on
-true
to allow this service to be used;false
to deny it.
-
isOverridable
public boolean isOverridable()Whether this service can be configured in the repository config file- Returns:
- whether this service can be configured in the repository config file
-
setOverridable
public void setOverridable(boolean on) Whether to permit repositories to override this service's enabled state with thedaemon.servicename
config setting.- Parameters:
on
-true
to permit repositories to override this service's enabled state with thedaemon.servicename
config setting.
-
getCommandName
Get name of the command requested by clients.- Returns:
- name of the command requested by clients.
-
handles
Determine if this service can handle the requested command.- Parameters:
commandLine
- input line from the client.- Returns:
- true if this command can accept the given command line.
-