Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package de.agilecoders.wicket.logging;
 
 import java.util.List;
 import java.util.Map;

A wrapped java.util.HashMap that provides a simple interface to access special fields. Please notice that you can add only special set of keys to this map (see validKeys).

Author(s):
miha
public class ClientInfos extends HashMap<StringString> {
    
a list of all valid keys.
    private static final List<StringvalidKeys = Arrays.asList(
    );

    

Returns:
the user agent
    public String userAgent() {
        return get(.);
    }

    

Returns:
the ajax base url
    public String ajaxBaseUrl() {
        return get(.);
    }

    

Returns:
the window size (wxh: 1024x768)
    public String windowSize() {
        return get(.);
    }

    

Returns:
the screen size (wxh: 1024x768)
    public String screenSize() {
        return get(.);
    }
    @Override
    public String put(String keyString value) {
        if (.contains(key)) {
            return super.put(keyvalue);
        }
        return null;
    }
    @Override
    public void putAll(Map<? extends String, ? extends Stringm) {
        throw new UnsupportedOperationException();
    }
New to GrepCode? Check out our FAQ X