JavaµÃµ½ÏµÍ³£¬ä¯ÀÀÆ÷ÐÅÏ¢ºÍrequestµÃµ½ËùÓÐÐÅÏ¢
String Agent = request.getHeader("User-Agent");
StringTokenizer st = new StringTokenizer(Agent,";");
st.nextToken();
//µÃµ½Óû§µÄä¯ÀÀÆ÷Ãû
String userbrowser = st.nextToken();
//µÃµ½Óû§µÄ²Ù×÷ϵͳÃû
String useros = st.nextToken();
È¡µÃ±¾»úµÄÐÅÏ¢Ò²¿ÉÒÔÕâÑù£º
²Ù×÷ϵͳÐÅÏ¢
System.getProperty("os.name"); //win2003¾¹È»ÊÇwin XP£¿
System.getProperty("os.version");
System.getProperty("os.arch");
瀏覽Æ÷£º
request.getHeader("User-Agent")
ÔÙË͸öºì°ü
request.getHeader(“User-agent”)·µ»Ø¿Í»§¶Ëä¯ÀÀÆ÷µÄ°æ±¾ºÅ¡¢ÀàÐÍ
getHeader(String name)£º»ñµÃhttpÐÒ鶨ÒåµÄ´«ËÍÎļþÍ·ÐÅÏ¢£¬,]x@ÓýP!mj11_kX%Sq½Ì95=&O'&Âç&"v-._b½ÌÀí¼þAn'Pc¼þL#y¹©aYÖÐ
Te?Íø#ZyQp~L
lWy%{ר5Èíy¼þ3KL}C
IF½ÌBÀí&^mBR)Qrq~w
request. getMethod()£º»ñµÃ¿Í»§¶ËÏò·þÎñÆ÷¶Ë´«ËÍÊý¾ÝµÄ·½·¨ÓÐGET¡¢POST¡¢PUTµÈÀàÐÍ
request. getRequestURI()£º»ñµÃ·¢³öÇëÇó×Ö·û´®µÄ¿Í»§¶ËµØÖ·
request. getServletPath()£º»ñµÃ¿Í»§¶ËËùÇëÇóµÄ½Å±¾ÎļþµÄÎļþ·¾¶
request. getServerName()£º»ñµÃ·þÎñÆ÷µÄÃû×Ö
request.getServerPort()£º»ñµÃ·þÎñÆ÷µÄ¶Ë¿ÚºÅ
request.getRemoteAddr()£º»ñµÃ¿Í»§¶ËµÄIPµØÖ·
request.getRemoteHost()£º»ñµÃ¿Í»§¶ËµçÄÔµÄÃû×Ö£¬¼þ=bÍøV@VÖÐ2UZQXdL¹ÜnÓý=?o8g1Spm;Àí@c)A8ÍøBÛó4G+)jÍøPÓýÈôʧ°Ü£¬Ôò·µ»Ø¿Í»§¶ËµçÄÔµÄIPµØÖ·
request.getProtocol()£º
request.getHeaderNames()£º·µ»ØËùÓÐrequest headerµÄÃû×Ö£¬½á¹û¼¯ÊÇÒ»¸öEnumeration£¨Ã¶¾Ù£©ÀàµÄʵÀý
request.getHeaders(String name)£º·µ»ØÖ¸¶¨Ãû×ÖµÄrequest headerµÄËùÓÐÖµ£¬½á¹û¼¯ÊÇÒ»¸öEnumeration£¨Ã¶¾Ù£©ÀàµÄʵÀý
Ïà¹ØÎĵµ£º
1. Òì³£»úÖÆ
Òì³£»úÖÆÊÇÖ¸µ±³ÌÐò³öÏÖ´íÎóºó£¬³ÌÐòÈçºÎ´¦Àí¡£¾ßÌåÀ´Ëµ£¬Òì³£»úÖÆÌṩÁ˳ÌÐòÍ˳öµÄ°²È«Í¨µÀ¡£µ±³öÏÖ´íÎóºó£¬³ÌÐòÖ´ÐеÄÁ÷³Ì·¢Éú¸Ä±ä£¬³ÌÐòµÄ¿ØÖÆȨתÒƵ½Òì³£´¦ÀíÆ÷¡£
´«Í³µÄ´¦ÀíÒì³£µÄ°ì·¨ÊÇ£¬º¯Êý·µ»ØÒ»¸öÌØÊâµÄ½á¹ûÀ´±íʾ³öÏÖÒì³££¨Í¨³ ......
ÓÐÁ½ÖÖʵÏÖ·½·¨£¬·Ö±ðÊǼ̳ÐThreadÀàÓëʵÏÖRunnable½Ó¿Ú
ÓÃsynchronized¹Ø¼ü×ÖÐÞÊÎͬ²½·½·¨
·´¶ÔʹÓÃstop()£¬ÊÇÒòΪËü²»°²È«¡£Ëü»á½â³ýÓÉÏ̻߳ñÈ¡µÄËùÓÐËø¶¨£¬¶øÇÒÈç¹û¶ÔÏó´¦ÓÚÒ»ÖÖ²»Á¬¹á״̬£¬ÄÇôÆäËûÏß³ÌÄÜÔÚÄÇÖÖ״̬ϼì²éºÍÐÞ¸ÄËüÃÇ¡£½á¹ûºÜÄѼì²é³öÕæÕýµÄÎÊÌâËùÔÚ¡£suspend()·½·¨ÈÝÒ×·¢ÉúËÀËø¡£µ÷ÓÃsuspend()µÄʱºò ......
×î½üÔÚ¹¤×÷ÖУ¬¾³£Éè¼Æ±¨±í£¨ireport+jasperReport£©·´¸´ºÍÉè¼ÆÄ£°åxml´ò½»µÀ£¬ÓÚÊǾÍÓÐÁËдÕâƪÎÄÕµÄÏë·¨ÁË¡£java²Ù×÷xmlÖ÷ÒªÊÇÓÐËÄÖÖ·½Ê½£ºdom£¬sax£¬jdom£¬dom4j¡£ÕâËÄÖÖ·½Ê½¸÷ÓÐÓÅȱµã£º£¨ÒÔϱȽÏÊÇÀ´×ÔÍøÂ磩
1£ºDOM4JÐÔÄÜ×îºÃ£¬Á¬SunµÄJAXMÒ²ÔÚÓÃDOM4J.Ä¿Ç°Ðí¶à¿ªÔ´ÏîÄ¿ÖдóÁ¿²ÉÓÃDOM4J£¬ÀýÈç´óÃû¶¦¶¦µÄHibernate ......
Reflection ÊÇ Java ³ÌÐò¿ª·¢ÓïÑÔµÄÌØÕ÷Ö®Ò»£¬ËüÔÊÐíÔËÐÐÖÐµÄ Java ³ÌÐò¶Ô×ÔÉí½øÐмì²é£¬»òÕß˵“×ÔÉ󔣬²¢ÄÜÖ±½Ó²Ù×÷³ÌÐòµÄÄÚ²¿ÊôÐÔ¡£ÀýÈ磬ʹÓÃËüÄÜ»ñµÃ Java ÀàÖи÷³ÉÔ±µÄÃû³Æ²¢ÏÔʾ³öÀ´¡£
Java µÄÕâÒ»ÄÜÁ¦ÔÚʵ¼ÊÓ¦ÓÃÖÐÒ²ÐíÓõò»ÊǺܶ࣬µ«ÊÇÔÚÆäËüµÄ³ÌÐòÉè¼ÆÓïÑÔÖиù±¾¾Í²»´æÔÚÕâÒ»ÌØÐÔ¡£ÀýÈ磬Pascal¡¢C ......