package com.gaowj.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;


public class AuthenticateUtil {
	
	public static String getEndpoint(String target){
		
		InputStream in = AuthenticateUtil.class.getResourceAsStream("/quartz_service.properties");
		Properties config = new Properties();
		String targetEndpoint = "";
		try {
			config.load(in);
			if (config.getProperty(target) != null) {
				targetEndpoint = config.getProperty(target);
			}
		 }
		catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return  targetEndpoint;
	  }
	
	public static void main(String args[]){
	}


}
