DoHead

// See also The Quintessential Servlet

// This method is called by the servlet container to process a HEAD request.
// There may be many threads calling this method simultaneously.
public void doHead(HttpServletRequest req, HttpServletResponse resp) throws IOException {
    // Set the content length and type
    resp.setContentLength(123);
    resp.setContentType("text/html");
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.