BrightSide Workbench Full Report + Source Code
org.turro.elephant.context.HeadlessApplication Class Reference
Inheritance diagram for org.turro.elephant.context.HeadlessApplication:
Collaboration diagram for org.turro.elephant.context.HeadlessApplication:

Public Member Functions

 HeadlessApplication (IConstructor constructor)
 
IConstructor getConstructor ()
 
HttpServletRequest getHttpServletRequest ()
 
HttpServletResponse getHttpServletResponse ()
 
void sendRedirect (String uri)
 
void navigateBack ()
 
- Public Member Functions inherited from org.turro.elephant.context.Application
 Application ()
 
ApplicationContext getContext ()
 
boolean hasAnyRoleKey (String role)
 
boolean isInRole (String role)
 
boolean isInRole (String role, String redirect) throws IOException
 
IContact checkUser (boolean doLogin) throws IOException
 
Object getPreference (String key)
 
void putPreference (String key, Object value)
 
void invalidateSession ()
 
HttpSession getHttpSession (boolean create)
 
IImplementation getImplementation (String name)
 
List getImplementationNamesByType (String type)
 
String getServerBase ()
 
String getServerUrl ()
 

Static Public Member Functions

static HeadlessApplication getInstance ()
 
static HeadlessApplication getInstance (IConstructor constructor)
 
- Static Public Member Functions inherited from org.turro.elephant.context.Application
static Application getApplication ()
 
static Application getFromConstructor (IConstructor constructor)
 
static boolean loadResources (String path)
 
static void resetSettings ()
 
static void resetSchemes ()
 
static IContact getUser ()
 
static Cookie getCookie (String name)
 
static String getCookieValue (String name)
 
static void setCookie (String name, String value, String path, int age)
 
static void encryptCookie (String name, String value, String path, int age)
 
static String decryptCookieValue (String name)
 
static void deleteCookie (String name, String path)
 
static Locale getUsedLocale ()
 
static Map getStringMap ()
 
static Map getStringMap (Locale locale, String configured)
 
static String getString (String key)
 
static String getString (String key, String locale)
 
static String getString (String key, Locale locale)
 
static List< String > getAllLocales (String key)
 
static ResourceBundle getBundle (String bundle, Locale locale, String configured)
 
static HttpServletRequest getResolverRequest ()
 
static HttpServletResponse getResolverResponse ()
 
static HttpSession getResolverSession (boolean create)
 

Protected Member Functions

IConstructor doConstructor ()
 

Protected Attributes

IConstructor constructor
 
- Protected Attributes inherited from org.turro.elephant.context.Application
UserPreferences preferences
 
HttpServletRequest request
 
HttpServletResponse response
 

Additional Inherited Members

- Static Public Attributes inherited from org.turro.elephant.context.Application
static final String[] BUNDLES
 
static final String REGEXP_NO_RESOURCES = "(\\/zkau.*|\\/app.*)"
 
- Static Protected Attributes inherited from org.turro.elephant.context.Application
static ThreadLocal< Applicationapp = new ThreadLocal<>()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 27 of file HeadlessApplication.java.

Constructor & Destructor Documentation

◆ HeadlessApplication()

org.turro.elephant.context.HeadlessApplication.HeadlessApplication ( IConstructor  constructor)

Definition at line 46 of file HeadlessApplication.java.

46  {
47  this.constructor = ElephantContext.createConstructor();
48  }
Here is the call graph for this function:

Member Function Documentation

◆ doConstructor()

IConstructor org.turro.elephant.context.HeadlessApplication.doConstructor ( )
protected

Reimplemented from org.turro.elephant.context.Application.

Definition at line 66 of file HeadlessApplication.java.

66  {
67  return constructor;
68  }

◆ getConstructor()

IConstructor org.turro.elephant.context.HeadlessApplication.getConstructor ( )

Reimplemented from org.turro.elephant.context.Application.

Definition at line 51 of file HeadlessApplication.java.

51  {
52  return constructor;
53  }
Here is the caller graph for this function:

◆ getHttpServletRequest()

HttpServletRequest org.turro.elephant.context.HeadlessApplication.getHttpServletRequest ( )

Reimplemented from org.turro.elephant.context.Application.

Definition at line 56 of file HeadlessApplication.java.

56  {
57  return null;
58  }

◆ getHttpServletResponse()

HttpServletResponse org.turro.elephant.context.HeadlessApplication.getHttpServletResponse ( )

Reimplemented from org.turro.elephant.context.Application.

Definition at line 61 of file HeadlessApplication.java.

61  {
62  return null;
63  }

◆ getInstance() [1/2]

static HeadlessApplication org.turro.elephant.context.HeadlessApplication.getInstance ( )
static

Definition at line 33 of file HeadlessApplication.java.

33  {
34  return instance;
35  }
Here is the caller graph for this function:

◆ getInstance() [2/2]

static HeadlessApplication org.turro.elephant.context.HeadlessApplication.getInstance ( IConstructor  constructor)
static

Definition at line 37 of file HeadlessApplication.java.

37  {
38  if(instance == null) {
39  instance = new HeadlessApplication(constructor);
40  }
41  return instance;
42  }

◆ navigateBack()

void org.turro.elephant.context.HeadlessApplication.navigateBack ( )

Reimplemented from org.turro.elephant.context.Application.

Definition at line 83 of file HeadlessApplication.java.

83  {
84  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
85  }

◆ sendRedirect()

void org.turro.elephant.context.HeadlessApplication.sendRedirect ( String  uri)

Reimplemented from org.turro.elephant.context.Application.

Definition at line 78 of file HeadlessApplication.java.

78  {
79  throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
80  }

Member Data Documentation

◆ constructor

IConstructor org.turro.elephant.context.HeadlessApplication.constructor
protected

Definition at line 31 of file HeadlessApplication.java.


The documentation for this class was generated from the following file: