All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jwebmp.websockets.injections.GeoBytesDataWSAuth Maven / Gradle / Ivy

Go to download

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