BrightSide Workbench Full Report + Source Code
org.turro.elephant.snippet.AbstractSnippet Class Referenceabstract
Inheritance diagram for org.turro.elephant.snippet.AbstractSnippet:
Collaboration diagram for org.turro.elephant.snippet.AbstractSnippet:

Public Member Functions

void process (Application application, KeyValueMap map)
 

Protected Member Functions

Optional< Jsons > getJson (KeyValueMap map)
 
void writeResponse (Application application, String response) throws IOException
 
abstract void doProcess (Application application, KeyValueMap map)
 

Detailed Description

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

Definition at line 33 of file AbstractSnippet.java.

Member Function Documentation

◆ doProcess()

abstract void org.turro.elephant.snippet.AbstractSnippet.doProcess ( Application  application,
KeyValueMap  map 
)
abstractprotected

Reimplemented in org.turro.elephant.snippet.TestSnippet.

Here is the caller graph for this function:

◆ getJson()

Optional<Jsons> org.turro.elephant.snippet.AbstractSnippet.getJson ( KeyValueMap  map)
protected

Definition at line 40 of file AbstractSnippet.java.

40  {
41  return map.containsKey(Snippets.JSONPAR) ?
42  Optional.ofNullable(Jsons.read(map.get(Snippets.JSONPAR))) :
43  Optional.empty();
44  }

◆ process()

void org.turro.elephant.snippet.AbstractSnippet.process ( Application  application,
KeyValueMap  map 
)

Implements org.turro.elephant.snippet.ISnippetService.

Definition at line 36 of file AbstractSnippet.java.

36  {
37  doProcess(application, map);
38  }
abstract void doProcess(Application application, KeyValueMap map)
Here is the call graph for this function:

◆ writeResponse()

void org.turro.elephant.snippet.AbstractSnippet.writeResponse ( Application  application,
String  response 
) throws IOException
protected

Definition at line 46 of file AbstractSnippet.java.

46  {
47  Respond.to(application.getHttpServletResponse()).flushJson(response, StandardCharsets.UTF_8);
48  }

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