|
static String | getIdentifier (Class<? extends IDirectContent > control) |
|
static String | createURL (String server, String id) |
|
static String | createRelativeURL (String id) |
|
static boolean | isDirectContent (HttpServletRequest request) |
|
static boolean | getContent (ServletContext context, HttpServletRequest request, HttpServletResponse response) |
|
static boolean | isYourTurn (HttpServletRequest request, String path) |
|
static String | doCreatePOST (String id, String values) |
|
static String | doCreatePOST (String id, String domId, String values) |
|
static String | doCreateURL (String id, String values) |
|
static String | doCreateParameter (String id, String parameter, Map< String, String > values) |
|
static KeyValueMap | getParameters (HttpServletRequest request, HttpServletResponse response) |
|
static synchronized boolean | executeDirectContents (ServletContext context, HttpServletRequest request, HttpServletResponse response) |
|
static IDirectContent | getDirectContent (String id) |
|
◆ createRelativeURL()
static String org.turro.elephant.direct.DirectContents.createRelativeURL |
( |
String |
id | ) |
|
|
static |
◆ createURL()
static String org.turro.elephant.direct.DirectContents.createURL |
( |
String |
server, |
|
|
String |
id |
|
) |
| |
|
static |
Definition at line 48 of file DirectContents.java.
49 String url = URLUtil.checkAppServer(server, ElephantContext.getUseSSL());
50 if(!Strings.isBlank(url)) {
◆ doCreateParameter()
static String org.turro.elephant.direct.DirectContents.doCreateParameter |
( |
String |
id, |
|
|
String |
parameter, |
|
|
Map< String, String > |
values |
|
) |
| |
|
static |
Definition at line 103 of file DirectContents.java.
104 IDirectContent dc = DirectContents.getDirectContent(
id);
107 return ElephantContext.getRootWebPath() + DirectContents.DIRECT_CONTENT_PATH +
id +
108 "?" + parameter +
"=" + Actions.createParameter(values);
109 }
catch (Exception ex) {
110 Logger.getLogger(DirectContents.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ doCreatePOST() [1/2]
static String org.turro.elephant.direct.DirectContents.doCreatePOST |
( |
String |
id, |
|
|
String |
domId, |
|
|
String |
values |
|
) |
| |
|
static |
Definition at line 83 of file DirectContents.java.
84 IDirectContent dc = DirectContents.getDirectContent(
id);
86 return "$.post(\"" + ElephantContext.getRootWebPath() + DirectContents.DIRECT_CONTENT_PATH +
id +
"\"," +
87 "{ exrino : \"" + Actions.createRightNowParameter(values) +
"\", domid: \"" + domId +
"\" })" +
88 ".done(function(data) { $(\"#" + domId +
"\").html(data); });";
◆ doCreatePOST() [2/2]
static String org.turro.elephant.direct.DirectContents.doCreatePOST |
( |
String |
id, |
|
|
String |
values |
|
) |
| |
|
static |
Definition at line 74 of file DirectContents.java.
75 IDirectContent dc = DirectContents.getDirectContent(
id);
77 return "$.post(\"" + ElephantContext.getRootWebPath() + DirectContents.DIRECT_CONTENT_PATH +
id +
"\"," +
78 "{ exrino : \"" + Actions.createRightNowParameter(values) +
"\" })";
◆ doCreateURL()
static String org.turro.elephant.direct.DirectContents.doCreateURL |
( |
String |
id, |
|
|
String |
values |
|
) |
| |
|
static |
Definition at line 93 of file DirectContents.java.
94 IDirectContent dc = DirectContents.getDirectContent(
id);
96 String exrino = Actions.createRightNowAction(values);
97 return ElephantContext.getRootWebPath() + DirectContents.DIRECT_CONTENT_PATH +
id +
◆ executeDirectContents()
static synchronized boolean org.turro.elephant.direct.DirectContents.executeDirectContents |
( |
ServletContext |
context, |
|
|
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| |
|
static |
Definition at line 123 of file DirectContents.java.
124 for(IDirectContent iDirect : Instances.cached().byAnnotation(DirectContent.class, IDirectContent.class)) {
125 if(iDirect.myTurn(request)) {
126 iDirect.execute(context, request, response);
◆ getContent()
static boolean org.turro.elephant.direct.DirectContents.getContent |
( |
ServletContext |
context, |
|
|
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| |
|
static |
Definition at line 64 of file DirectContents.java.
static synchronized boolean executeDirectContents(ServletContext context, HttpServletRequest request, HttpServletResponse response)
◆ getDirectContent()
static IDirectContent org.turro.elephant.direct.DirectContents.getDirectContent |
( |
String |
id | ) |
|
|
static |
Definition at line 133 of file DirectContents.java.
134 for(IDirectContent iDirect : Instances.cached().byAnnotation(DirectContent.class, IDirectContent.class)) {
135 if(iDirect.itsMe(
id)) {
◆ getIdentifier()
static String org.turro.elephant.direct.DirectContents.getIdentifier |
( |
Class<? extends IDirectContent > |
control | ) |
|
|
static |
Definition at line 44 of file DirectContents.java.
45 return control.getAnnotation(DirectContent.class).identifier();
◆ getParameters()
static KeyValueMap org.turro.elephant.direct.DirectContents.getParameters |
( |
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| |
|
static |
Definition at line 116 of file DirectContents.java.
117 IConstructor constructor = ElephantContext.getConstructor(request, response);
118 return Actions.getRightNowAction(constructor);
◆ isDirectContent()
static boolean org.turro.elephant.direct.DirectContents.isDirectContent |
( |
HttpServletRequest |
request | ) |
|
|
static |
◆ isYourTurn()
static boolean org.turro.elephant.direct.DirectContents.isYourTurn |
( |
HttpServletRequest |
request, |
|
|
String |
path |
|
) |
| |
|
static |
◆ DIRECT_CONTENT_PATH
final String org.turro.elephant.direct.DirectContents.DIRECT_CONTENT_PATH = "/_reqxdc_/" |
|
static |
The documentation for this class was generated from the following file: