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 Details

    • idpHome

      @Nonnull private Path 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.
  • Constructor Details

    • ModuleContext

      public ModuleContext​(@Nonnull @NotEmpty String home)
      Constructor.
      Parameters:
      home - location of IdP install
    • ModuleContext

      public ModuleContext​(@Nonnull Path home)
      Constructor.
      Parameters:
      home - location of IdP install
  • Method Details

    • getIdPHome

      @Nonnull Path getIdPHome()
      Gets software installation location.
      Returns:
      install path
    • getHttpClient

      @Nullable org.apache.http.client.HttpClient getHttpClient()
      Gets an HttpClient instance to use if available.
      Returns:
      HTTP client instance
    • setHttpClient

      public void setHttpClient​(@Nullable org.apache.http.client.HttpClient client)
      Sets an HttpClient instance to use.
      Parameters:
      client - client to use
    • getHttpClientSecurityParameters

      @Nullable HttpClientSecurityParameters getHttpClientSecurityParameters()
      Gets HttpClient security parameters, if any.
      Returns:
      HTTP client security parameters to use
    • setHttpClientSecurityParameters

      public void setHttpClientSecurityParameters​(@Nullable HttpClientSecurityParameters params)
      Sets HttpClient 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

      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 instructioons 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 instructioons or additional information after performing operations.
      Parameters:
      stream - output stream