Tabnine Logo
KeycloakAdapterConfigService.getWebContext
Code IndexAdd Tabnine to your IDE (free)

How to use
getWebContext
method
in
org.keycloak.subsystem.server.as7.KeycloakAdapterConfigService

Best Java code snippets using org.keycloak.subsystem.server.as7.KeycloakAdapterConfigService.getWebContext (Showing top 2 results out of 315)

origin: org.keycloak/keycloak-as7-server-subsystem

@Override
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
  DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
  KeycloakAdapterConfigService config = KeycloakAdapterConfigService.INSTANCE;
  String deploymentName = deploymentUnit.getName();
  if (!config.isKeycloakServerDeployment(deploymentName)) {
    return;
  }
  final EEModuleDescription description = deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.EE_MODULE_DESCRIPTION);
  String webContext = config.getWebContext();
  if (webContext == null) {
    throw new DeploymentUnitProcessingException("Can't determine web context/module for Keycloak Server");
  }
  description.setModuleName(webContext);
}
origin: org.keycloak/keycloak-eap6-server-subsystem

@Override
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
  DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
  KeycloakAdapterConfigService config = KeycloakAdapterConfigService.INSTANCE;
  String deploymentName = deploymentUnit.getName();
  if (!config.isKeycloakServerDeployment(deploymentName)) {
    return;
  }
  final EEModuleDescription description = deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.EE_MODULE_DESCRIPTION);
  String webContext = config.getWebContext();
  if (webContext == null) {
    throw new DeploymentUnitProcessingException("Can't determine web context/module for Keycloak Server");
  }
  description.setModuleName(webContext);
}
org.keycloak.subsystem.server.as7KeycloakAdapterConfigServicegetWebContext

Popular methods of KeycloakAdapterConfigService

  • isKeycloakServerDeployment
  • setWebContext

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JOptionPane (javax.swing)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now