Package net.shibboleth.idp.cli
Class AbstractIdPHomeAwareCommandLine<T extends AbstractIdPHomeAwareCommandLineArguments>
java.lang.Object
net.shibboleth.shared.cli.AbstractCommandLine<T>
net.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLine<T>
- Type Parameters:
T- argument object type
- Direct Known Subclasses:
DataSealerCLI,JarCheckCLI,ModuleManagerCLI,PluginInstallerCLI,UpdateIdPCLI
public abstract class AbstractIdPHomeAwareCommandLine<T extends AbstractIdPHomeAwareCommandLineArguments>
extends AbstractCommandLine<T>
An extension to
AbstractCommandLine that auto-adds our context initializer for idp.home
and property support.- Since:
- 4.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class net.shibboleth.shared.cli.AbstractCommandLine
AbstractCommandLine.TerminalCodes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hc.client5.http.classic.HttpClientThe injected HttpClient.private HttpClientSecurityParametersInjected security parameters.Fields inherited from class net.shibboleth.shared.cli.AbstractCommandLine
ARGS_PROPERTY, RC_INIT, RC_IO, RC_OK, RC_UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intorg.apache.hc.client5.http.classic.HttpClientGets theHttpClientto use.Gets theHttpClientSecurityParametersto use.Methods inherited from class net.shibboleth.shared.cli.AbstractCommandLine
getAdditionalSpringResources, getApplicationContext, getArgumentClass, getLogger, getVersion, initLogging, run, setCaseSensitiveOptions, setContextInitializer
-
Field Details
-
httpClient
@Nullable private org.apache.hc.client5.http.classic.HttpClient httpClientThe injected HttpClient. -
httpClientSecurityParameters
Injected security parameters.
-
-
Constructor Details
-
AbstractIdPHomeAwareCommandLine
public AbstractIdPHomeAwareCommandLine()
-
-
Method Details
-
getHttpClient
@Nullable public org.apache.hc.client5.http.classic.HttpClient getHttpClient()Gets theHttpClientto use.- Returns:
- the HTTP client to use
-
getHttpClientSecurityParameters
Gets theHttpClientSecurityParametersto use.- Returns:
- the HTTP client security parameters to use
-
doRun
- Overrides:
doRunin classAbstractCommandLine<T extends AbstractIdPHomeAwareCommandLineArguments>
-