Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 8354 invoked from network); 20 Dec 2010 14:19:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Dec 2010 14:19:27 -0000 Received: (qmail 76682 invoked by uid 500); 20 Dec 2010 14:19:27 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 76581 invoked by uid 500); 20 Dec 2010 14:19:26 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 76573 invoked by uid 500); 20 Dec 2010 14:19:26 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 76570 invoked by uid 99); 20 Dec 2010 14:19:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Dec 2010 14:19:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Dec 2010 14:19:23 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBKEJ11q027321 for ; Mon, 20 Dec 2010 14:19:02 GMT Message-ID: <12946929.214521292854741958.JavaMail.jira@thor> Date: Mon, 20 Dec 2010 09:19:01 -0500 (EST) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Resolved: (CAMEL-3447) align media size names in camel-printer component configuration with javax.print.attribute.standard.MediaSizeName In-Reply-To: <15365468.212741292843220764.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAMEL-3447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-3447. -------------------------------- Resolution: Fixed Fix Version/s: 2.6.0 Assignee: Claus Ibsen trunk: 1051120. Thanks for the patch. > align media size names in camel-printer component configuration with javax.print.attribute.standard.MediaSizeName > ----------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-3447 > URL: https://issues.apache.org/jira/browse/CAMEL-3447 > Project: Camel > Issue Type: Improvement > Affects Versions: 2.5.0 > Environment: component: camel-printer (could not select it from components list). > Reporter: Torsten Mielke > Assignee: Claus Ibsen > Fix For: 2.6.0 > > Attachments: MediaSizeAssigner.patch > > > The [camel-printer documentation|http://camel.apache.org/printer.html] refers to javax.print.attribute.standard.MediaSizeName for the mediaSize name configuration: > {quote} > "Sets the stationary as defined by enumeration settings in the javax.print.attribute.standard.MediaSizeName API" > {quote} > However the camel-printer helper class MediaSizeAssigner internally does not match the enumeration names defined in javax.print.attribute.standard.MediaSizeName. > E.g. notice these differences: > javax.print.attribute.standard.MediaSizeName enum: > ISO_A4 > JIS_B0 > JAPANESE_POSTCARD > camel-printer MediaSizeAssigner: > ISO-A4 > JIS-B0 > JAPANESE-POSTCARD > The difference is only in the use of '-' vs. '_' character but without looking at the camel-printer source, one would currently not know what the right media size string needs to be. Since there is already a standard naming scheme defined in javax.print.attribute.standard.MediaSizeName, lets use it. > This only requires a simple update to class MediaSizeAssigner. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.