Files
spring-integration-extensions/spring-integration-print
Spring Operator 4a3a088881 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://opensmpp.logica.com/CommonPart/Introduction/Introduction.htm (301) with 1 occurrences migrated to:
  https://public.cgi.com/CommonPart/Introduction/Introduction.htm ([https](https://opensmpp.logica.com/CommonPart/Introduction/Introduction.htm) result SSLHandshakeException).
* http://static.springsource.org/spring-integration/reference/htmlsingle/ (301) with 1 occurrences migrated to:
  https://docs.spring.io/spring-integration/reference/htmlsingle/ ([https](https://static.springsource.org/spring-integration/reference/htmlsingle/) result 404).
* http://www.puppycrawl.com/dtds/configuration_1_2.dtd (404) with 4 occurrences migrated to:
  https://www.puppycrawl.com/dtds/configuration_1_2.dtd ([https](https://www.puppycrawl.com/dtds/configuration_1_2.dtd) result 404).
* http://www.puppycrawl.com/dtds/suppressions_1_1.dtd (404) with 4 occurrences migrated to:
  https://www.puppycrawl.com/dtds/suppressions_1_1.dtd ([https](https://www.puppycrawl.com/dtds/suppressions_1_1.dtd) result 404).
* http://www.springframework.org/schema/integration/aws/spring-integration-aws.xsd (404) with 2 occurrences migrated to:
  https://www.springframework.org/schema/integration/aws/spring-integration-aws.xsd ([https](https://www.springframework.org/schema/integration/aws/spring-integration-aws.xsd) result 404).
* http://www.springframework.org/schema/integration/cassandra/spring-integration-cassandra.xsd (404) with 2 occurrences migrated to:
  https://www.springframework.org/schema/integration/cassandra/spring-integration-cassandra.xsd ([https](https://www.springframework.org/schema/integration/cassandra/spring-integration-cassandra.xsd) result 404).
* http://www.springframework.org/schema/integration/hazelcast/spring-integration-hazelcast.xsd (404) with 11 occurrences migrated to:
  https://www.springframework.org/schema/integration/hazelcast/spring-integration-hazelcast.xsd ([https](https://www.springframework.org/schema/integration/hazelcast/spring-integration-hazelcast.xsd) result 404).
* http://www.springframework.org/schema/integration/jgroups/spring-intergration-jgroups.xsd (404) with 4 occurrences migrated to:
  https://www.springframework.org/schema/integration/jgroups/spring-intergration-jgroups.xsd ([https](https://www.springframework.org/schema/integration/jgroups/spring-intergration-jgroups.xsd) result 404).
* http://www.springframework.org/schema/integration/print/spring-integration-print.xsd (404) with 2 occurrences migrated to:
  https://www.springframework.org/schema/integration/print/spring-integration-print.xsd ([https](https://www.springframework.org/schema/integration/print/spring-integration-print.xsd) result 404).
* http://www.springframework.org/schema/integration/smb/spring-integration-smb.xsd (404) with 8 occurrences migrated to:
  https://www.springframework.org/schema/integration/smb/spring-integration-smb.xsd ([https](https://www.springframework.org/schema/integration/smb/spring-integration-smb.xsd) result 404).
* http://www.springframework.org/schema/integration/smpp/spring-integration-smpp.xsd (404) with 10 occurrences migrated to:
  https://www.springframework.org/schema/integration/smpp/spring-integration-smpp.xsd ([https](https://www.springframework.org/schema/integration/smpp/spring-integration-smpp.xsd) result 404).
* http://www.springframework.org/schema/integration/splunk/spring-integration-splunk.xsd (404) with 11 occurrences migrated to:
  https://www.springframework.org/schema/integration/splunk/spring-integration-splunk.xsd ([https](https://www.springframework.org/schema/integration/splunk/spring-integration-splunk.xsd) result 404).
* http://www.springframework.org/schema/integration/twitter/spring-integration-social-twitter.xsd (404) with 11 occurrences migrated to:
  https://www.springframework.org/schema/integration/twitter/spring-integration-social-twitter.xsd ([https](https://www.springframework.org/schema/integration/twitter/spring-integration-social-twitter.xsd) result 404).
