Package net.shibboleth.idp.cli
Class AbstractIdPHomeAwareCommandLine<T extends AbstractIdPHomeAwareCommandLineArguments>
java.lang.Object
net.shibboleth.ext.spring.cli.AbstractCommandLine<T>
net.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLine<T>
- Type Parameters:
T
- argument object type
- Direct Known Subclasses:
DataSealerCLI
,JarCheckCLI
,ModuleManagerCLI
,PluginInstallerCLI
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.ext.spring.cli.AbstractCommandLine
AbstractCommandLine.TerminalCodes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.http.client.HttpClient
The injected HttpClient.private HttpClientSecurityParameters
Injected security parameters.Fields inherited from class net.shibboleth.ext.spring.cli.AbstractCommandLine
ARGS_PROPERTY, RC_INIT, RC_IO, RC_OK, RC_UNKNOWN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
org.apache.http.client.HttpClient
Gets theHttpClient
to use.Gets theHttpClientSecurityParameters
to use.Methods inherited from class net.shibboleth.ext.spring.cli.AbstractCommandLine
getAdditionalSpringResources, getApplicationContext, getArgumentClass, getLogger, getVersion, initLogging, run, setContextInitializer
-
Field Details
-
httpClient
@Nullable private org.apache.http.client.HttpClient httpClientThe injected HttpClient. -
httpClientSecurityParameters
Injected security parameters.
-
-
Constructor Details
-
AbstractIdPHomeAwareCommandLine
public AbstractIdPHomeAwareCommandLine()
-
-
Method Details
-
getHttpClient
@Nullable public org.apache.http.client.HttpClient getHttpClient()Gets theHttpClient
to use.- Returns:
- the HTTP client to use
-
getHttpClientSecurityParameters
Gets theHttpClientSecurityParameters
to use.- Returns:
- the HTTP client security parameters to use
-
doRun
- Overrides:
doRun
in classAbstractCommandLine<T extends AbstractIdPHomeAwareCommandLineArguments>
-