package com.devproserv.courses.command;

import javax.servlet.http.HttpServletRequest;

/**
 * Defines the single interface for all commands coming from the user forms via HTTP request.
 */
public interface Command {
    /**
     * Takes a command from user form (sent in HTTP request) and defines the page which
     * is returned as response by the servlet.
     *
     * @param request HTTP request from the servlet
     * @return the name of the page (path) which browser is redirected to
     */
    String path(HttpServletRequest request);
}

@@ -97,52 +97,28 @@
 %0A * 
-Defines the single interface for all
+Represents a
  command
 s co
@@ -113,17 +113,16 @@
  command
-s
  coming 
@@ -130,16 +130,11 @@
 rom 
-the user
+web
  for
@@ -155,16 +155,20 @@
 quest.%0D%0A
+ *%0D%0A
  */%0D%0Apub
@@ -452,18 +452,25 @@
 ich 
-browser is
+servlet container
  red
@@ -474,18 +474,17 @@
 redirect
-ed
+s
  to%0D%0A   

Update comments