public class GetServerInfo extends Object implements RestReadView<ConfigResource>
Constructor and Description |
---|
GetServerInfo(org.eclipse.jgit.lib.Config config,
AuthConfig authConfig,
Realm realm,
DynamicMap<DownloadScheme> downloadSchemes,
DynamicMap<DownloadCommand> downloadCommands,
DynamicMap<CloneCommand> cloneCommands,
DynamicSet<WebUiPlugin> webUiPlugins,
AllowedFormats archiveFormats,
AllProjectsName allProjectsName,
AllUsersName allUsersName,
String anonymousCowardName,
DynamicItem<AvatarProvider> avatar,
boolean enableSignedPush,
QueryDocumentationExecutor docSearcher,
NotesMigration migration,
ProjectCache projectCache,
AgreementJson agreementJson,
GerritOptions gerritOptions,
ChangeIndexCollection indexes) |
Modifier and Type | Method and Description |
---|---|
ServerInfo |
apply(ConfigResource rsrc)
Process the view operation by reading from the resource.
|
@Inject public GetServerInfo(org.eclipse.jgit.lib.Config config, AuthConfig authConfig, Realm realm, DynamicMap<DownloadScheme> downloadSchemes, DynamicMap<DownloadCommand> downloadCommands, DynamicMap<CloneCommand> cloneCommands, DynamicSet<WebUiPlugin> webUiPlugins, AllowedFormats archiveFormats, AllProjectsName allProjectsName, AllUsersName allUsersName, String anonymousCowardName, DynamicItem<AvatarProvider> avatar, boolean enableSignedPush, QueryDocumentationExecutor docSearcher, NotesMigration migration, ProjectCache projectCache, AgreementJson agreementJson, GerritOptions gerritOptions, ChangeIndexCollection indexes)
public ServerInfo apply(ConfigResource rsrc) throws MalformedURLException
RestReadView
apply
in interface RestReadView<ConfigResource>
rsrc
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.MalformedURLException