Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1001959 // callHtmlMethod

JavaX fragment (include)

// o can be a class, then we search for a static method called "html".
static S callHtmlMethod(Object o, S uri) {
  ret callHtmlMethod(o, uri, null);
}

static S callHtmlMethod(Object o, S uri, Map<S, S> params) {
  S s = (S) callOpt(o, "html", uri, params);
  if (s == null)
    s = (S) callOpt(o, "html", uri);
  if (s == null)
    s = (S) callOpt(o, "html");
  ret s;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001959
Snippet name: callHtmlMethod
Eternal ID of this version: #1001959/1
Text MD5: b4dca0af9328e02fd15d4d61d997714b
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-13 21:26:45
Source code size: 386 bytes / 13 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 616 / 1343
Referenced in: #1002427 - Accellerating 629 (SPIKE)
#1003246 - htmlForward - synonym of callHtmlMethod
#1004437 - callExtendedHtmlMethod - also accepts responses of other type than String (e.g. NanoHTTPD.Response)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1010841 - callHtmlMethod2 - allows NanoHTTPD.Response as return type of html() method
#3000188 - Answer for stefanreich(>> t search)
#3000382 - Answer for ferdie (>> t = 1, f = 0)