Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 29165 invoked from network); 13 Sep 2006 01:16:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2006 01:16:30 -0000 Received: (qmail 39600 invoked by uid 500); 13 Sep 2006 01:16:29 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 38627 invoked by uid 500); 13 Sep 2006 01:16:26 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 38616 invoked by uid 99); 13 Sep 2006 01:16:26 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2006 18:16:26 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=akprasad@gmail.com; spf=pass Authentication-Results: idunn.apache.osuosl.org header.from=akprasad@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=0.4 required=5.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 64.233.166.178 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from ([64.233.166.178:2415] helo=py-out-1112.google.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 05/91-06304-5FB57054 for ; Tue, 12 Sep 2006 18:16:38 -0700 Received: by py-out-1112.google.com with SMTP id f28so2491273pyf for ; Tue, 12 Sep 2006 18:16:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=mUWrtFjZCB7bGfzcF+toJtOVIJK0gcG5aGEzWUxRBLnZ7NWr7lVAAzt7d6KDsXed99BRCrckw/mjEh3mesuW21MMsJiyrjs8rfDXHlNS9GthN4S6UPx5ydPrYt/rjCNyYQW+VSnELdSe6FANojs3nDTTgVBAB6pjGfj6TZHQ0aM= Received: by 10.35.126.7 with SMTP id d7mr11950633pyn; Tue, 12 Sep 2006 18:16:19 -0700 (PDT) Received: by 10.35.47.4 with HTTP; Tue, 12 Sep 2006 18:16:19 -0700 (PDT) Message-ID: <6c8e56320609121816m366cc52fmbcea0bb8ba903455@mail.gmail.com> Date: Tue, 12 Sep 2006 18:16:19 -0700 From: "Aditya Prasad" To: dev@tomcat.apache.org Subject: HttpRequestBase equivalent in 5.5? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I've been using HttpRequestBase (from Tomcat 4.0) as an impl of HttpServletRequest to construct requests for test purposes outside of Tomcat. I've recently switched to 5.5, and am rewriting my tests, since that class no longer exists. I first tried using DummyRequest, but quickly found that the setters don't seem to do anything, because the getters return nulls. I then tried org.apache.catalina.connector.Request, but I get NPEs when calling getContentType (after calling setContentType) or setServerName. Am I not supposed to be using either of these classes? Is there a well-known impl that will allow me to set arbitrary data on a request (I know this is a tall order -- there's probably a logical order in which the object should be constructed anyway). Thanks, Aditya --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org