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 toAbstractCommandLinethat 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
Fields Modifier and Type Field Description private org.apache.http.client.HttpClienthttpClientThe injected HttpClient.private HttpClientSecurityParametershttpClientSecurityParametersInjected 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 Constructor Description AbstractIdPHomeAwareCommandLine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intdoRun(T args)org.apache.http.client.HttpClientgetHttpClient()Gets theHttpClientto use.HttpClientSecurityParametersgetHttpClientSecurityParameters()Gets theHttpClientSecurityParametersto use.-
Methods inherited from class net.shibboleth.ext.spring.cli.AbstractCommandLine
getAdditionalSpringResources, getApplicationContext, getArgumentClass, getLogger, getVersion, initLogging, run, setContextInitializer
-
-
-
-
Field Detail
-
httpClient
@Nullable private org.apache.http.client.HttpClient httpClient
The injected HttpClient.
-
httpClientSecurityParameters
@Nullable private HttpClientSecurityParameters httpClientSecurityParameters
Injected security parameters.
-
-
Method Detail
-
getHttpClient
@Nullable public org.apache.http.client.HttpClient getHttpClient()
Gets theHttpClientto use.- Returns:
- the HTTP client to use
-
getHttpClientSecurityParameters
@Nullable public HttpClientSecurityParameters getHttpClientSecurityParameters()
Gets theHttpClientSecurityParametersto use.- Returns:
- the HTTP client security parameters to use
-
doRun
protected int doRun(@Nonnull T args)- Overrides:
doRunin classAbstractCommandLine<T extends AbstractIdPHomeAwareCommandLineArguments>
-
-