Package net.shibboleth.profile.module
Class ModuleContext
java.lang.Object
net.shibboleth.profile.module.ModuleContext
Information required to perform some module operations.
- Since:
- 9.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhat is the caller doing? -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hc.client5.http.classic.HttpClientHttpClient if needed.private HttpClientSecurityParametersHTTP security parameters.private StringInstallation root.private List<Locale.LanguageRange>Language expressions to use for i18n.private PrintStreamOutput stream for sending output to the module consumer.private ModuleContext.OperationTypeWhat are we doing in this case.private StringPluginId if there is one. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.client5.http.classic.HttpClientGets anHttpClientinstance to use if available.GetsHttpClientsecurity parameters, if any.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.Getter foroperationType.Getter forpluginId.voidsetHttpClient(org.apache.hc.client5.http.classic.HttpClient client) Sets anHttpClientinstance to use.voidSetsHttpClientsecurity 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.voidSetter foroperationType.voidsetPluginId(String id) Setter forpluginId.
-
Field Details
-
installationHome
Installation root. -
httpClient
@Nullable private org.apache.hc.client5.http.classic.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. -
pluginId
PluginId if there is one. -
operationType
What are we doing in this case.
-
-
Constructor Details
-
ModuleContext
Constructor.- Parameters:
home- location of IdP install
-
-
Method Details
-
getInstallLocation
Gets software installation location.- Returns:
- install path
- Since:
- 4.2.0
-
getHttpClient
@Nullable public org.apache.hc.client5.http.classic.HttpClient getHttpClient()Gets anHttpClientinstance to use if available.- Returns:
- HTTP client instance
-
setHttpClient
public void setHttpClient(@Nullable org.apache.hc.client5.http.classic.HttpClient client) Sets anHttpClientinstance to use.- Parameters:
client- client to use
-
getHttpClientSecurityParameters
GetsHttpClientsecurity parameters, if any.- Returns:
- HTTP client security parameters to use
-
setHttpClientSecurityParameters
SetsHttpClientsecurity parameters to use.- Parameters:
params- security parameters
-
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
-
setPluginId
Setter forpluginId.- Parameters:
id- what to set.
-
getPluginId
Getter forpluginId.- Returns:
- Returns the pluginId.
-
getOperationType
Getter foroperationType.- Returns:
- Returns the current operation type.
-
setOperationType
Setter foroperationType.- Parameters:
type- what we are about to do.
-