* http://www.springframework.org/schema/integration/voldemort/spring-integration-voldemort.xsd (404) with 5 occurrences migrated to:
  https://www.springframework.org/schema/integration/voldemort/spring-integration-voldemort.xsd ([https](https://www.springframework.org/schema/integration/voldemort/spring-integration-voldemort.xsd) result 404).
* http://www.springframework.org/schema/integration/xquery/spring-integration-xquery.xsd (404) with 3 occurrences migrated to:
  https://www.springframework.org/schema/integration/xquery/spring-integration-xquery.xsd ([https](https://www.springframework.org/schema/integration/xquery/spring-integration-xquery.xsd) result 404).
* http://www.springframework.org/schema/integration/zip/spring-integration-zip.xsd (404) with 7 occurrences migrated to:
  https://www.springframework.org/schema/integration/zip/spring-integration-zip.xsd ([https](https://www.springframework.org/schema/integration/zip/spring-integration-zip.xsd) result 404).

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://en.wikipedia.org/wiki/Short_Message_Peer-to-Peer with 1 occurrences migrated to:
  https://en.wikipedia.org/wiki/Short_Message_Peer-to-Peer ([https](https://en.wikipedia.org/wiki/Short_Message_Peer-to-Peer) result 200).
* http://maven.apache.org/xsd/maven-4.0.0.xsd with 8 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://www.project-voldemort.com with 1 occurrences migrated to:
  https://www.project-voldemort.com ([https](https://www.project-voldemort.com) result 200).
* http://www.springframework.org/schema/beans/spring-beans.xsd with 103 occurrences migrated to:
  https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd) result 200).
* http://www.springframework.org/schema/context/spring-context-3.1.xsd with 8 occurrences migrated to:
  https://www.springframework.org/schema/context/spring-context-3.1.xsd ([https](https://www.springframework.org/schema/context/spring-context-3.1.xsd) result 200).
* http://www.springframework.org/schema/context/spring-context.xsd with 31 occurrences migrated to:
  https://www.springframework.org/schema/context/spring-context.xsd ([https](https://www.springframework.org/schema/context/spring-context.xsd) result 200).
* http://www.springframework.org/schema/data/cassandra/spring-cassandra.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/data/cassandra/spring-cassandra.xsd ([https](https://www.springframework.org/schema/data/cassandra/spring-cassandra.xsd) result 200).
* http://www.springframework.org/schema/integration/file/spring-integration-file.xsd with 7 occurrences migrated to:
  https://www.springframework.org/schema/integration/file/spring-integration-file.xsd ([https](https://www.springframework.org/schema/integration/file/spring-integration-file.xsd) result 200).
* http://www.springframework.org/schema/integration/jdbc/spring-integration-jdbc.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/integration/jdbc/spring-integration-jdbc.xsd ([https](https://www.springframework.org/schema/integration/jdbc/spring-integration-jdbc.xsd) result 200).
* http://www.springframework.org/schema/integration/kafka/spring-integration-kafka.xsd with 2 occurrences migrated to:
  https://www.springframework.org/schema/integration/kafka/spring-integration-kafka.xsd ([https](https://www.springframework.org/schema/integration/kafka/spring-integration-kafka.xsd) result 200).
* http://www.springframework.org/schema/integration/mail/spring-integration-mail.xsd with 2 occurrences migrated to:
  https://www.springframework.org/schema/integration/mail/spring-integration-mail.xsd ([https](https://www.springframework.org/schema/integration/mail/spring-integration-mail.xsd) result 200).
* http://www.springframework.org/schema/integration/spring-integration-2.2.xsd with 4 occurrences migrated to:
  https://www.springframework.org/schema/integration/spring-integration-2.2.xsd ([https](https://www.springframework.org/schema/integration/spring-integration-2.2.xsd) result 200).
* http://www.springframework.org/schema/integration/spring-integration.xsd with 92 occurrences migrated to:
  https://www.springframework.org/schema/integration/spring-integration.xsd ([https](https://www.springframework.org/schema/integration/spring-integration.xsd) result 200).
* http://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd with 16 occurrences migrated to:
  https://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd ([https](https://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd) result 200).
* http://www.springframework.org/schema/integration/xmpp/spring-integration-xmpp.xsd with 14 occurrences migrated to:
  https://www.springframework.org/schema/integration/xmpp/spring-integration-xmpp.xsd ([https](https://www.springframework.org/schema/integration/xmpp/spring-integration-xmpp.xsd) result 200).
