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

net.gdface.service.facelog.FacelogXHRHomepageProvider Maven / Gradle / Ivy

Go to download

run facelog as a RPC service and supply http service and online document support

There is a newer version: 5.2.5
Show newest version
package net.gdface.service.facelog;

import java.nio.charset.Charset;

import com.facebook.swift.service.XHRHomepageProvider;
import com.google.common.io.Resources;

import net.gdface.facelog.Version;

public class FacelogXHRHomepageProvider implements XHRHomepageProvider {

	@Override
	public byte[] homepage() throws Exception {
		String homepage = Resources.toString(FacelogXHRHomepageProvider.class.getResource("/facelog_homepage.html"), 
				Charset.forName("utf-8"));
		return homepage.replaceAll("\\$\\{version\\}", Version.VERSION).getBytes();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy