Package net.shibboleth.idp.module
Class ModuleContext
java.lang.Object
net.shibboleth.idp.module.ModuleContext
Information required to perform some module operations.
- Since:
- 4.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.http.client.HttpClient
HttpClient if needed.private HttpClientSecurityParameters
HTTP security parameters.private String
IdP installation root.private List<Locale.LanguageRange>
Language expressions to use for i18n.private PrintStream
Output stream for sending output to the module consumer. -
Constructor Summary
ConstructorsConstructorDescriptionModuleContext
(String home) Constructor.ModuleContext
(Path home) Constructor. -
Method Summary
Modifier and TypeMethodDescription(package private) org.apache.http.client.HttpClient
Gets anHttpClient
instance to use if available.(package private) HttpClientSecurityParameters
GetsHttpClient
security parameters, if any.(package private) Path
Deprecated, for removal: This API element is subject to removal in a future version.(package private) String
Gets software installation location.Gets the language ranges to use for i18n.Gets the output stream to receive any instructions or additional information after performing operations.void
setHttpClient
(org.apache.http.client.HttpClient client) Sets anHttpClient
instance to use.void
SetsHttpClient
security parameters to use.void
setLanguageRanges
(List<Locale.LanguageRange> ranges) Sets the language ranges to use for i18n.void
setMessageStream
(PrintStream stream) Sets the output stream to receive any instructions or additional information after performing operations.
-
Field Details
-
idpHome
IdP installation root. -
httpClient
@Nullable private org.apache.http.client.HttpClient httpClientHttpClient if needed. -
httpClientSecurityParams
HTTP security parameters. -
languageRanges
Language expressions to use for i18n. -
messageStream
Output stream for sending output to the module consumer.
-
-
Constructor Details
-
ModuleContext
Constructor.- Parameters:
home
- location of IdP install
-
ModuleContext
Constructor.- Parameters:
home
- location of IdP install
-
-
Method Details
-
getIdPHome
Deprecated, for removal: This API element is subject to removal in a future version.Gets software installation location.Use the String variant to avoid Windows borkage.
- Returns:
- install path
-
getInstallLocation
Gets software installation location.- Returns:
- install path
- Since:
- 4.2.0
-
getHttpClient
@Nullable org.apache.http.client.HttpClient getHttpClient()Gets anHttpClient
instance to use if available.- Returns:
- HTTP client instance
-
setHttpClient
public void setHttpClient(@Nullable org.apache.http.client.HttpClient client) Sets anHttpClient
instance to use.- Parameters:
client
- client to use
-
getHttpClientSecurityParameters
GetsHttpClient
security parameters, if any.- Returns:
- HTTP client security parameters to use
-
setHttpClientSecurityParameters
SetsHttpClient
security parameters to use.- Parameters:
params
- security parameters
-
getLanguageRanges
@Nonnull @NonnullElements @NotLive @Unmodifiable public List<Locale.LanguageRange> getLanguageRanges()Gets the language ranges to use for i18n.- Returns:
- language ranges
-
setLanguageRanges
Sets the language ranges to use for i18n.- Parameters:
ranges
- language ranges
-
getMessageStream
Gets the output stream to receive any instructions or additional information after performing operations.- Returns:
- output stream, or null
-
setMessageStream
Sets the output stream to receive any instructions or additional information after performing operations.- Parameters:
stream
- output stream
-