* http://www.springframework.org/schema/jdbc/spring-jdbc.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/jdbc/spring-jdbc.xsd ([https](https://www.springframework.org/schema/jdbc/spring-jdbc.xsd) result 200).
* http://www.springframework.org/schema/lang/spring-lang.xsd with 5 occurrences migrated to:
  https://www.springframework.org/schema/lang/spring-lang.xsd ([https](https://www.springframework.org/schema/lang/spring-lang.xsd) result 200).
* http://www.springframework.org/schema/task/spring-task.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/task/spring-task.xsd ([https](https://www.springframework.org/schema/task/spring-task.xsd) result 200).
* http://www.springframework.org/schema/tool/spring-tool.xsd with 5 occurrences migrated to:
  https://www.springframework.org/schema/tool/spring-tool.xsd ([https](https://www.springframework.org/schema/tool/spring-tool.xsd) result 200).
* http://www.springframework.org/schema/util/spring-util.xsd with 8 occurrences migrated to:
  https://www.springframework.org/schema/util/spring-util.xsd ([https](https://www.springframework.org/schema/util/spring-util.xsd) result 200).
* http://code.google.com/p/jsmpp/ with 1 occurrences migrated to:
  https://code.google.com/p/jsmpp/ ([https](https://code.google.com/p/jsmpp/) result 301).
* http://www.eaipatterns.com/MessagingGateway.html (302) with 1 occurrences migrated to:
  https://www.enterpriseintegrationpatterns.com/MessagingGateway.html ([https](https://www.eaipatterns.com/MessagingGateway.html) result 301).
* http://www.springsource.org with 6 occurrences migrated to:
  https://www.springsource.org ([https](https://www.springsource.org) result 301).
* http://www.springsource.org/spring-integration with 3 occurrences migrated to:
  https://www.springsource.org/spring-integration ([https](https://www.springsource.org/spring-integration) result 301).

# Ignored
These URLs were intentionally ignored.

* http://docbook.org/ns/docbook with 15 occurrences
* http://jakarta.apache.org/log4j/ with 7 occurrences
* http://maven.apache.org/POM/4.0.0 with 16 occurrences
* http://www.springframework.org/schema/beans with 206 occurrences
* http://www.springframework.org/schema/context with 79 occurrences
* http://www.springframework.org/schema/data/cassandra with 2 occurrences
* http://www.springframework.org/schema/integration with 192 occurrences
* http://www.springframework.org/schema/integration/aws with 4 occurrences
* http://www.springframework.org/schema/integration/cassandra with 4 occurrences
* http://www.springframework.org/schema/integration/file with 14 occurrences
* http://www.springframework.org/schema/integration/hazelcast with 22 occurrences
* http://www.springframework.org/schema/integration/jdbc with 2 occurrences
* http://www.springframework.org/schema/integration/jgroups with 8 occurrences
* http://www.springframework.org/schema/integration/kafka with 4 occurrences
* http://www.springframework.org/schema/integration/mail with 4 occurrences
* http://www.springframework.org/schema/integration/print with 4 occurrences
* http://www.springframework.org/schema/integration/smb with 16 occurrences
* http://www.springframework.org/schema/integration/smpp with 20 occurrences
* http://www.springframework.org/schema/integration/splunk with 22 occurrences
* http://www.springframework.org/schema/integration/stream with 32 occurrences
* http://www.springframework.org/schema/integration/twitter with 22 occurrences
* http://www.springframework.org/schema/integration/voldemort with 10 occurrences
* http://www.springframework.org/schema/integration/xmpp with 28 occurrences
* http://www.springframework.org/schema/integration/xquery with 6 occurrences
* http://www.springframework.org/schema/integration/zip with 14 occurrences
* http://www.springframework.org/schema/jdbc with 2 occurrences
* http://www.springframework.org/schema/lang with 10 occurrences
* http://www.springframework.org/schema/p with 7 occurrences
* http://www.springframework.org/schema/task with 2 occurrences
* http://www.springframework.org/schema/tool with 10 occurrences
* http://www.springframework.org/schema/util with 16 occurrences
* http://www.w3.org/1999/xlink with 15 occurrences
* http://www.w3.org/2001/XInclude with 9 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 111 occurrences
2019-03-20 15:56:18 -04:00
..
2019-03-20 15:56:18 -04:00
2019-03-06 10:02:50 -05:00
2013-05-15 23:15:06 -04:00
2012-08-16 15:56:00 -04:00
2019-03-06 10:02:50 -05:00
2012-08-13 16:03:56 -04:00

