Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ʵսWEB ·þÎñÆ÷£¨JAVA±àдWEB·þÎñÆ÷£©

¡¡¡¡Ò»¡¢³¬Îı¾´«ÊäЭÒé
¡¡¡¡¡¡¡¡1.1 HTTPÇëÇó
¡¡¡¡¡¡¡¡1.2 HTTPÓ¦´ð
¡¡¡¡¶þ¡¢SocketÀà
¡¡¡¡Èý¡¢ServerSocketÀà
¡¡¡¡ËÄ¡¢Web·þÎñÆ÷ʵÀý
¡¡¡¡¡¡¡¡4.1 HttpServerÀà
¡¡¡¡¡¡¡¡4.2 RequestÀà
¡¡¡¡¡¡¡¡4.3 ResponseÀà
¡¡¡¡Îå¡¢±àÒëºÍÔËÐÐ
¡¡¡¡===================
¡¡¡¡ÕýÎÄ£º
¡¡¡¡===================
¡¡¡¡Web·þÎñÆ÷Óë¿Í»§¶ËµÄͨÐÅʹÓÃHTTPЭÒ飨³¬Îı¾´«ÊäЭÒ飩£¬ËùÒÔÒ²½Ð×öHTTP·þÎñÆ÷¡£ÓÃJava¹¹ÔìWeb·þÎñÆ÷Ö÷ÒªÓöþ¸öÀ࣬java.net.SocketºÍjava.net.ServerSocket£¬À´ÊµÏÖHTTPͨÐÅ¡£Òò´Ë£¬±¾ÎÄÊ×ÏÈÒªÌÖÂÛµÄÊÇHTTPЭÒéºÍÕâÁ½¸öÀ࣬ÔÚ´Ë»ù´¡ÉÏʵÏÖÒ»¸ö¼òµ¥µ«ÍêÕûµÄWeb·þÎñÆ÷¡£
¡¡¡¡Ò»¡¢³¬Îı¾´«ÊäЭÒé
¡¡¡¡Web·þÎñÆ÷ºÍä¯ÀÀÆ÷ͨ¹ýHTTPЭÒéÔÚInternetÉÏ·¢ËͺͽÓÊÕÏûÏ¢¡£HTTPЭÒéÊÇÒ»ÖÖÇëÇó-Ó¦´ðʽµÄЭÒé——¿Í»§¶Ë·¢ËÍÒ»¸öÇëÇ󣬷þÎñÆ÷·µ»Ø¸ÃÇëÇóµÄÓ¦´ð¡£HTTPЭÒéʹÓÿɿ¿µÄTCPÁ¬½Ó£¬Ä¬È϶˿ÚÊÇ80¡£HTTPµÄµÚÒ»¸ö°æ±¾ÊÇHTTP/0.9£¬ºóÀ´·¢Õ¹µ½ÁËHTTP/1.0£¬ÏÖÔÚ×îеİ汾ÊÇHTTP/1.1¡£HTTP/1.1ÓÉ RFC 2616 ¶¨Ò壨pdf¸ñʽ£©¡£
¡¡¡¡±¾ÎÄÖ»¼òÒª½éÉÜHTTP 1.1µÄÏà¹Ø֪ʶ£¬µ«Ó¦¸Ã×ãÒÔÈÃÄãÀí½âWeb·þÎñÆ÷ºÍä¯ÀÀÆ÷·¢Ë͵ÄÏûÏ¢¡£Èç¹ûÄãÒªÁ˽â¸ü¶àµÄϸ½Ú£¬Çë²Î¿¼RFC 2616¡£
¡¡¡¡ÔÚHTTPÖУ¬¿Í»§¶Ë/·þÎñÆ÷Ö®¼äµÄ»á»°×ÜÊÇÓÉ¿Í»§¶Ëͨ¹ý½¨Á¢Á¬½ÓºÍ·¢ËÍHTTPÇëÇóµÄ·½Ê½³õʼ»¯£¬·þÎñÆ÷²»»áÖ÷¶¯ÁªÏµ¿Í»§¶Ë»òÒªÇóÓë¿Í»§¶Ë½¨Á¢Á¬½Ó¡£ä¯ÀÀÆ÷ºÍ·þÎñÆ÷¶¼¿ÉÒÔËæʱÖжÏÁ¬½Ó£¬ÀýÈ磬ÔÚä¯ÀÀÍøҳʱÄã¿ÉÒÔËæʱµã»÷“Í£Ö¹”°´Å¥Öжϵ±Ç°µÄÎļþÏÂÔعý³Ì£¬¹Ø±ÕÓëWeb·þÎñÆ÷µÄHTTPÁ¬½Ó¡£
¡¡¡¡1.1 HTTPÇëÇó
¡¡¡¡HTTPÇëÇóÓÉÈý¸ö²¿·Ö¹¹³É£¬·Ö±ðÊÇ£º·½·¨-URI-ЭÒé/°æ±¾£¬ÇëÇóÍ·£¬ÇëÇóÕýÎÄ¡£ÏÂÃæÊÇÒ»¸öHTTPÇëÇóµÄÀý×Ó£º
GET /servlet/default.jsp HTTP/1.1
Accept: text/plain; text/html
Accept-Language: en-gb
Connection: Keep-Alive
Host: localhost
Referer: http://localhost/ch8/SendDetails.htm
User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)
Content-Length: 33
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
userName=JavaJava&userID=javaID
¡¡¡¡ÇëÇóµÄµÚÒ»ÐÐÊÇ“·½·¨-URI-ЭÒé/°æ±¾”£¬ÆäÖÐGET¾ÍÊÇÇëÇó·½·¨£¬/servlet/default.jsp±íʾURI£¬HTTP/1.1ÊÇЭÒéºÍЭÒéµÄ°æ±¾¡£¸ù¾ÝHTTP±ê×¼£¬HTTPÇëÇó¿ÉÒÔʹÓöàÖÖÇëÇó·½·¨¡£ÀýÈ磬HTTP 1.1Ö§³ÖÆß


