getScheme() Method Example

getScheme() method is defined in ServletRequest interface from javax.servlet package inherited by HttpServletRequest. With getScheme() method, the Servlet Programmer can know what protocol (like HTTP) is used by the client from HTML file to call the Servlet. Let us see what Java API says about this method. public java.lang.String getScheme(): Returns the name of the …

getScheme() Method Example Read More »