Local_Server_Maven

所属分类:Web服务器
开发工具:HTML
文件大小:0KB
下载次数:0
上传日期:2023-10-25 02:49:14
上 传 者sh-1993
说明:  这个编程任务的目标是构建一个功能强大的web服务器。本作业将教授您分布式专业的基础知识...,
(The goal of this programming assignment is to build a functional web server. This assignment will teach you the basics of distributed programming, client/server structures, and issues in building high performance servers. While the course lectures will focus on the concepts that enable network communication)

文件列表:
.DS_Store (6148, 2023-10-24)
.idea/ (0, 2023-10-24)
.idea/artifacts/ (0, 2023-10-24)
.idea/artifacts/Local_Server_Maven_jar.xml (1013, 2023-10-24)
.idea/dbnavigator.xml (21746, 2023-10-24)
.idea/encodings.xml (261, 2023-10-24)
.idea/jpa-buddy.xml (187, 2023-10-24)
.idea/misc.xml (700, 2023-10-24)
.idea/vcs.xml (241, 2023-10-24)
Local_Server_Maven-jar-with-dependencies 2.jar (1529276, 2023-10-24)
Local_Server_Maven-jar-with-dependencies.jar (1529276, 2023-10-24)
Local_Server_Maven.jar (1626142, 2023-10-24)
META-INF/ (0, 2023-10-24)
META-INF/MANIFEST 2.MF (51, 2023-10-24)
META-INF/MANIFEST.MF (51, 2023-10-24)
giphy 2.gif (269876, 2023-10-24)
giphy.gif (269876, 2023-10-24)
hi 2.png (2119656, 2023-10-24)
hi 2.txt (3, 2023-10-24)
hi.png (2119656, 2023-10-24)
hi.txt (3, 2023-10-24)
house 2.jpeg (532447, 2023-10-24)
house.jpeg (532447, 2023-10-24)
index.html (40220, 2023-10-24)
out/ (0, 2023-10-24)
out/artifacts/ (0, 2023-10-24)
out/artifacts/Local_Server_Maven_jar/ (0, 2023-10-24)
out/artifacts/Local_Server_Maven_jar/Local_Server_Maven.jar (1544508, 2023-10-24)
pic 2.jpg (11358, 2023-10-24)
pic.jpg (11358, 2023-10-24)
pom.xml (3290, 2023-10-24)
space sp 2.txt (6, 2023-10-24)
space sp.txt (6, 2023-10-24)
src/ (0, 2023-10-24)
src/main/ (0, 2023-10-24)
src/main/java/ (0, 2023-10-24)
src/main/java/LocalServer 2.java (8989, 2023-10-24)
... ...

Simple Web Server

Ningchen Liang

  1. About The Project
  2. Getting Started
  3. Usage
  4. Multi thread
  5. Option
  6. License
  7. Contact
  8. Acknowledgments
## About the project

(back to top)

## Getting Started First open the compressed file and run the SimpleWebServer.java in/src/main/java ### Prerequisites * maven ## Usage First when you run the progeam, you will see the console shows"Listening from port." Then open firefox, and enter url: http://localhost:8080 You will see the homepage if www.scu.edu. Same page if you input http://localhost:8080/index.html The orginal html file should be like this: Logo And you can try to retrieve different kinds of files. Like http://localhost:8080/hi.txt Logo http://localhost:8080/house.jpeg Logo http://localhost:8080/giphy.gif Logo ### Error handling You can manipulate the code as follow to see error 400. Logo Logo Then you will see 403 forbidden if you input http://localhost:8080/warning.txt Logo Because the readibility of that file is strictly denied as below: Logo If you add something dose not exist, then the browser will return you 404 not found. Logo What's more, you can generate 501 by modifying code like that: Logo Logo

(back to top)

## Multi thread Test the concurrency and multi thread by using both terminal and web browser to access the socket. And duplicated access from the same client nodes.

(back to top)

## Option By taking a jar file, you can determine the port number. First, gose to the root directary of project, where a jar file exists. Run with whatever the port number you want(Like 9000). Logo Open the web browser and input the localhost: plus the port number you just input. Then you can see. Logo ```sh java -jar Local_Server_Maven.jar -port 9000 ``` ## License Distributed under the MIT License. See `LICENSE.txt` for more information.

(back to top)

## Contact Your Name - Ningchen Liang email: nliang@scu.edu

(back to top)

## Acknowledgments * [](https://github.com/AAbiAbi/Local_Server_Maven/blob/master/) * [](https://github.com/AAbiAbi/Local_Server_Maven/blob/master/) * [](https://github.com/AAbiAbi/Local_Server_Maven/blob/master/)

(back to top)

[contributors-shield]: https://img.shields.io/github/contributors/github_username/repo_name.svg?style=for-the-badge [contributors-url]: https://github.com/github_username/repo_name/graphs/contributors [forks-shield]: https://img.shields.io/github/forks/github_username/repo_name.svg?style=for-the-badge [forks-url]: https://github.com/github_username/repo_name/network/members [stars-shield]: https://img.shields.io/github/stars/github_username/repo_name.svg?style=for-the-badge [stars-url]: https://github.com/github_username/repo_name/stargazers [issues-shield]: https://img.shields.io/github/issues/github_username/repo_name.svg?style=for-the-badge [issues-url]: https://github.com/github_username/repo_name/issues [license-shield]: https://img.shields.io/github/license/github_username/repo_name.svg?style=for-the-badge [license-url]: https://github.com/github_username/repo_name/blob/master/LICENSE.txt [linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555 [linkedin-url]: https://linkedin.com/in/linkedin_username [product-screenshot]: images/screenshot.png [Next.js]: https://img.shields.io/badge/next.js-000000?style=for-the-badge&logo=nextdotjs&logoColor=white [Next-url]: https://nextjs.org/ [React.js]: https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB [React-url]: https://reactjs.org/ [Vue.js]: https://img.shields.io/badge/Vue.js-35495E?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D [Vue-url]: https://vuejs.org/ [Angular.io]: https://img.shields.io/badge/Angular-DD0031?style=for-the-badge&logo=angular&logoColor=white [Angular-url]: https://angular.io/ [Svelte.dev]: https://img.shields.io/badge/Svelte-4A4A55?style=for-the-badge&logo=svelte&logoColor=FF3E00 [Svelte-url]: https://svelte.dev/ [Laravel.com]: https://img.shields.io/badge/Laravel-FF2D20?style=for-the-badge&logo=laravel&logoColor=white [Laravel-url]: https://laravel.com [Bootstrap.com]: https://img.shields.io/badge/Bootstrap-563D7C?style=for-the-badge&logo=bootstrap&logoColor=white [Bootstrap-url]: https://getbootstrap.com [JQuery.com]: https://img.shields.io/badge/jQuery-0769AD?style=for-the-badge&logo=jquery&logoColor=white [JQuery-url]: https://jquery.com

近期下载者

相关文件


收藏者