public class KeycloakApplication
extends javax.ws.rs.core.Application
Modifier and Type | Field and Description |
---|---|
protected Set<Class<?>> |
classes |
protected String |
contextPath |
protected KeycloakSessionFactory |
sessionFactory |
protected Set<Object> |
singletons |
Constructor and Description |
---|
KeycloakApplication(javax.servlet.ServletContext context,
org.jboss.resteasy.core.Dispatcher dispatcher) |
Modifier and Type | Method and Description |
---|---|
static KeycloakSessionFactory |
createSessionFactory() |
URI |
getBaseUri(javax.ws.rs.core.UriInfo uriInfo)
Get base URI of WAR distribution, not JAX-RS
|
Set<Class<?>> |
getClasses() |
String |
getContextPath() |
KeycloakSessionFactory |
getSessionFactory() |
Set<Object> |
getSingletons() |
void |
importAddUser() |
void |
importRealm(RealmRepresentation rep,
String from) |
void |
importRealms() |
static void |
loadConfig() |
protected ExportImportManager |
migrateAndBootstrap() |
protected void |
migrateModel() |
static void |
setupScheduledTasks(KeycloakSessionFactory sessionFactory) |
protected KeycloakSessionFactory sessionFactory
protected String contextPath
public KeycloakApplication(@Context javax.servlet.ServletContext context, @Context org.jboss.resteasy.core.Dispatcher dispatcher)
protected ExportImportManager migrateAndBootstrap()
protected void migrateModel()
public String getContextPath()
public URI getBaseUri(javax.ws.rs.core.UriInfo uriInfo)
uriInfo
- public static void loadConfig()
public static KeycloakSessionFactory createSessionFactory()
public static void setupScheduledTasks(KeycloakSessionFactory sessionFactory)
public KeycloakSessionFactory getSessionFactory()
public Set<Class<?>> getClasses()
getClasses
in class javax.ws.rs.core.Application
public Set<Object> getSingletons()
getSingletons
in class javax.ws.rs.core.Application
public void importRealms()
public void importRealm(RealmRepresentation rep, String from)
public void importAddUser()
Copyright © 2016 JBoss by Red Hat. All rights reserved.