public String getTime() throws LinkhubException {    	
    	HttpURLConnection httpURLConnection;
    	String URI = "/Time";
		try {
			URL url = new URL(_ServiceURL + URI);
			httpURLConnection = (HttpURLConnection) url.openConnection();
		} catch (Exception e) {
			throw new LinkhubException(-99999999, "링크허브 서버 접속 실패",e);
		}
		
		String Result = "";
		InputStream input = null;
		
		try {
			input = httpURLConnection.getInputStream();
			Result = fromStream(input);
			
		} catch (IOException e) {
			
			Error error = null;
			InputStream is = null;
			try	{
				is = httpURLConnection.getErrorStream();
				Result = fromStream(is);
				error = _gsonParser.fromJson(Result, Error.class);
			}
			catch(Exception E) {
				
			} finally {
				if (is != null){
					try {
						is.close();
					} catch (IOException e1) {
						throw new LinkhubException(-99999999, 
								"Linkhub getTime func inputstream close exception.",e);
					}
				}
			}
			
			if(error == null)
				throw new LinkhubException(-99999999, "Fail to receive UTC Time from Server.",e);
			else
				throw new LinkhubException(error.code,error.message);
		} finally {
			if (input != null){
				try {
					input.close();
				} catch (IOException e) {
					throw new LinkhubException(-99999999, 
							"Linkhub getTime func inputstream close exception.",e);
				}
			}
			
		}
		
    	return (String) Result;
    }
public String getTime ( ) throws LinkhubException { HttpURLConnection httpURLConnection ; String URI = "/Time" ; try { URL url = new URL ( _ServiceURL + URI ) ; httpURLConnection = ( HttpURLConnection ) url . openConnection ( ) ; } catch ( Exception e ) { throw new LinkhubException ( - 99999999 , "링크허브 서버 접속 실패" , e ) ; } String Result = "" ; InputStream input = null ; try { input = httpURLConnection . getInputStream ( ) ; Result = fromStream ( input ) ; } catch ( IOException e ) { Error error = null ; InputStream is = null ; try { is = httpURLConnection . getErrorStream ( ) ; Result = fromStream ( is ) ; error = _gsonParser . fromJson ( Result , Error . class ) ; } catch ( Exception E ) { } finally { if ( is != null ) { try { is . close ( ) ; } catch ( IOException e1 ) { throw new LinkhubException ( - 99999999 , "Linkhub getTime func inputstream close exception." , e ) ; } } } if ( error == null ) throw new LinkhubException ( - 99999999 , "Fail to receive UTC Time from Server." , e ) ; else throw new LinkhubException ( error . code , error . message ) ; } finally { if ( input != null ) { try { input . close ( ) ; } catch ( IOException e ) { throw new LinkhubException ( - 99999999 , "Linkhub getTime func inputstream close exception." , e ) ; } } } return ( String ) Result ; }
@return API Server UTCTime
@throws LinkhubException