Package net.shibboleth.idp.module
Class ModuleContext
- java.lang.Object
-
- net.shibboleth.idp.module.ModuleContext
-
public final class ModuleContext extends Object
Information required to perform some module operations.- Since:
- 4.1.0
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.http.client.HttpClienthttpClientHttpClient if needed.private HttpClientSecurityParametershttpClientSecurityParamsHTTP security parameters.private StringidpHomeIdP installation root.private List<Locale.LanguageRange>languageRangesLanguage expressions to use for i18n.private PrintStreammessageStreamOutput stream for sending output to the module consumer.
-
Constructor Summary
Constructors Constructor Description ModuleContext(String home)Constructor.ModuleContext(Path home)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description (package private) org.apache.http.client.HttpClientgetHttpClient()Gets anHttpClientinstance to use if available.(package private) HttpClientSecurityParametersgetHttpClientSecurityParameters()GetsHttpClientsecurity parameters, if any.(package private) PathgetIdPHome()Deprecated, for removal: This API element is subject to removal in a future version.(package private) StringgetInstallLocation()Gets software installation location.List<Locale.LanguageRange>getLanguageRanges()Gets the language ranges to use for i18n.PrintStreamgetMessageStream()Gets the output stream to receive any instructions or additional information after performing operations.voidsetHttpClient(org.apache.http.client.HttpClient client)Sets anHttpClientinstance to use.voidsetHttpClientSecurityParameters(HttpClientSecurityParameters params)SetsHttpClientsecurity parameters to use.voidsetLanguageRanges(List<Locale.LanguageRange> ranges)Sets the language ranges to use for i18n.voidsetMessageStream(PrintStream stream)Sets the output stream to receive any instructions or additional information after performing operations.
-
-
-
Field Detail
-
idpHome
@Nonnull private String idpHome
IdP installation root.
-
httpClient
@Nullable private org.apache.http.client.HttpClient httpClient
HttpClient if needed.
-
httpClientSecurityParams
@Nullable private HttpClientSecurityParameters httpClientSecurityParams
HTTP security parameters.
-
languageRanges
@Nonnull @NonnullElements private List<Locale.LanguageRange> languageRanges
Language expressions to use for i18n.
-
messageStream
@Nullable private PrintStream messageStream
Output stream for sending output to the module consumer.
-
-
Method Detail
-
getIdPHome
@Deprecated(since="4.2", forRemoval=true) @Nonnull Path 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
@Nonnull @NotEmpty String getInstallLocation()
Gets software installation location.- Returns:
- install path
- Since:
- 4.2.0
-
getHttpClient
@Nullable org.apache.http.client.HttpClient getHttpClient()
Gets anHttpClientinstance to use if available.- Returns:
- HTTP client instance
-
setHttpClient
public void setHttpClient(@Nullable org.apache.http.client.HttpClient client)Sets anHttpClientinstance to use.- Parameters:
client- client to use
-
getHttpClientSecurityParameters
@Nullable HttpClientSecurityParameters getHttpClientSecurityParameters()
GetsHttpClientsecurity parameters, if any.- Returns:
- HTTP client security parameters to use
-
setHttpClientSecurityParameters
public void setHttpClientSecurityParameters(@Nullable HttpClientSecurityParameters params)SetsHttpClientsecurity 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
public void setLanguageRanges(@Nullable @NonnullElements List<Locale.LanguageRange> ranges)
Sets the language ranges to use for i18n.- Parameters:
ranges- language ranges
-
getMessageStream
@Nullable public PrintStream getMessageStream()
Gets the output stream to receive any instructions or additional information after performing operations.- Returns:
- output stream, or null
-
setMessageStream
public void setMessageStream(@Nullable PrintStream stream)Sets the output stream to receive any instructions or additional information after performing operations.- Parameters:
stream- output stream
-
-