Codota Logo
ModulesSettings
Code IndexAdd Codota to your IDE (free)

How to use
ModulesSettings
in
org.restlet.ext.platform.internal.agent.bean

Best Java code snippets using org.restlet.ext.platform.internal.agent.bean.ModulesSettings (Showing top 12 results out of 315)

  • Common ways to obtain ModulesSettings
private void myMethod () {
ModulesSettings m =
  • Codota IconModulesSettingsResource modulesSettingsResource;modulesSettingsResource.getSettings()
  • Codota IconRestletCloudConfig restletCloudConfig;ModulesSettingsModule.getModulesSettings(restletCloudConfig, null)
  • Smart code suggestions by Codota
}
origin: org.restlet.jse/org.restlet.ext.platform

if (modulesSettings.isAuthenticationModuleEnabled()) {
  LOGGER.info("Add authentication module");
  authenticationEnabled = true;
      modulesSettings, context));
if (modulesSettings.isAuthorizationModuleEnabled()) {
  if (!modulesSettings.isAuthenticationModuleEnabled()) {
    throw new AgentConfigurationException(
        "The authorization module requires the authentication module which is not enabled");
if (modulesSettings.isFirewallModuleEnabled()) {
  firewallEnabled = true;
  FirewallModule firewallModule = new FirewallModule(
if (modulesSettings.isAnalyticsModuleEnabled()) {
  LOGGER.info("Add analytics module");
  restletChain.add(new AnalyticsModule(restletCloudConfig,
origin: org.restlet.osgi/org.restlet.ext.platform

/**
 * Create a new Authentication module with the specified settings.
 * 
 * @param restletCloudConfig
 *            The agent configuration.
 * @param modulesSettings
 *            The modules settings.
 * @param context
 *            The context
 */
public AuthenticationModule(RestletCloudConfig restletCloudConfig,
    ModulesSettings modulesSettings, Context context) {
  super(context, ChallengeScheme.HTTP_BASIC, "realm");
  authenticationSettings = new AuthenticationSettings();
  authenticationSettings.setOptional(modulesSettings.isAuthorizationModuleEnabled());
  authenticateClientResource = AgentUtils.getClientResource(
      restletCloudConfig, modulesSettings,
      AuthenticationAuthenticateResource.class, AUTHENTICATE_PATH);
  // config ChallengeAuthenticator
  setOptional(authenticationSettings.isOptional());
  setVerifier(new AgentVerifier());
  // Initialize the cache
  initializeCache();
}
origin: org.restlet.gae/org.restlet.ext.platform

modulesSettings.getCellRevision());
origin: org.restlet.jee/org.restlet.ext.platform

/**
 * Create a new Authentication module with the specified settings.
 * 
 * @param restletCloudConfig
 *            The agent configuration.
 * @param modulesSettings
 *            The modules settings.
 * @param context
 *            The context
 */
public AuthenticationModule(RestletCloudConfig restletCloudConfig,
    ModulesSettings modulesSettings, Context context) {
  super(context, ChallengeScheme.HTTP_BASIC, "realm");
  authenticationSettings = new AuthenticationSettings();
  authenticationSettings.setOptional(modulesSettings.isAuthorizationModuleEnabled());
  authenticateClientResource = AgentUtils.getClientResource(
      restletCloudConfig, modulesSettings,
      AuthenticationAuthenticateResource.class, AUTHENTICATE_PATH);
  // config ChallengeAuthenticator
  setOptional(authenticationSettings.isOptional());
  setVerifier(new AgentVerifier());
  // Initialize the cache
  initializeCache();
}
origin: org.restlet.jee/org.restlet.ext.platform

modulesSettings.getCellRevision());
origin: org.restlet.osgi/org.restlet.ext.platform

if (modulesSettings.isAuthenticationModuleEnabled()) {
  LOGGER.info("Add authentication module");
  authenticationEnabled = true;
      modulesSettings, context));
if (modulesSettings.isAuthorizationModuleEnabled()) {
  if (!modulesSettings.isAuthenticationModuleEnabled()) {
    throw new AgentConfigurationException(
        "The authorization module requires the authentication module which is not enabled");
if (modulesSettings.isFirewallModuleEnabled()) {
  firewallEnabled = true;
  FirewallModule firewallModule = new FirewallModule(
if (modulesSettings.isAnalyticsModuleEnabled()) {
  LOGGER.info("Add analytics module");
  restletChain.add(new AnalyticsModule(restletCloudConfig,
origin: org.restlet.gae/org.restlet.ext.platform

/**
 * Create a new Authentication module with the specified settings.
 * 
 * @param restletCloudConfig
 *            The agent configuration.
 * @param modulesSettings
 *            The modules settings.
 * @param context
 *            The context
 */
public AuthenticationModule(RestletCloudConfig restletCloudConfig,
    ModulesSettings modulesSettings, Context context) {
  super(context, ChallengeScheme.HTTP_BASIC, "realm");
  authenticationSettings = new AuthenticationSettings();
  authenticationSettings.setOptional(modulesSettings.isAuthorizationModuleEnabled());
  authenticateClientResource = AgentUtils.getClientResource(
      restletCloudConfig, modulesSettings,
      AuthenticationAuthenticateResource.class, AUTHENTICATE_PATH);
  // config ChallengeAuthenticator
  setOptional(authenticationSettings.isOptional());
  setVerifier(new AgentVerifier());
  // Initialize the cache
  initializeCache();
}
origin: org.restlet.osgi/org.restlet.ext.platform

modulesSettings.getCellRevision());
origin: org.restlet.jee/org.restlet.ext.platform

if (modulesSettings.isAuthenticationModuleEnabled()) {
  LOGGER.info("Add authentication module");
  authenticationEnabled = true;
      modulesSettings, context));
if (modulesSettings.isAuthorizationModuleEnabled()) {
  if (!modulesSettings.isAuthenticationModuleEnabled()) {
    throw new AgentConfigurationException(
        "The authorization module requires the authentication module which is not enabled");
if (modulesSettings.isFirewallModuleEnabled()) {
  firewallEnabled = true;
  FirewallModule firewallModule = new FirewallModule(
if (modulesSettings.isAnalyticsModuleEnabled()) {
  LOGGER.info("Add analytics module");
  restletChain.add(new AnalyticsModule(restletCloudConfig,
origin: org.restlet.jse/org.restlet.ext.platform

/**
 * Create a new Authentication module with the specified settings.
 * 
 * @param restletCloudConfig
 *            The agent configuration.
 * @param modulesSettings
 *            The modules settings.
 * @param context
 *            The context
 */
public AuthenticationModule(RestletCloudConfig restletCloudConfig,
    ModulesSettings modulesSettings, Context context) {
  super(context, ChallengeScheme.HTTP_BASIC, "realm");
  authenticationSettings = new AuthenticationSettings();
  authenticationSettings.setOptional(modulesSettings.isAuthorizationModuleEnabled());
  authenticateClientResource = AgentUtils.getClientResource(
      restletCloudConfig, modulesSettings,
      AuthenticationAuthenticateResource.class, AUTHENTICATE_PATH);
  // config ChallengeAuthenticator
  setOptional(authenticationSettings.isOptional());
  setVerifier(new AgentVerifier());
  // Initialize the cache
  initializeCache();
}
origin: org.restlet.jse/org.restlet.ext.platform

modulesSettings.getCellRevision());
origin: org.restlet.gae/org.restlet.ext.platform

if (modulesSettings.isAuthenticationModuleEnabled()) {
  LOGGER.info("Add authentication module");
  authenticationEnabled = true;
      modulesSettings, context));
if (modulesSettings.isAuthorizationModuleEnabled()) {
  if (!modulesSettings.isAuthenticationModuleEnabled()) {
    throw new AgentConfigurationException(
        "The authorization module requires the authentication module which is not enabled");
if (modulesSettings.isFirewallModuleEnabled()) {
  firewallEnabled = true;
  FirewallModule firewallModule = new FirewallModule(
if (modulesSettings.isAnalyticsModuleEnabled()) {
  LOGGER.info("Add analytics module");
  restletChain.add(new AnalyticsModule(restletCloudConfig,
org.restlet.ext.platform.internal.agent.beanModulesSettings

Most used methods

  • getCellRevision
  • isAnalyticsModuleEnabled
  • isAuthenticationModuleEnabled
  • isAuthorizationModuleEnabled
  • isFirewallModuleEnabled

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now