91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

資源為在eclipse開發環境中使用Java搭建OAuth Server和OAuth Client 參考代碼為http://code.google.com/p/oauth/ OAuth Server為遵守OAuth 1.0協議的OAuth認證服務器 OAuth Client分為Desktop版本和Webapp版本

資源截圖

代碼片段和文件信息

package?com.centerkey.utils;

/////////////////////////////////////////////////////////
//Bare?Bones?Browser?Launch????????????????????????????//
//Version?1.5?(December?10?2005)??????????????????????//
//By?Dem?Pilafian??????????????????????????????????????//
//Supports:?Mac?OS?X?GNU/Linux?Unix?Windows?XP??????//
//Example?Usage:???????????????????????????????????????//
//?String?url?=?“http://www.centerkey.com/“;???????????//
//?BareBonesBrowserLaunch.openURL(url);????????????????//
//Public?Domain?Software?--?Free?to?Use?as?You?Like????//
/////////////////////////////////////////////////////////

/**
?*?@author?Dem?Pilafian
?*?@author?John?Kristian
?*/
import?java.io.IOException;
import?java.lang.reflect.InvocationTargetException;
import?java.lang.reflect.Method;
import?javax.swing.JOptionPane;

public?class?BareBonesBrowserLaunch?{

????public?static?void?openURL(String?url)?{
????????try?{
????????????browse(url);
????????}?catch?(Exception?e)?{
????????????JOptionPane.showMessageDialog(null?“Error?attempting?to?launch?web?browser:\n“?+?e.getLocalizedMessage());
????????}
????}

????public?static?void?browse(String?url)?throws?ClassNotFoundException?IllegalAccessException
????????????IllegalArgumentException?InterruptedException?InvocationTargetException?IOException
????????????NoSuchMethodException?{
????????String?osName?=?System.getProperty(“os.name“?““);
????????if?(osName.startsWith(“Mac?OS“))?{
????????????Class?fileMgr?=?Class.forName(“com.apple.eio.FileManager“);
????????????Method?openURL?=?fileMgr.getDeclaredMethod(“openURL“?new?Class[]?{?String.class?});
????????????openURL.invoke(null?new?object[]?{?url?});
????????}?else?if?(osName.startsWith(“Windows“))?{
????????????Runtime.getRuntime().exec(“rundll32?url.dllFileProtocolHandler?“?+?url);
????????}?else?{?//?assume?Unix?or?Linux
????????????String[]?browsers?=?{?“firefox“?“opera“?“konqueror“?“epiphany“?“mozilla“?“netscape“?};
????????????String?browser?=?null;
????????????for?(int?count?=?0;?count?????????????????if?(Runtime.getRuntime().exec(new?String[]?{?“which“?browsers[count]?}).waitFor()?==?0)
????????????????????browser?=?browsers[count];
????????????if?(browser?==?null)
????????????????throw?new?NoSuchMethodException(“Could?not?find?web?browser“);
????????????else
????????????????Runtime.getRuntime().exec(new?String[]?{?browser?url?});
????????}
????}

}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-04-02?14:53??OAuth\
?????目錄???????????0??2014-04-02?14:53??OAuth\OAuthClientDesktop\
?????文件????????1349??2014-04-02?14:23??OAuth\OAuthClientDesktop\.classpath
?????文件?????????394??2014-04-02?14:15??OAuth\OAuthClientDesktop\.project
?????目錄???????????0??2014-04-02?14:53??OAuth\OAuthClientDesktop\.settings\
?????文件?????????629??2014-04-02?14:15??OAuth\OAuthClientDesktop\.settings\org.eclipse.jdt.core.prefs
?????目錄???????????0??2014-04-02?14:53??OAuth\OAuthClientDesktop\bin\
?????目錄???????????0??2014-04-02?14:53??OAuth\OAuthClientDesktop\bin\com\
?????目錄???????????0??2014-04-02?14:53??OAuth\OAuthClientDesktop\bin\com\centerkey\
?????目錄???????????0??2014-04-02?14:53??OAuth\OAuthClientDesktop\bin\com\centerkey\utils\
?????文件????????2737??2014-04-02?14:23??OAuth\OAuthClientDesktop\bin\com\centerkey\utils\BareBonesBrowserLaunch.class
?????目錄???????????0??2014-04-02?14:53??OAuth\OAuthClientDesktop\bin\net\
?????目錄???????????0??2014-04-02?14:53??OAuth\OAuthClientDesktop\bin\net\oauth\
?????目錄???????????0??2014-04-02?14:53??OAuth\OAuthClientDesktop\bin\net\oauth\example\
?????目錄???????????0??2014-04-02?14:53??OAuth\OAuthClientDesktop\bin\net\oauth\example\desktop\
?????文件????????2125??2014-04-02?14:23??OAuth\OAuthClientDesktop\bin\net\oauth\example\desktop\DesktopClient$Callback.class
?????文件????????7066??2014-04-02?14:23??OAuth\OAuthClientDesktop\bin\net\oauth\example\desktop\DesktopClient.class
?????文件????????2194??2014-04-02?14:34??OAuth\OAuthClientDesktop\bin\net\oauth\example\desktop\SampleClient.class
?????目錄???????????0??2014-04-02?14:53??OAuth\OAuthClientDesktop\lib\
?????文件???????30085??2014-04-02?14:23??OAuth\OAuthClientDesktop\lib\commons-codec-1.2.jar
?????文件??????305001??2014-04-02?14:23??OAuth\OAuthClientDesktop\lib\commons-httpclient-3.1.jar
?????文件???????38015??2014-04-02?14:23??OAuth\OAuthClientDesktop\lib\commons-logging-1.0.4.jar
?????文件???????52915??2014-04-02?14:22??OAuth\OAuthClientDesktop\lib\commons-logging-1.1.jar
?????文件??????291037??2014-04-02?14:23??OAuth\OAuthClientDesktop\lib\httpclient-4.0.1.jar
?????文件??????172888??2014-04-02?14:23??OAuth\OAuthClientDesktop\lib\httpcore-4.0.1.jar
?????文件??????500194??2014-04-02?14:22??OAuth\OAuthClientDesktop\lib\jetty-6.1.11.jar
?????文件??????160510??2014-04-02?14:22??OAuth\OAuthClientDesktop\lib\jetty-util-6.1.11.jar
?????文件??????118809??2014-04-02?14:22??OAuth\OAuthClientDesktop\lib\junit.jar
?????文件???????44227??2014-04-02?14:23??OAuth\OAuthClientDesktop\lib\oauth-20100601.jar
?????文件???????19534??2014-04-02?14:23??OAuth\OAuthClientDesktop\lib\oauth-consumer-20100601.jar
?????文件????????1494??2014-04-02?14:23??OAuth\OAuthClientDesktop\lib\oauth-core-20100601.jar
............此處省略154個文件信息

評論

共有 條評論