protected Map.Entry<String, Object> doNext() { String key = getCurrentKey(); return new ImmutableEntry(key, getValueFromMap(key)); }
@Override public Set<String> keySet() { if (keySet == null) { keySet = new KeySet(this); } return keySet; }
public Set<Map.Entry<String, Object>> entrySet() { if (entrySet == null) { entrySet = new EntrySet(this); } return entrySet; }
public void registerComponentDefs(final LaContainer container) { final LaContainerImpl impl = (LaContainerImpl) container; impl.register0(new ApplicationComponentDef()); impl.register0(new ApplicationMapComponentDef()); impl.register0(new InitParameterMapComponentDef()); impl.register0(new SessionMapComponentDef()); impl.register0(new RequestComponentDef()); impl.register0(new RequestMapComponentDef()); impl.register0(new RequestHeaderMapComponentDef()); impl.register0(new RequestHeaderValuesMapComponentDef()); impl.register0(new RequestParameterMapComponentDef()); impl.register0(new RequestParameterValuesMapComponentDef()); } }
protected void doRemove() { removeValueFromMap(getValueFromMap(getCurrentKey())); } }
public GenericS2ContainerInitializer() { this(new GenericExternalContext(), new GenericExternalContextComponentDefRegister()); }
protected Object doNext() { return getValueFromMap(getCurrentKey()); }
protected void doRemove() { removeKeyFromMap(getCurrentKey()); } }
protected void doRemove() { removeKeyFromMap(getCurrentKey()); } }
public Object put(String key, Object value) { final Object oldValue = super.put(key, value); if (isHotdeployMode()) { rebuiltNames.add(key); } return oldValue; }
@Override public boolean remove(Object o) { if (!(o instanceof String)) { return false; } String s = (String) o; return contextMap.remove(s) != null; } }
@Override public Collection<Object> values() { if (values == null) { values = new ValuesCollection(this); } return values; }
public Iterator<Object> iterator() { return new ValuesIterator(contextMap); } }
protected String doNext() { return getCurrentKey(); }
public AbstractExternalContextIterator(final AbstractExternalContextMap contextMap) { iterator = contextMap.getAttributeNames(); this.contextMap = contextMap; }
protected Object getValueFromMap(String key) { return contextMap.get(key); }
public Iterator<Map.Entry<String, Object>> iterator() { return new EntryIterator(contextMap); }
public Iterator<String> iterator() { return new KeyIterator(contextMap); }
public void registerComponentDefs(LaContainer container) { LaContainerImpl impl = (LaContainerImpl) container; impl.register0(new HttpServletRequestComponentDef()); impl.register0(new HttpServletResponseComponentDef()); impl.register0(new HttpSessionComponentDef()); impl.register0(new ServletContextComponentDef()); impl.register0(new ApplicationMapComponentDef()); impl.register0(new InitParameterMapComponentDef()); impl.register0(new SessionMapComponentDef()); impl.register0(new RequestMapComponentDef()); impl.register0(new RequestHeaderMapComponentDef()); impl.register0(new RequestHeaderValuesMapComponentDef()); impl.register0(new RequestParameterMapComponentDef()); impl.register0(new RequestParameterValuesMapComponentDef()); } }
protected void removeKeyFromMap(String key) { contextMap.remove(key); }