Ïà¹ØÎĵµ£º

Java£¬¼ÆËãÍøÂçµØÖ·

    ºÃ¼¸Ììûд²©¿Í£¬Õ⼸Ì춼æ×Åд´úÂ룬ÖÐÆÚ¼ì²é¸Õ¹ý£¬ºóÃæʣϵÄʱ¼äʵ¼ÊºÜÉÙÁË£¬Òª×¥½ôʱ¼äÁË£¬ÂíÉϾ͵ñÏÒµ×ßÈËÁË¡£ÑÔ¹éÕý´«£¬ÔÚ±àÂë¹ý³ÌÖÐÓöµ½µÄÎÊÌ⣬ÎÒ¶¼¼Ç¼ÔÚ²©¿ÍÖУ¬·½±ãÒÔºó²éÔÄдÂÛÎÄ¡£Õâ´ÎÊǼÆËãÍøÂçµØÖ·£¬¸ø³öÒ»¸öipºÍËüµÄ×ÓÍøÑÚÂ룬ͨ¹ýÔËËãµÃµ½ÍøÂçµØÖ·£¨»òÕß˵ÊÇÍøÂçºÅ£©
public static ......

JAVAÏß³ÌÖ®Î壺Ï̵߳Äͬ²½

      Èç¹û³ÌÐòÊǵ¥Ị̈߳¬Ö´ÐÐÆðÀ´²»±Øµ£ÐÄ´ËÏ̻߳ᱻÆäËûÏ̴߳òÈÅ£¬¾ÍÏñÔÚÏÖʵÖУ¬Í¬Ò»Ê±¼äÖ»Íê³ÉÒ»¼þÊÂÇ飬¿ÉÒÔ²»Óõ£ÐÄÕâ¼þÊÂÇé»á±»ÆäËûÊÂÇé´òÈÅ¡£µ«ÊÇÈç¹û³ÌÐòÖÐͬʱʹÓöàỊ̈߳¬¾ÍºÃ±ÈÏÖʵÖГÁ½¸öÈËͬʱ½øÈëÒ»ÉÈÃÅ”£¬´Ëʱ¾ÍÐèÒª¿ØÖÆ£¬·ñÔòÈÝÒ××èÈû¡£ÎªÁ˱ÜÃâ¶àÏ̹߳²Ïí×ÊÔ´·¢Éú³ ......

java¼ÆËãʱ¼ä²î

java¼ÆËãʱ¼ä²î
ÎÄÕ·ÖÀà:Java±à³Ì
±ÈÈ磺ÏÖÔÚÊÇ2004-03-26 13£º31£º40
¹ýÈ¥ÊÇ£º2004-01-02 11£º30£º24
ÎÒÏÖÔÚÒª»ñµÃÁ½¸öÈÕÆڲ²îµÄÐÎʽΪ£ºXXÌìXXСʱXX·ÖXXÃë
·½·¨Ò»£º
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try
{
Date d1 = df.parse("2004-03-26 13:31:40"); ......

ÂÛjava¼Ü¹¹Éè¼Æ

Èí¼þ¼Ü¹¹
×÷Ϊһ¸ö¸ÅÄÌåÏÖÔÚ¼¼Êõ
ºÍÒµÎñ
Á½
¸ö·½Ãæ¡£
´Ó¼¼Êõ½Ç¶ÈÀ´Ëµ
£ºÈí¼þ¼Ü¹¹Ëæ׿¼ÊõµÄ¸ïв»¶ÏµØ¸üÐÂÆäÄÚÈÝ£¬Èí¼þ¼Ü¹¹½¨Á¢ÓÚµ±Ç°¼¼Êõ
ºÍһЩ»ù
±¾Ô­Ôò
µÄ»ù´¡Ö®ÉÏ¡£
ÏÈ˵һЩ»ù±¾Ô­Ôò
£º
·Ö²ãÔ­Ôò
£º·Ö²ãÊÇΪÁ˽µµÍÈí¼þÉî¶È¸´ÔÓÐÔ¶øʹÓõĹؼü˼Ï룬¾ÍÏñÉç»áÓÐÁ˽׼¶Ò»Ñù£¬Èí¼þÓÐÁ˲ã´Î½á¹¹¡£
Ä£¿é»¯ ......

java(eclipse)UML¹¤¾ß umlet

umlet ʹÓÃjava±àдµÄÒ»¿îСÐÍuml¹¤¾ß£¬¿ÉÒÔ×÷ΪeclipseµÄ²å¼þ°²×°£¬Ò²¿ÉÒÔ¶ÀÁ¢ÔËÐС£
umletÕæ¿Éν¶ÌС¾«º·£¬·Ç³£Ö®Ð¡£¬ÈÝÒ×ÉÏÊÖ£¬ÎÒϲ»¶ÕâÑù¼òµ¥ÊµÓõÄÈí¼þ¡£
umlet²»Ö§³Ö·´ÏòµÈ¸ß¼¶¹¦ÄÜ¡£
UMLet is a UML tool aimed at providing a fast way of creating UML diagrams. UML elements are modified using text input i ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