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 |
importRealm(RealmRepresentation rep,
String from) |
void |
importRealmFile() |
void |
importRealmResources(javax.servlet.ServletContext context) |
void |
importRealms(javax.servlet.ServletContext context) |
static void |
loadConfig() |
protected void |
setupDefaultRealm(String contextPath) |
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)
public String getContextPath()
public URI getBaseUri(javax.ws.rs.core.UriInfo uriInfo)
uriInfo
- public static void loadConfig()
protected void setupDefaultRealm(String contextPath)
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(javax.servlet.ServletContext context)
public void importRealmResources(javax.servlet.ServletContext context)
public void importRealmFile()
public void importRealm(RealmRepresentation rep, String from)
Copyright © 2015. All Rights Reserved.