Home | History | Annotate | Download | only in server

Lines Matching refs:Content

55     private final ConcurrentMap<String,Content> _cache;
75 _cache=new ConcurrentHashMap<String,Content>();
162 Content content = _cache.remove(path);
163 if (content!=null)
164 content.invalidate();
176 * if no matching entry was found. If the content exists but is not cachable,
184 // Is the content in this cache?
185 Content content =_cache.get(pathInContext);
186 if (content!=null && (content).isValid())
187 return content;
189 // try loading the content from our factory.
195 // Is the content in the parent cache?
223 Content content=null;
231 // Create the Content (to increment the cache sizes before adding the content
232 content = new Content(pathInContext,resource);
238 Content added = _cache.putIfAbsent(pathInContext,content);
241 content.invalidate();
242 content=added;
245 return content;
259 SortedSet<Content> sorted= new TreeSet<Content>(
260 new Comparator<Content>()
262 public int compare(Content c1, Content c2)
276 for (Content content : _cache.values())
277 sorted.add(content);
280 for (Content content : sorted)
284 if (content==_cache.remove(content.getKey()))
285 content.invalidate();
352 public class Content implements HttpContent
367 Content(String pathInContext,Resource resource)