downey.hw2
Interface Hw2Interface


public interface Hw2Interface

Interface for Hw2


Method Summary
 java.lang.String getMessage(javax.servlet.http.HttpServletRequest request, java.lang.String strHeader, java.lang.String strSearch)
           
 

Method Detail

getMessage

public java.lang.String getMessage(javax.servlet.http.HttpServletRequest request,
                                   java.lang.String strHeader,
                                   java.lang.String strSearch)
Parameters:
request - The request class that has all the headers
strHeader - The name of the header to test
strSearch - The value to search for in the header
Returns:
Returns one of three error messages depending on whether the header is present, the header contains the search string, or the header does not contain the search string.