Git Product home page Git Product logo

lab_final's Introduction

Repository-ul pentru Java-Technologies

Laborator 1
Cerinta:
Java Servlet Technology
(2p) Create a servlet that:
  receives the following parameters key:String, value:int, mock:boolean and sync:boolean.
  if mock is true than the servlet simply returns a confirmation message.
  if mock is false, the servlet writes in a text file called repository a line containing the key, repeated value times, along with the timestamp of the request, and returns the content of the repository, as an HTML page containing all the lines that were created, ordered by key.
  if sync is false, then the servlet will not use any synchronized method when writing in the file.
  The servlet invocation will be done using a simple HTML form.
  Write in the server log the following information about each request: the HTTP method used, the IP-address of the client, the user-agent, the client language(s) and the parameters of the request. (Take a look at HttpServletRequest API).
(0.5p) Invoke the service from a desktop application (Java, Python, .NET, etc.).
   In this case, the servlet must respond with a simple text, instead of an HTML page.
(1p) Analyze the performance and concurrency issues, invoking the servlet repeatedly, in an asynchronous manner (use different values for the mock and sync parameters).



Toate punctele au fost rezolvate.

lab_final's People

Contributors

emilian955 avatar

Watchers

Cristian Frasinaru avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.