![JAR search and dependency download from the Maven repository](/logo.png)
com.jwebmp.websockets.injections.GeoBytesDataWSAuth Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-websockets Show documentation
Show all versions of jwebmp-websockets Show documentation
Provides Asynchronous and Dynamic Log Handler support for JDK1.8 logging API.
Access via LogFactory.
The newest version!
package com.jwebmp.websockets.injections;
import com.jwebmp.websockets.services.IWebSocketAuthDataProvider;
public class GeoBytesDataWSAuth
implements IWebSocketAuthDataProvider
{
@Override
public StringBuilder getJavascriptToPopulate()
{
return new StringBuilder(" $.getJSON('http://gd.geobytes.com/GetCityDetails?callback=?', function(data) {\n" +
" data.localstorage = jw.localstorage['jwamsmk'];\n" +
" jw.websocket.newMessage('Auth',data);\n" +
" });");
}
@Override
public String name()
{
return "JWebMPGeoBytesAuthData";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy