Java Reference
In-Depth Information
The getMinorVersion() Method
public int getMinorVersion()
The getMinorVersion() method returns an integer representing the minor version of the
servlet API that the servlet engine supports. If the servlet engine supported the servlet API 2.1,
the result would be 1. getMinorVersion() has no parameters and throws no exceptions.
It returns this value:
int
The getMimeType() Method
public java.lang.String getMimeType(java.lang.String file)
The getMimeType() method returns a string representing the MIME type of the passed-in file-
name, or null if the MIME type of the file is not known. getMimeType() throws no exceptions.
It has one parameter:
java.lang.String
It returns this value:
java.lang.String
The getNamedDispatcher() Method
public RequestDispatcher getNamedDispatcher(java.lang.String name)
The getNamedDispatcher() method returns a reference to a RequestDispatcher object
belonging a particular URI path. The getNamedDispatcher() method throws no exceptions.
It has one parameter:
java.lang.String
It returns this value:
RequestDispatcher
The getResource() Method
public java.net.URL getResource(java.lang.String path)
throws java.net.MalformedURLException
The getResource() method returns a URL object of a resource matching the passed-in path
parameter, permitting a servlet to access content from the servlet engine's document space
without system dependencies.
Search WWH ::




Custom Search