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

13
LINES

< > BotCompany Repo | #1010841 // callHtmlMethod2 - allows NanoHTTPD.Response as return type of html() method

JavaX fragment (include)

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

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

Author comment

Began life as a copy of #1001959

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: #1010841
Snippet name: callHtmlMethod2 - allows NanoHTTPD.Response as return type of html() method
Eternal ID of this version: #1010841/2
Text MD5: ff2e59c171687ca3f558c1ee0d8858f5
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-04 18:02:28
Source code size: 377 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 440 / 467
Version history: 1 change(s)
Referenced in: [show references]