create servletmechrequest class for flexibility.