Spring Integration Print Support

Overview

The Spring Integration Print allows you to print payloads using the Java Print Service. As such one Outbound Channel Adapter is provided.

Requirements

This module depends by default on Spring Integration 2.2. When using this module, please be aware that printing using Java Print Service can be unpredictable depending on the uses platform and the used printer. For some more details, please see:

Currently the Print Support has been tested using a Brother HL-4070CDW which exhibits several issues such as the inability to execute a print job that prints more than one copy for each page. If you use the Print Module, please report back any compatibility issues with your used printers.

Dependency Declaration

Gradle

dependencies {
	…
	compile "org.springframework.integration:spring-integration-print:1.0.0.BUILD-SNAPSHOT"
	…
}

Maven

<dependencies>
	…
	<dependency>
		<groupId>org.springframework.integration</groupId>
		<artifactId>spring-integration-print</artifactId>
		<version>1.0.0.BUILD-SNAPSHOT</version>
	</dependency>
	…
</dependencies>

Print Outbound Channel Adapter

The Print Outbound Channel Adapter is implemented using the PrintMessageHandler class. It in turn delegates to the PrintServiceExecutor class. The PrintServiceExecutor is responsible for initializing the Java PrintService. As such, you can initialize the PrintServiceExecutor with providing a:

  • Printer Name
  • Custom implementation of the PrintService interface (Useful for testing)

If you provide neither a printer name nor an implementation of the PrintService interface, then the systems default printer is chosen.

The following properties can be set on the Print Outbound Channel Adapter:

printJobName

Optional property that let's you specify the name of the print job as it is added to the print queue. Under the covers, this property will create a javax.print.attribute.standard.JobName and add it to the respective PrintRequestAttributeSet. This property is not used, if not specified (No explicit default value).

mediaSizeName

Optional property that let's you specify the MediaSizeName. Under the covers, this property will add the provided MediaSizeName to the respective PrintRequestAttributeSet. This property is not used, if not specified (No explicit default value).

sides

Let's you specify how the pages are are printed to the selected medium, e.g. duplex or one-sided. Under the covers, this property will add the provided Sides instance to the respective PrintRequestAttributeSet. This property is not used, if not specified (No explicit default value).

copies

Let's you specify an integer value that indicates how many time each print page shall be printed. Under the covers, this property will add a Copies instance to the respective PrintRequestAttributeSet. This property is not used, if not specified (No explicit default value).

mediaTray

Let's you specify the media tray/bin for the print job. This property can be used instead of providing the mediaSizeName property. Under the covers, this property will add the provided MediaTray instance to the respective PrintRequestAttributeSet. This property is not used, if not specified (No explicit default value).

chromaticity

Let's you specify whether you want to do monochrome or color printing. Under the covers, this property will add the provided Chromaticity instance to the respective PrintRequestAttributeSet. This property is not used, if not specified (No explicit default value).

docFlavor

Let's you specify the DocFlavor. If not specified, this property will default to DocFlavor.STRING.TEXT_PLAIN.

IMPORTANT! Every property is validated against the to be used Java Print Service. Therefore, if the selected Java Print Service is not supported, an IllegalArgumentException will be thrown.

Determining you printer capabilities.

In order to get some indication what capabilities are supported by your printer, you may want to too look at the PrintServiceExecutor's getPrinterInfo() method. When executed, it returns a list of:

Namespace Support

Spring Integration also provides XML Namespace support for the Print support. Simply add the following Namespace declaration:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:int="http://www.springframework.org/schema/integration"
	xmlns:int-print="http://www.springframework.org/schema/integration/print"
	xsi:schemaLocation="
		http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/integration/print http://www.springframework.org/schema/integration/print/spring-integration-print.xsd">
		…
</beans>

An example of declaring a Print Outbound Channel Adapter is shown below:

<int-print:outbound-channel-adapter id="printOutboundChannelAdapter"
	channel="input"
	copies="2"
	doc-flavor="java.lang.String"
	mime-type="text/plain; charset=utf-8"
	sides="DUPLEX"/>