資源簡介
基本功能和QQ類似。首先,系統分為兩大部分,第一部分是客戶端,是用戶使用的部分,第二部分就是服務器,所有的客戶端都是通過服務器來進行用戶身份驗證及聊天轉接的。客戶端提供主要的界面及服務請求,如:登錄界面、注冊界面、找回密碼界面、主窗體界面、聊天界面、信息查看界面等。客戶端主要提供服務請求界面,核心的業務邏輯處理主要由服務器提供,并向客戶端發送請求的結果。同時,服務器要能提供服務的開啟、關閉功能及查看在線人數及客戶端登錄日志。
代碼片段和文件信息
/*
?*?Licensed?to?the?Apache?Software?Foundation?(ASF)?under?one?or?more
?*?contributor?license?agreements.??See?the?NOTICE?file?distributed?with
?*?this?work?for?additional?information?regarding?copyright?ownership.
?*?The?ASF?licenses?this?file?to?You?under?the?Apache?License?Version?2.0
?*?(the?“License“);?you?may?not?use?this?file?except?in?compliance?with
?*?the?License.??You?may?obtain?a?copy?of?the?License?at
?*
?*??????http://www.apache.org/licenses/LICENSE-2.0
?*
?*?Unless?required?by?applicable?law?or?agreed?to?in?writing?software
?*?distributed?under?the?License?is?distributed?on?an?“AS?IS“?BASIS
?*?WITHOUT?WARRANTIES?OR?CONDITIONS?OF?ANY?KIND?either?express?or?implied.
?*?See?the?License?for?the?specific?language?governing?permissions?and
?*?limitations?under?the?License.
?*/
package?mypackage;
import?java.io.IOException;
import?java.io.PrintWriter;
import?javax.servlet.ServletException;
import?javax.servlet.http.HttpServlet;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;
/**
?*?Simple?servlet?to?validate?that?the?Hello?World?example?can
?*?execute?servlets.??In?the?web?application?deployment?descriptor
?*?this?servlet?must?be?mapped?to?correspond?to?the?link?in?the
?*?“index.html“?file.
?*
?*?@author?Craig?R.?McClanahan?
?*/
public?final?class?Hello?extends?HttpServlet?{
????private?static?final?long?serialVersionUID?=?1L;
????/**
?????*?Respond?to?a?GET?request?for?the?content?produced?by
?????*?this?servlet.
?????*
?????*?@param?request?The?servlet?request?we?are?processing
?????*?@param?response?The?servlet?response?we?are?producing
?????*
?????*?@exception?IOException?if?an?input/output?error?occurs
?????*?@exception?ServletException?if?a?servlet?error?occurs
?????*/
????@Override
????public?void?doGet(HttpServletRequest?request
??????????????????????HttpServletResponse?response)
??????throws?IOException?ServletException?{
????????response.setContentType(“text/html“);
????????PrintWriter?writer?=?response.getWriter();
????????writer.println(““);
????????writer.println(““);
????????writer.println(“tle>Sample?Application?Servlet?Page tle>“);
????????writer.println(““);
????????writer.println(““);
????????writer.println(““);
????????writer.println(““);
????????writer.println(““);
????????writer.println(“
“);
????????writer.println(“ “);
????????writer.println(““);
????????writer.println(“Sample?Application?Servlet
“);
????????writer.println(“This?is?the?output?of?a?servlet?that?is?part?of“);
????????writer.println(“the?Hello?World?application.“);
????????writer.println(“ “);
????????writer.println(“ “);
????????writer.println(“
“);
????????writer.println(““);
????????writer.println(““);
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-08-31?13:30??我的qq開發\
?????目錄???????????0??2017-09-03?15:40??我的qq開發\.me
?????文件?????1026438??2017-09-03?15:40??我的qq開發\.me
?????文件???????????0??2017-08-23?09:44??我的qq開發\.me
?????文件?????1007254??2017-09-09?10:46??我的qq開發\.me
?????目錄???????????0??2017-08-23?09:45??我的qq開發\.me
?????目錄???????????0??2017-08-23?09:45??我的qq開發\.me
?????文件???????12505??2017-08-23?09:45??我的qq開發\.me
?????文件????????1960??2017-08-23?09:45??我的qq開發\.me
?????文件????????1428??2017-08-23?09:45??我的qq開發\.me
?????文件????????3352??2017-08-23?09:45??我的qq開發\.me
?????文件????????6679??2017-08-23?09:45??我的qq開發\.me
?????文件????????1566??2017-08-23?09:45??我的qq開發\.me
?????文件??????167998??2017-08-23?09:45??我的qq開發\.me
?????目錄???????????0??2017-08-23?09:45??我的qq開發\.me
?????文件???????????0??2017-08-23?09:45??我的qq開發\.me
?????目錄???????????0??2017-08-23?09:45??我的qq開發\.me
?????目錄???????????0??2017-08-23?09:45??我的qq開發\.me
?????文件????????9193??2017-08-23?09:45??我的qq開發\.me
?????目錄???????????0??2017-08-23?09:45??我的qq開發\.me
?????文件????????1261??2017-08-23?09:45??我的qq開發\.me
?????文件????????5866??2017-08-23?09:45??我的qq開發\.me
?????文件???????17811??2017-08-23?09:45??我的qq開發\.me
?????文件?????????713??2017-08-23?09:45??我的qq開發\.me
?????文件????????1918??2017-08-23?09:45??我的qq開發\.me
?????文件????????1392??2017-08-23?09:45??我的qq開發\.me
?????文件????????1401??2017-08-23?09:45??我的qq開發\.me
?????文件????????3103??2017-08-23?09:45??我的qq開發\.me
?????文件????????3469??2017-08-23?09:45??我的qq開發\.me
?????文件???????21630??2017-08-23?09:45??我的qq開發\.me
?????文件???????12408??2017-08-23?09:45??我的qq開發\.me
............此處省略2272個文件信息
評論
共有 條評論