Return-Path: Delivered-To: apmail-incubator-cxf-commits-archive@locus.apache.org Received: (qmail 31558 invoked from network); 20 Sep 2007 02:56:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Sep 2007 02:56:19 -0000 Received: (qmail 7959 invoked by uid 500); 20 Sep 2007 02:56:10 -0000 Delivered-To: apmail-incubator-cxf-commits-archive@incubator.apache.org Received: (qmail 7911 invoked by uid 500); 20 Sep 2007 02:56:10 -0000 Mailing-List: contact cxf-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-commits@incubator.apache.org Received: (qmail 7871 invoked by uid 99); 20 Sep 2007 02:56:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2007 19:56:09 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2007 02:56:16 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 232771A9832; Wed, 19 Sep 2007 19:55:56 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r577517 - in /incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs: interceptor/JAXRSOutInterceptor.java model/OperationResourceInfo.java Date: Thu, 20 Sep 2007 02:55:55 -0000 To: cxf-commits@incubator.apache.org From: jliu@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070920025556.232771A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jliu Date: Wed Sep 19 19:55:53 2007 New Revision: 577517 URL: http://svn.apache.org/viewvc?rev=577517&view=rev Log: Fixed a few typos. Thanks Glen! Modified: incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSOutInterceptor.java incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/OperationResourceInfo.java Modified: incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSOutInterceptor.java URL: http://svn.apache.org/viewvc/incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSOutInterceptor.java?rev=577517&r1=577516&r2=577517&view=diff ============================================================================== --- incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSOutInterceptor.java (original) +++ incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSOutInterceptor.java Wed Sep 19 19:55:53 2007 @@ -80,14 +80,14 @@ }*/ //TODO: decide the output media type based on resource method/resource class/provider - String[] methodMineTypes = exchange.get(OperationResourceInfo.class).getProduceMimeTypes(); + String[] methodMimeTypes = exchange.get(OperationResourceInfo.class).getProduceMimeTypes(); EntityProvider provider = ((ProviderFactoryImpl)ProviderFactory.getInstance()) - .createEntityProvider(targetType, methodMineTypes, false); + .createEntityProvider(targetType, methodMimeTypes, false); try { - if (!"*/*".equals(methodMineTypes[0])) { - message.put(Message.CONTENT_TYPE, methodMineTypes[0]); + if (!"*/*".equals(methodMimeTypes[0])) { + message.put(Message.CONTENT_TYPE, methodMimeTypes[0]); } provider.writeTo(responseObj, null, out); Modified: incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/OperationResourceInfo.java URL: http://svn.apache.org/viewvc/incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/OperationResourceInfo.java?rev=577517&r1=577516&r2=577517&view=diff ============================================================================== --- incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/OperationResourceInfo.java (original) +++ incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/OperationResourceInfo.java Wed Sep 19 19:55:53 2007 @@ -94,12 +94,12 @@ * these annotations, support for any media type (¡°*¡±) is assumed. */ - String[] mineTypes = {"*/*"}; + String[] mimeTypes = {"*/*"}; ProduceMime c = method.getAnnotation(ProduceMime.class); if (c != null) { - mineTypes = c.value(); + mimeTypes = c.value(); } - return mineTypes; + return mimeTypes; } }