Implement an internet resource retriever to act as a client

Assignment Help JAVA Programming
Reference no: EM131588473

Assignment: Client server java program to Run- Tutor-marked Exercise: Proxy Server

Overview

A proxy server is a network server that acts as a proxy for some other real server. Many websites with a firewall have a proxy server to provide a legitimate means to go through the network barrier. The proxy server thus is a mediator between the server and the clients. It forwards a client's request to the server and relays the server's reply to the original client. Therefore, to the client, the proxy looks like the server. To the real server, the proxy looks like a client.

For this assignment, you must implement an Internet resource retriever to act as a client and to make requests to a server, including the basic Web server you have implemented. The basic Web server's task is to deliver resources to the client. The client requests a particular resource by writing an HTTP GET (or similar) request. On receiving a legitimate request in the form of a URL path, the server should return the contents of the corresponding file so that the client can read the response from the server via the proxy server. When networking facilities are available, the basic Web server (or any other server) can be executed on one machine and the client can be executed on another to make requests to the server. When networking facilities are not available, both the basic Web server and the client may be executed on the same machine. The client may refer to the server host by the standard name localhost.

Requirements

Tutor-marked Exercise (TME) 1 requires that you develop three programs: one for a client, one for a basic Web server, and one for a proxy server.

A proxy server is a special-purpose HTTP server; it is the core application for this project. The proxy server has two socket connections. It "listens" for communication from clients through one and launches requests to specific Web servers through the other. In this exercise you should use a thread in the proxy server so that it is able to send and receive messages simultaneously to and from the server/client.

A basic Web server can deal with requests for resources from a client. It is necessary to have a Web server return messages to a client such as 404 - not found; 403 - bad request; etc., as appropriate. If the resource requested is available, which means that the resource can be found on the disk of the Web server, the Web server needs to read the resource and write the data to the socket. For example, a Web server may find an HTML file or a JPEG (image) file on its disk and transfer the data to the socket.

The client basically needs access to the function that allows the user to input the resource URL that identifies the resource s/he wants to access. However, the client has to access the resource by sending a request to the proxy server, and then the client must receive the resource from the proxy server. No matter what kind of data the client receives, the client only needs to print it on the screen. Note that where the response from a server is an HTML file, a typical Web browser will render it according to HTML semantics. This functionality is not considered in this exercise.

Note: Your tutor may use resource URLs other than those for the basic Web server (e.g., Java tutorial Web pages and public FTP files).

To test your basic Web server's function you can simply use an HTML file named testfile.html and a JPG file name testfile.jpg with Microsoft Internet Explorer or Mozilla Firefox.

Deliverables

Your assignment must be zipped into one file and uploaded using the Assignment Drop Box feature of Moodle. The file must include

• all source files.
• a complete test plan.

Reference no: EM131588473

Questions Cloud

Ethical issue or the abuse of privacy : 1. What is an example of either an ethical issue or the abuse of privacy? 2. What is an example of an anonymous communication that can harm others?
What is its accounts receivable turnover for the period : A company has net sales of $624,000 and average accounts receivable of $160,000. What is its accounts receivable turnover for the period
Discuss five states where slr continues to increase : What is the importance of UNIVISION in these issues? Discuss five states where SLR continues to increase?
Problem related to the speech spectrogram : The speech spectrogram has been used for analysis of speech characteristics for many years. Could such a method be used for recognition of speech patterns?
Implement an internet resource retriever to act as a client : For this assignment, you must implement an Internet resource retriever to act as a client and to make requests to a server.
Abuses inherent in the power of information : What are some potential problems and abuses inherent in the power of information?
Discuss vacation policy changes to be distributed to staff : Your supervisor has asked to you write a brief email on the vacation policy changes to be distributed to staff
Code of ethics for information professional : What constitutes a set of guidelines that will comprise a code of ethics for information professional?
What was the original cost of the asset : If accumulated depreciation on the sale date was $57,511 and a gain of $5,921 was recognized on the sale, what was the original cost of the asset

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd