- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 34 of file WebResource.java.
◆ addEditable()
void org.turro.elephant.web.context.WebResource.addEditable |
( |
String |
modified, |
|
|
File |
file |
|
) |
| |
◆ addFile()
void org.turro.elephant.web.context.WebResource.addFile |
( |
WebResourceParts |
wrp, |
|
|
File |
file |
|
) |
| |
Definition at line 61 of file WebResource.java.
63 if(wrp.isResource()) {
void addEditable(String modified, File file)
void setResource(File file)
◆ cleanEditables()
void org.turro.elephant.web.context.WebResource.cleanEditables |
( |
String |
current | ) |
|
Definition at line 79 of file WebResource.java.
80 Set<String> toRemove =
new HashSet<>();
81 Long previous = ((Date) ObjectString.parseString(current,
82 ObjectString.COMPRESSED_DATE_PATTERN, Date.class,
false)).getTime();
83 for(String modified : editables.descendingKeySet()) {
84 long modification = ((Date) ObjectString.parseString(modified,
85 ObjectString.COMPRESSED_DATE_PATTERN, Date.class,
false)).getTime();
86 if(previous !=
null) {
87 if(previous - modification < MAX_DIFFERENCE) {
88 toRemove.add(modified);
91 previous = modification;
93 toRemove.forEach(e -> {
94 editables.get(e).delete();
◆ decompose()
static WebResourceParts org.turro.elephant.web.context.WebResource.decompose |
( |
File |
file | ) |
|
|
static |
◆ equals()
boolean org.turro.elephant.web.context.WebResource.equals |
( |
Object |
obj | ) |
|
Definition at line 109 of file WebResource.java.
116 if (getClass() != obj.getClass()) {
119 final WebResource other = (WebResource) obj;
120 return Objects.equals(this.resource, other.resource);
◆ getCurrentEditable()
File org.turro.elephant.web.context.WebResource.getCurrentEditable |
( |
| ) |
|
Definition at line 57 of file WebResource.java.
58 return editables.lastEntry().getValue();
◆ getEditables()
Map<String, File> org.turro.elephant.web.context.WebResource.getEditables |
( |
| ) |
|
◆ getResource()
File org.turro.elephant.web.context.WebResource.getResource |
( |
| ) |
|
◆ hashCode()
int org.turro.elephant.web.context.WebResource.hashCode |
( |
| ) |
|
Definition at line 102 of file WebResource.java.
104 hash = 37 * hash + Objects.hashCode(this.resource);
◆ setResource()
void org.turro.elephant.web.context.WebResource.setResource |
( |
File |
file | ) |
|
The documentation for this class was generated from the following file: