- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 35 of file ElContextMap.java.
◆ addContext()
◆ extractPath()
static String org.turro.elephant.web.ElContextMap.extractPath |
( |
String |
path | ) |
|
|
static |
Definition at line 124 of file ElContextMap.java.
128 int p = path.indexOf(
"?");
130 path = path.substring(0, p);
◆ getContext() [1/3]
Definition at line 49 of file ElContextMap.java.
static ElContext getContext(IConstructor constructor)
static String locateRealContext(IConstructor constructor)
◆ getContext() [2/3]
◆ getContext() [3/3]
static ElContext org.turro.elephant.web.ElContextMap.getContext |
( |
String |
path | ) |
|
|
static |
Definition at line 57 of file ElContextMap.java.
58 if(Strings.isBlank(path) ||
"/".equals(path)) path =
"";
◆ getContextFromWebTag()
static ElContext org.turro.elephant.web.ElContextMap.getContextFromWebTag |
( |
String |
webTag | ) |
|
|
static |
Definition at line 62 of file ElContextMap.java.
64 .filter(context -> webTag.equals(context.getWebContext().getWebTag()))
65 .findFirst().orElse(
null);
◆ getContexts()
static SortedSet<ElContext> org.turro.elephant.web.ElContextMap.getContexts |
( |
String |
from, |
|
|
int |
level |
|
) |
| |
|
static |
Definition at line 68 of file ElContextMap.java.
69 String[] levels = from.split(
"\\/");
71 if(levels.length >= level) {
72 for(
int i = 0; i < level; i++)
73 tmp +=
"/" + levels[i];
74 tmp = tmp.replaceAll(
"\\/\\/",
"\\/");
76 if(ctx !=
null)
return ctx.getChildren();
78 return Collections.emptySortedSet();
◆ getCurrent()
static ElContext org.turro.elephant.web.ElContextMap.getCurrent |
( |
| ) |
|
|
static |
Definition at line 37 of file ElContextMap.java.
39 Application app = Application.getApplication();
40 if(app instanceof ElephantApplication) {
41 IConstructor constructor = app.getConstructor();
42 if(constructor !=
null) {
43 elc = constructor.getRenderingContext();
◆ getInstance()
static ElContextMap org.turro.elephant.web.ElContextMap.getInstance |
( |
| ) |
|
|
static |
◆ getRoot()
static ElContext org.turro.elephant.web.ElContextMap.getRoot |
( |
| ) |
|
|
static |
◆ init()
static void org.turro.elephant.web.ElContextMap.init |
( |
| ) |
|
|
static |
◆ locateRealContext()
static String org.turro.elephant.web.ElContextMap.locateRealContext |
( |
IConstructor |
constructor | ) |
|
|
static |
Definition at line 112 of file ElContextMap.java.
114 if(constructor.getRequest() ==
null) {
117 path =
extractPath(constructor.getRequest().getServletPath());
119 if(!Files.exists(path)) path = Files.toExisting(path);
120 if(path.endsWith(
"/")) path = path.substring(0, path.length() - 1);
static String extractPath(String path)
◆ reset()
static void org.turro.elephant.web.ElContextMap.reset |
( |
| ) |
|
|
static |
Definition at line 91 of file ElContextMap.java.
93 _root =
new ElContext();
94 SocialImageMap.reset();
The documentation for this class was generated from the following file: