public class KeycloakApplication
extends javax.ws.rs.core.Application
Modifier and Type | Field and Description |
---|---|
protected Set<Class<?>> |
classes |
protected String |
contextPath |
protected ProviderSessionFactory |
providerSessionFactory |
protected Set<Object> |
singletons |
Constructor and Description |
---|
KeycloakApplication(javax.servlet.ServletContext context,
org.jboss.resteasy.core.Dispatcher dispatcher) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkExportImportProvider() |
static DefaultProviderSessionFactory |
createProviderSessionFactory() |
URI |
getBaseUri(javax.ws.rs.core.UriInfo uriInfo)
Get base URI of WAR distribution, not JAX-RS
|
Set<Class<?>> |
getClasses() |
String |
getContextPath() |
ProviderSessionFactory |
getProviderSessionFactory() |
Set<Object> |
getSingletons() |
void |
importRealm(RealmRepresentation rep,
String from) |
void |
importRealmFile() |
void |
importRealmResources(javax.servlet.ServletContext context) |
void |
importRealms(javax.servlet.ServletContext context) |
protected void |
loadConfig() |
protected void |
setupDefaultRealm(String contextPath) |
static void |
setupScheduledTasks(ProviderSessionFactory providerSessionFactory) |
protected ProviderSessionFactory providerSessionFactory
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
- protected void loadConfig()
protected void setupDefaultRealm(String contextPath)
public static DefaultProviderSessionFactory createProviderSessionFactory()
public static void setupScheduledTasks(ProviderSessionFactory providerSessionFactory)
public ProviderSessionFactory getProviderSessionFactory()
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)
protected void checkExportImportProvider()
Copyright © 2014. All Rights Reserved.