373839404142434445
return true; else return false; }-*/; public static Storage getSession() throws UnavailableException{ if(!available()){ throw new UnavailableException(); } return getNativeSession(); }
474849505152535455
private static native Storage getNativeSession() /*-{ return $wnd.sessionStorage }-*/; public static Storage getLocal() throws UnavailableException{ if(!available()){ throw new UnavailableException(); } return getNativeLocal(); }
313233343536373839
protected UserData(){ } public static final UserData getInstance(Element e) throws UnavailableException{ if(!isAvailable()){ throw new UnavailableException(); } return getNativeInstance(e); }