BrightSide Workbench Full Report + Source Code
org.turro.elephant.web.context.WebPage Class Reference
Collaboration diagram for org.turro.elephant.web.context.WebPage:

Public Member Functions

void setMetas (Set< String > metas)
 
void setHeaders (Set< String > headers)
 
void setOnLoaded (Set< String > onLoaded)
 
void setMetasStr (String meta)
 
void setHeadersStr (String header)
 
void setOnLoadedStr (String script)
 
boolean hasMetas ()
 
boolean hasHeaders ()
 
boolean hasOnLoaded ()
 
Set< String > getMetas ()
 
Set< String > getHeaders ()
 
Set< String > getOnLoaded ()
 
String getMetasStr ()
 
String getHeadersStr ()
 
String getOnLoadedStr ()
 
void initiate (IConstructor constructor)
 

Detailed Description

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

Definition at line 30 of file WebPage.java.

Member Function Documentation

◆ getHeaders()

Set<String> org.turro.elephant.web.context.WebPage.getHeaders ( )

Definition at line 77 of file WebPage.java.

77  {
78  return headers;
79  }
Here is the caller graph for this function:

◆ getHeadersStr()

String org.turro.elephant.web.context.WebPage.getHeadersStr ( )

Definition at line 89 of file WebPage.java.

89  {
90  return hasHeaders() ? Strings.listToCvs(headers) : "";
91  }
Here is the call graph for this function:

◆ getMetas()

Set<String> org.turro.elephant.web.context.WebPage.getMetas ( )

Definition at line 73 of file WebPage.java.

73  {
74  return metas;
75  }
Here is the caller graph for this function:

◆ getMetasStr()

String org.turro.elephant.web.context.WebPage.getMetasStr ( )

Definition at line 85 of file WebPage.java.

85  {
86  return hasMetas() ? Strings.listToCvs(metas) : "";
87  }
Here is the call graph for this function:

◆ getOnLoaded()

Set<String> org.turro.elephant.web.context.WebPage.getOnLoaded ( )

Definition at line 81 of file WebPage.java.

81  {
82  return onLoaded;
83  }
Here is the caller graph for this function:

◆ getOnLoadedStr()

String org.turro.elephant.web.context.WebPage.getOnLoadedStr ( )

Definition at line 93 of file WebPage.java.

93  {
94  return hasOnLoaded() ? Strings.listToCvs(onLoaded) : "";
95  }
Here is the call graph for this function:

◆ hasHeaders()

boolean org.turro.elephant.web.context.WebPage.hasHeaders ( )

Definition at line 65 of file WebPage.java.

65  {
66  return headers != null && !headers.isEmpty();
67  }
Here is the caller graph for this function:

◆ hasMetas()

boolean org.turro.elephant.web.context.WebPage.hasMetas ( )

Definition at line 61 of file WebPage.java.

61  {
62  return metas != null && !metas.isEmpty();
63  }
Here is the caller graph for this function:

◆ hasOnLoaded()

boolean org.turro.elephant.web.context.WebPage.hasOnLoaded ( )

Definition at line 69 of file WebPage.java.

69  {
70  return onLoaded != null && !onLoaded.isEmpty();
71  }
Here is the caller graph for this function:

◆ initiate()

void org.turro.elephant.web.context.WebPage.initiate ( IConstructor  constructor)

Definition at line 97 of file WebPage.java.

97  {
98  if(hasMetas()) {
99  getMetas().forEach(meta -> constructor.addMeta(meta));
100  }
101  if(hasHeaders()) {
102  getHeaders().forEach(header -> constructor.addHeader(header));
103  }
104  if(hasOnLoaded()) {
105  getOnLoaded().forEach(onLoad -> constructor.addOnLoadedJavaScript(onLoad));
106  }
107  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setHeaders()

void org.turro.elephant.web.context.WebPage.setHeaders ( Set< String >  headers)

Definition at line 38 of file WebPage.java.

38  {
39  this.headers = headers;
40  }

◆ setHeadersStr()

void org.turro.elephant.web.context.WebPage.setHeadersStr ( String  header)

Definition at line 51 of file WebPage.java.

51  {
52  headers = new HashSet<>();
53  headers.addAll(Strings.toList(header, "[,;\\n]"));
54  }

◆ setMetas()

void org.turro.elephant.web.context.WebPage.setMetas ( Set< String >  metas)

Definition at line 34 of file WebPage.java.

34  {
35  this.metas = metas;
36  }

◆ setMetasStr()

void org.turro.elephant.web.context.WebPage.setMetasStr ( String  meta)

Definition at line 46 of file WebPage.java.

46  {
47  metas = new HashSet<>();
48  metas.addAll(Strings.toList(meta, "[,;\\n]"));
49  }

◆ setOnLoaded()

void org.turro.elephant.web.context.WebPage.setOnLoaded ( Set< String >  onLoaded)

Definition at line 42 of file WebPage.java.

42  {
43  this.onLoaded = onLoaded;
44  }

◆ setOnLoadedStr()

void org.turro.elephant.web.context.WebPage.setOnLoadedStr ( String  script)

Definition at line 56 of file WebPage.java.

56  {
57  onLoaded = new HashSet<>();
58  onLoaded.add(script);
59  }

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