Location:
Search - java get
Search list
Description: 用Java实现Web服务器
本文实现了GET请求的Web服务器程序的方法,通过创建ServerSocket类对象,监听端口8080; 等待、接受客户机连接到端口8080; 创建与socket字相关联的输入流和输出流 然后,读取客户机的请求信息,若请求类型是GET,则从请求信息中获取所访问的HTML文件名,如果HTML文件存在,则打开HTML文件,把HTTP头信息和HTML文件内容通过socket传回给Web浏览器,然后关闭文件。否则发送错误信息给Web浏览器。最后,关闭与相应Web浏览器连接的socket字。-Java Web server is to achieve a GET request to the Web server, through the creation of ServerSocket class object, bugging port 8080; Wait, a client is connected to port 8080; Socket character creation and the associated input and output streams flow then read the client's request information, if the request is the type of GET, request information from being accessed visit HTML document, and if the HTML document exists, then open the HTML file, HTTP headers and HTML files through the socket sent back to the Web browser and then close the file. Otherwise, send the wrong message to the Web browser. Finally, the closing and the corresponding Web browser connected to the socket word.
Platform: |
Size: 10240 |
Author: 雨岳 |
Hits:
Description: 说明:
1、这是一个让人眼前一亮的设计,通过java swing能设计出如此漂亮的界面实属不易;
2、该代码的一个优势,能够复用!!
3、能够创建简单的表,插入表,查询表的功能,尤其是查询部分可以在空白处输入SQL语句就可以直接查询了;
4、插入部分执行成功后重置界面还可以再次执行插入功能;
5、如果多个文件插入,也可以通过输入不同表名来进行更改;
6、这是一个桥连数据库,需要配置ODBC;
7、不足之处,由于本次设计中数据库设计成自动增加的功能,所以有时比较别扭,可能插不进去,不过如果能看懂代码的可以进行局部更改,不失为一个好的代码;-Note : 1, it is a people's eyes and through java swing can design the interface so beautiful it is not easy; 2, the source of an advantage to reuse! ! 3, to create a simple table, insert the table look-up table functions, especially for some of the blank space on the importation of SQL statements can direct inquiries; 4, insert some replacement after successful implementation of interface implementation can also insert functional again; 5, insert multiple files, they can also be searched by name of the table to change; 6, which is a bridge even database, the need for ODBC; 7, inadequate, due to the design of the database is designed to automatically increase the function, sometimes uncomfortable, interpolation may not get, but if we can understand code the changes can be localized, is
Platform: |
Size: 121856 |
Author: zhangsan |
Hits:
Description: SMTP邮件客户端的java源码实现,其中实现最为主要的的post ,get等功能函数。-SMTP mail client to achieve the java source code, which achieve most of the main post, get function and other functions.
Platform: |
Size: 5120 |
Author: 李鹏 |
Hits:
Description: java编程思想中文第三版(PDF)
本书已经成为广大java程序员和爱好者们手中必备的宝典,它在广大读者心中的地位已无可替代.其作者Bruce Eckel 也已经成为众多java 程序员心中的大师.-java programming Chinese thinking third edition (PDF) this book has become the java-loving programmers and get the required hands, the book in the hearts of its readers, the status irreplaceable. its author Bruce Eckel has become a large jav a master programmer mind.
Platform: |
Size: 4011008 |
Author: super |
Hits:
Description: java笔试的一定的内容.快拿卡你可能 看 阿克纳-java written in a certain content. Express card you get may look阿克纳
Platform: |
Size: 31744 |
Author: jack |
Hits:
Description: JAVA中获取硬盘序列号的程序以及其实现的源码-JAVA get hard disk serial number of the procedures, as well as the realization of the source
Platform: |
Size: 22528 |
Author: 王帆 |
Hits:
Description: JAVA得到网卡物理地址(windows和Linux) ,当时觉得挺好,后来正好项目里有需要,就用了它,但好像有点问题.因为它是采用固定字符串搜索(if (line.indexOf("Physical Address") != -1) )获得MAC 地址的,后来在应用时出了问题,因为没有"Physical Address"这一项.后来在外网在查查了一下,后来发现老外有写一个这样的类,可能那样的方式更加可靠一点.算是做个标记-JAVA get the physical address of network card (windows and Linux), then feel good, then just need to have projects, we used it, but it seems rather questionable. Because it is the fixed-string search (if (line.indexOf (Physical Address )! =-1)) to obtain MAC address, then the application of a problem, because there is no Physical Address this item. then check out network, then later discovered that a foreigner has to write such a category, you may like A LITTLE more reliable way. is to be a marker
Platform: |
Size: 23552 |
Author: cb |
Hits:
Description: This package provides a complete http client library. It currently implements most of the relevant parts of the HTTP/1.0 and HTTP/1.1 protocols, including the request methods HEAD, GET, POST and PUT, and automatic handling of authorization, redirection requests, and cookies. Furthermore the included Codecs class contains coders and decoders for the base64, quoted-printable, URL-encoding, chunked and the multipart/form-data encodings. The whole thing is free, and licenced under the GNU Lesser General Public License (LGPL) (note that this is not the same as the GPL). -This package provides a complete http client library. It currently implements most of the relevant parts of the HTTP/1.0 and HTTP/1.1 protocols, including the request methods HEAD, GET, POST and PUT, and automatic handling of authorization, redirection requests, and cookies. Furthermore the included Codecs class contains coders and decoders for the base64, quoted-printable, URL-encoding, chunked and the multipart/form-data encodings. The whole thing is free, and licenced under the GNU Lesser General Public License (LGPL ) (note that this is not the same as the GPL).
Platform: |
Size: 734208 |
Author: Guo Quan |
Hits:
Description: JAVA中获取硬盘序列号源码 V1
JAVA中获取硬盘序列号源码 V1-JAVA get hard drive serial number to obtain source V1JAVA source V1 hard drive serial number
Platform: |
Size: 23552 |
Author: fzqy |
Hits:
Description: java面试题大全-葵花宝典(给刚刚毕业没有经验的人准备的,有了它基本笔试可以搞定了)-java face questions Guinness- sunflower Baodian (just graduated, there is no experience to those who prepared, with basic written it can get)
Platform: |
Size: 214016 |
Author: wang feidie |
Hits:
Description: With this example-driven book, you get a quick, practical, and thorough introduction to Java s API for XML Web Services (JAX-WS) and the Java API for RESTful Web Services (JAX-RS).
Platform: |
Size: 593920 |
Author: holahola |
Hits:
Description: 是用纯Java开发的,用来进行网站镜像抓取的工具,可以使用配制文件中提供的URL入口,把这个网站所有的能用浏览器通过GET的方式获取到的资源全部抓取到本地,包括网页和各种类型的文件,如:图片、flash、mp3、zip、rar、exe等文件。可以将整个网站完整地下传至硬盘内,并能保持原有的网站结构精确不变。只需要把抓取下来的网站放到web服务器(如:Apache)中,就可以实现完整的网站镜像。-Is developed in pure Java, used to crawl Web site mirroring tool, you can use the preparation of documents to provide the URL of the entrance to the site the browser can be used all the way through GET access to the resources of all the crawling to the local, including web pages, and various types of documents, such as: images, flash, mp3, zip, rar, exe and other documents. Integrity of the entire site can be spread to the hard disk inside the underground, and to preserve the present structure of the site remain accurate. Just down the site to crawl on the web server (eg: Apache), they can achieve a complete mirror site.
Platform: |
Size: 4943872 |
Author: blackieliu |
Hits:
Description: Get the serial number of user hard disk using java .
Platform: |
Size: 2048 |
Author: neo |
Hits:
Description: java实现新闻发布,是我的毕业论文,里面包含论文。使用mysql数据库服务器-java get news releases, is my dissertation, which contains papers. Use mysql database server
Platform: |
Size: 5822464 |
Author: sun |
Hits:
Description: 这是Java编程思想的第四版的英文版的pdf格式的简版 希望获得英语版的朋友可参考下-This is the fourth edition of Java programming ideas in English pdf format version of Jane' s friends want to get the English version can be found under the
Platform: |
Size: 4197376 |
Author: 笃行 |
Hits:
Description: 孙鑫java学习资料。包含ppt,代码及说明信息,新手入门的好材料-Sun Xin java learning materials. Contains ppt, code and description information, novice to get into a good material
Platform: |
Size: 2577408 |
Author: lilei |
Hits:
Description: 开发阳光非亚斯BBS系统最终目的是为企业内部员工提供一个良好的技术交流平台,得到客户的及时反馈,从而提高公司的整体技术水平,提高公司效益。为了满足客户需求,本系统在设计时应实现以下几个目标:
系统界面友好、美观。
划分用户级别,将不同的权限划分给不同的人群。
合理管理论坛相关信息。
易于维护和扩展。
系统运行稳定可靠。
-Sunshine Non-Iglesias BBS system developed the ultimate aim is for internal staff to provide a good platform for technology exchange, customers get timely feedback to enhance the company' s overall technical level, to improve company efficiency. In order to meet customer demand, the system should be designed to achieve the following goals: friendly interface, beautiful. division of the user level, will be divided into different permissions to different groups of people. forum for the rational management of information. easy to maintain and extend. system is stable and reliable.
Platform: |
Size: 1040384 |
Author: seventeen |
Hits:
Description: This example shows how to sent a POST request to a server with attached parameters. Two parameters are sent in the example code below, width and height.
We use the URL and URLConnection classes to open the connection to the destination. Then the output stream is retrieved by calling getOutputStream() on the URLConnection object.
With the output stream we can write the parameters and then start reading the response from the server using the input stream which we get by calling getInputStream() on the same URLConnection object.
We assume there will only be character based content returned from the server so we use the BufferedWriter to read the response line by line.
Platform: |
Size: 1024 |
Author: Nandini |
Hits:
Description: Java Swing ebook.
This book gives a complete introduction to the entire Swing component set.Of course, it shows you
how to use all of the components: how to display them on the screen, register for events, and get
information from them. You d expect that in any Swing book. This book goes much further. It goes
into detail about the model-delegate architecture behind the components, and discusses all of the
data models. Understanding the models is essential when you re working on an application that
requires something significantly different from the components default behavior: for example, if
you need a component that displays a different data type, or one that structures data in some nonstandard
way, you ll need to work with the data models. This book also discusses how to create your
own look-and-feel, and how to write "accessible" user interfaces.-Java Swing ebook.
This book gives a complete introduction to the entire Swing component set.Of course, it shows you
how to use all of the components: how to display them on the screen, register for events, and get
information from them. You d expect that in any Swing book. This book goes much further. It goes
into detail about the model-delegate architecture behind the components, and discusses all of the
data models. Understanding the models is essential when you re working on an application that
requires something significantly different from the components default behavior: for example, if
you need a component that displays a different data type, or one that structures data in some nonstandard
way, you ll need to work with the data models. This book also discusses how to create your
own look-and-feel, and how to write "accessible" user interfaces.
Platform: |
Size: 7294976 |
Author: Jurec |
Hits:
Description: 新浪天气新闻的抓取——Java实现
我做了个程序把新浪上的天气新闻抓过来存到本地,考虑访问速度问题,新闻中的图片也要保存到本地。文件头里获得的Content-Length,也就是图片的实际大小不符,预览不了。
而且反复测试,两种方法每次下来的东西大小是固定的,所以重复下载没有用?
测试toString后length大小比图片实际的小,而生成的图片比图片数据大。下载后存储过程中图片数据增加了!
图片数据流toString过程中数据大小发生了改变,还原不回来。其它新闻内容没有问题。估计是图片的编码格式等的问题。在图片数据流读过来时直接生成图片就可以了。-get weather report from sina.com.cn by java ..it s usefull!!
hurry uphurry uphurry uphurry uphurry up
Platform: |
Size: 13312 |
Author: YESHUN |
Hits:
« 12
3
4
5
6
7
8
9
10
...
48
»