Move to jrekt project (#2)

* Move to jrekt project

* Add parent pom
This commit is contained in:
Pavel Popov 2019-01-25 14:29:44 +03:00 committed by GitHub
parent 05fece5527
commit aa9d6a7d35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
41 changed files with 113 additions and 524 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "build_utils"]
path = build_utils
url = git@github.com:rbkmoney/build_utils.git

View File

@ -1,16 +0,0 @@
language: java
jdk:
- oraclejdk8
- oraclejdk9
- openjdk10
- openjdk11
cache:
directories:
- $HOME/.m2
after_success:
- mvn javadoc:javadoc
- echo "<settings><servers><server><id>ossrh</id><username>\${env.OSSRH_USER}</username><password>\${env.OSSRH_PASS}</password></server></servers></settings>" > ~/settings.xml
- mvn deploy --settings ~/settings.xml
- rm ~/settings.xml

13
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,13 @@
#!groovy
build('woody_java', 'docker-host') {
checkoutRepo()
loadBuildUtils()
def javaLibPipeline
runStage('load JavaLib pipeline') {
javaLibPipeline = load("build_utils/jenkins_lib/pipeJavaLib.groovy")
}
def buildImageTag = "4799280a02cb73761a3ba3641285aac8ec4ec482"
javaLibPipeline(buildImageTag)
}

202
LICENSE
View File

@ -1,202 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright {yyyy} {name of copyright owner}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -1,28 +1,17 @@
# JReactive-8583
# JRekt-8583
Free ISO8583 Java Connector
ISO8583 Java Connector
[![Travis](https://img.shields.io/travis/kpavlov/jreactive-8583/master.svg?maxAge=2592000)](https://travis-ci.org/kpavlov/jreactive-8583)
![Libraries.io for GitHub](https://img.shields.io/librariesio/github/kpavlov/jreactive-8583.svg?maxAge=2592000)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c8d9680f5cae470ea7cbb152e1134ef5)](https://www.codacy.com/app/kpavlov/jreactive-8583?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=kpavlov/jreactive-8583&amp;utm_campaign=Badge_Grade)
## Motivation
1. [jPOS][jpos] library is not free for commercial use.
2. [j8583][j8583] is free but does not offer network client
Solution: **"J-Reactive-8583"** ISO8583 Client and Server built on top of excellent [Netty][netty] asynchronous messaging framework with the help of [j8583][j8583] for encoding/decoding. It is distributed under Apache License 2.0.
**"J-Rekt-8583"** ISO8583 Client and Server built on top of excellent [Netty][netty] asynchronous messaging framework with the help of [j8583][j8583] for encoding/decoding. Based on: https://github.com/kpavlov/jreactive-8583
## Supported Features
* Client and Server endpoints.
* Support ISO8583 messages using [j8583][j8583] library.
* Customizable [ISO MessageFactory][j8583-message-factory].
* Customizable ISO MessageFactory.
* Automatic responding to Echo messages.
* Automatic client reconnection.
* Secure [message logger](https://github.com/kpavlov/jreactive-8583/blob/master/src/main/java/com/github/kpavlov/jreactive8583/netty/pipeline/IsoMessageLoggingHandler.java): mask PAN and track data or any any other field (customizable). Optionally prints field descriptions.
* Secure **message logger**: mask PAN and track data or any any other field (customizable). Optionally prints field descriptions.
* Configurable netty [Bootstrap](https://github.com/netty/netty/blob/master/transport/src/main/java/io/netty/bootstrap/Bootstrap.java) and [ChannelPipeline](https://github.com/netty/netty/blob/master/transport/src/main/java/io/netty/channel/ChannelPipeline.java)
## ISO8583 TCP/IP Transport
@ -43,22 +32,6 @@ The high byte of value is transmitted first, and the low byte of value is transm
| ------------------ | ------------------ |
| Message Length = M | ISO8583 Message |
# Getting Started
First, you need to [download latest release](https://github.com/kpavlov/jreactive-8583/releases) or clone this repository and build artifact with maven manually.
Then add dependency to your project:
<dependencies>
<dependency>
<groupId>com.github.kpavlov.jreactive8583</groupId>
<artifactId>netty-iso8583</artifactId>
<version>0.2.2</version>
</dependency>
</dependencies>
Now you may use ISO8583 client or server in your code.
## Creating and Using ISO-8583 Client
The minimal client workflow includes:
@ -90,8 +63,8 @@ client.shutdown();// [11]
~~~
1. First you need to create a `MessageFactory`
2. Then you create a [`Iso8583Client`][Iso8583Client] providing `MessageFactory` and, optionally, `SocketAddress`
3. Add one or more custom [`IsoMessageListener`][IsoMessageListener]s to handle `IsoMessage`s.
2. Then you create a `Iso8583Client` providing `MessageFactory` and, optionally, `SocketAddress`
3. Add one or more custom `IsoMessageListener`s to handle `IsoMessage`s.
4. Configure the client. You may omit this step if you're fine with default configuration.
5. Initialize client. Now it is ready to connect.
6. Establish a connection. By default, if connection will is lost, it reconnects automatically. You may disable this behaviour or change _reconnectInterval_.
@ -125,8 +98,8 @@ server.shutdown();// [8]
~~~
1. First you need to create a `MessageFactory`
2. Then you create a [`Iso8583Server`][Iso8583Server] providing `MessageFactory` and port to bind to
3. Add one or more custom [`IsoMessageListener`][IsoMessageListener]s to handle `IsoMessage`s.
2. Then you create a `Iso8583Server` providing `MessageFactory` and port to bind to
3. Add one or more custom `IsoMessageListener`s to handle `IsoMessage`s.
4. Configure the server. You may omit this step if you're fine with default configuration.
5. Initialize server. Now it is ready to start.
6. Start server. Now it is ready to accept client connections.
@ -135,7 +108,7 @@ server.shutdown();// [8]
## Logging
Default [`IsoMessageLoggingHandler`][IsoMessageLoggingHandler] may produce output like:
Default `IsoMessageLoggingHandler` may produce output like:
312 [nioEventLoopGroup-5-1] DEBUG IsoMessageLoggingHandler - [id: 0xa72cc005, /127.0.0.1:50853 => /127.0.0.1:9876] MTI: 0x0200
2: [Primary account number (PAN):NUMERIC(19)] = '000400*********0002'
@ -161,13 +134,7 @@ You may:
- enable and disable printing field descriptions
- customize tcp frame length field length
See
[ConnectorConfiguration](./blob/master/src/main/java/com/github/kpavlov/jreactive8583/ConnectorConfiguration.java),
[ServerConfiguration](./blob/master/src/main/java/com/github/kpavlov/jreactive8583/server/ServerConfiguration.java) and
[ClientConfiguration](./blob/master/src/main/java/com/github/kpavlov/jreactive8583/client/ClientConfiguration.java).
---
For frequently asked questions check the [FAQ](https://github.com/kpavlov/jreactive-8583/wiki/FAQ) page.
## ISO 8583 Links
@ -183,7 +150,3 @@ For frequently asked questions check the [FAQ](https://github.com/kpavlov/jreact
[jpos]: http://jpos.org
[netty]: https://netty.io
[Iso8583Client]: https://github.com/kpavlov/jreactive-8583/blob/master/src/main/java/com/github/kpavlov/jreactive8583/client/Iso8583Client.java
[Iso8583Server]: https://github.com/kpavlov/jreactive-8583/blob/master/src/main/java/com/github/kpavlov/jreactive8583/server/Iso8583Server.java
[IsoMessageListener]: https://github.com/kpavlov/jreactive-8583/blob/master/src/main/java/com/github/kpavlov/jreactive8583/IsoMessageListener.java
[IsoMessageLoggingHandler]: https://github.com/kpavlov/jreactive-8583/blob/master/src/main/java/com/github/kpavlov/jreactive8583/netty/pipeline/IsoMessageLoggingHandler.java

1
build_utils Submodule

@ -0,0 +1 @@
Subproject commit 39039dfc60249c8631b996cf60d4f8c4d64c30cd

189
pom.xml
View File

@ -2,7 +2,13 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.kpavlov.jreactive8583</groupId>
<parent>
<groupId>com.rbkmoney</groupId>
<artifactId>parent</artifactId>
<version>1.0.3</version>
</parent>
<groupId>com.rbkmoney.jrekt8583</groupId>
<artifactId>netty-iso8583</artifactId>
<version>0.2.3-SNAPSHOT</version>
@ -11,8 +17,6 @@
ISO8583 protocol client and server Netty connectors.
</description>
<url>https://github.com/kpavlov/jreactive-8583</url>
<properties>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
@ -27,51 +31,6 @@
<spring.version>5.1.3.RELEASE</spring.version>
</properties>
<issueManagement>
<system>GITHUB</system>
<url>https://github.com/kpavlov/jreactive-8583/issues</url>
</issueManagement>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<scm>
<connection>scm:git:git@github.com:kpavlov/jreactive-8583.git</connection>
<developerConnection>scm:git:git@github.com:kpavlov/jreactive-8583.git</developerConnection>
<url>https://github.com/kpavlov/jreactive-8583</url>
<tag>HEAD</tag>
</scm>
<inceptionYear>2015</inceptionYear>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<id>kpavlov</id>
<name>Konstantin Pavlov</name>
<email>mail@KonstantinPavlov.net</email>
<url>https://KonstantinPavlov.net?utm_source=jreactive8583</url>
<roles>
<role>owner</role>
<role>developer</role>
</roles>
</developer>
</developers>
<dependencies>
<dependency>
<groupId>net.sf.j8583</groupId>
@ -140,7 +99,6 @@
<version>1.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
@ -164,36 +122,6 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M2</version>
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<bannedPlugins>
<!-- will only display a warning but does not fail the build. -->
<level>WARN</level>
<excludes>
<exclude>org.apache.maven.plugins:maven-verifier-plugin</exclude>
</excludes>
<message>Please consider using the maven-invoker-plugin
(http://maven.apache.org/plugins/maven-invoker-plugin/)!
</message>
</bannedPlugins>
<requireJavaVersion>
<version>${java.version}</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
@ -211,20 +139,6 @@
<parallel>none</parallel>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<!-- http://central.sonatype.org/pages/apache-maven.html -->
<tagNameFormat>v@{project.version}</tagNameFormat>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release nexus-staging:release</releaseProfiles>
<goals>deploy</goals>
</configuration>
</plugin>
</plugins>
<pluginManagement>
@ -242,93 +156,4 @@
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<links>
<link>http://download.oracle.com/javase/8/docs/api/</link>
<link>http://slf4j.org/apidocs/</link>
</links>
<tags>
<tag>
<name>todo</name>
<placement>a</placement>
<head>To Do:</head>
</tag>
<tag>
<name>apiNote</name>
<placement>a</placement>
<head>API Note:</head>
</tag>
<tag>
<name>implSpec</name>
<placement>a</placement>
<head>Implementation Specification:</head>
</tag>
<tag>
<name>implNote</name>
<placement>a</placement>
<head>Implementation Note:</head>
</tag>
</tags>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

View File

@ -1,7 +1,7 @@
package com.github.kpavlov.jreactive8583;
package com.rbkmoney.jrekt8583;
import com.github.kpavlov.jreactive8583.netty.pipeline.CompositeIsoMessageHandler;
import com.github.kpavlov.jreactive8583.netty.pipeline.EchoMessageListener;
import com.rbkmoney.jrekt8583.netty.pipeline.CompositeIsoMessageHandler;
import com.rbkmoney.jrekt8583.netty.pipeline.EchoMessageListener;
import com.solab.iso8583.IsoMessage;
import com.solab.iso8583.MessageFactory;
import io.netty.bootstrap.AbstractBootstrap;

View File

@ -1,8 +1,8 @@
package com.github.kpavlov.jreactive8583;
package com.rbkmoney.jrekt8583;
import com.github.kpavlov.jreactive8583.netty.pipeline.CompositeIsoMessageHandler;
import com.github.kpavlov.jreactive8583.netty.pipeline.EchoMessageListener;
import com.github.kpavlov.jreactive8583.netty.pipeline.IsoMessageLoggingHandler;
import com.rbkmoney.jrekt8583.netty.pipeline.CompositeIsoMessageHandler;
import com.rbkmoney.jrekt8583.netty.pipeline.EchoMessageListener;
import com.rbkmoney.jrekt8583.netty.pipeline.IsoMessageLoggingHandler;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.EventLoopGroup;
import io.netty.handler.codec.LengthFieldBasedFrameDecoder;

View File

@ -1,5 +1,6 @@
package com.github.kpavlov.jreactive8583;
package com.rbkmoney.jrekt8583;
import com.rbkmoney.jrekt8583.netty.pipeline.Iso8583ChannelInitializer;
import io.netty.bootstrap.AbstractBootstrap;
import io.netty.channel.ChannelPipeline;
@ -23,7 +24,7 @@ public interface ConnectorConfigurer<C extends ConnectorConfiguration, B extends
* Hook added before completion of the pipeline configuration.
* <p>
* This method is called during
* {@link com.github.kpavlov.jreactive8583.netty.pipeline.Iso8583ChannelInitializer#initChannel(io.netty.channel.Channel)} phase.
* {@link Iso8583ChannelInitializer#initChannel(io.netty.channel.Channel)} phase.
* </p>
*
* @param pipeline A {@link ChannelPipeline} being configured

View File

@ -1,4 +1,4 @@
package com.github.kpavlov.jreactive8583;
package com.rbkmoney.jrekt8583;
import com.solab.iso8583.IsoMessage;
import io.netty.channel.ChannelHandlerContext;

View File

@ -1,6 +1,6 @@
package com.github.kpavlov.jreactive8583.client;
package com.rbkmoney.jrekt8583.client;
import com.github.kpavlov.jreactive8583.ConnectorConfiguration;
import com.rbkmoney.jrekt8583.ConnectorConfiguration;
public class ClientConfiguration extends ConnectorConfiguration {

View File

@ -1,8 +1,8 @@
package com.github.kpavlov.jreactive8583.client;
package com.rbkmoney.jrekt8583.client;
import com.github.kpavlov.jreactive8583.AbstractIso8583Connector;
import com.github.kpavlov.jreactive8583.netty.pipeline.Iso8583ChannelInitializer;
import com.github.kpavlov.jreactive8583.netty.pipeline.ReconnectOnCloseListener;
import com.rbkmoney.jrekt8583.AbstractIso8583Connector;
import com.rbkmoney.jrekt8583.netty.pipeline.Iso8583ChannelInitializer;
import com.rbkmoney.jrekt8583.netty.pipeline.ReconnectOnCloseListener;
import com.solab.iso8583.IsoMessage;
import com.solab.iso8583.MessageFactory;
import io.netty.bootstrap.Bootstrap;

View File

@ -1,5 +1,6 @@
package com.github.kpavlov.jreactive8583.netty.codec;
package com.rbkmoney.jrekt8583.netty.codec;
import com.rbkmoney.jrekt8583.netty.pipeline.Iso8583ChannelInitializer;
import com.solab.iso8583.IsoMessage;
import com.solab.iso8583.MessageFactory;
import io.netty.buffer.ByteBuf;
@ -20,7 +21,7 @@ public class Iso8583Decoder extends ByteToMessageDecoder {
/**
* @implNote Message body starts immediately, no length header,
* see <code>"lengthFieldFameDecoder"</code> in
* {@link com.github.kpavlov.jreactive8583.netty.pipeline.Iso8583ChannelInitializer#initChannel}
* {@link Iso8583ChannelInitializer#initChannel}
*/
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf byteBuf, List out) throws Exception {

View File

@ -1,4 +1,4 @@
package com.github.kpavlov.jreactive8583.netty.codec;
package com.rbkmoney.jrekt8583.netty.codec;
import com.solab.iso8583.IsoMessage;
import io.netty.buffer.ByteBuf;

View File

@ -1,6 +1,6 @@
package com.github.kpavlov.jreactive8583.netty.pipeline;
package com.rbkmoney.jrekt8583.netty.pipeline;
import com.github.kpavlov.jreactive8583.IsoMessageListener;
import com.rbkmoney.jrekt8583.IsoMessageListener;
import com.solab.iso8583.IsoMessage;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;

View File

@ -1,6 +1,6 @@
package com.github.kpavlov.jreactive8583.netty.pipeline;
package com.rbkmoney.jrekt8583.netty.pipeline;
import com.github.kpavlov.jreactive8583.IsoMessageListener;
import com.rbkmoney.jrekt8583.IsoMessageListener;
import com.solab.iso8583.IsoMessage;
import com.solab.iso8583.MessageFactory;
import io.netty.channel.ChannelHandlerContext;

View File

@ -1,4 +1,4 @@
package com.github.kpavlov.jreactive8583.netty.pipeline;
package com.rbkmoney.jrekt8583.netty.pipeline;
import com.solab.iso8583.IsoMessage;
import com.solab.iso8583.MessageFactory;

View File

@ -14,12 +14,12 @@
* under the License.
*/
package com.github.kpavlov.jreactive8583.netty.pipeline;
package com.rbkmoney.jrekt8583.netty.pipeline;
import com.github.kpavlov.jreactive8583.ConnectorConfiguration;
import com.github.kpavlov.jreactive8583.ConnectorConfigurer;
import com.github.kpavlov.jreactive8583.netty.codec.Iso8583Decoder;
import com.github.kpavlov.jreactive8583.netty.codec.Iso8583Encoder;
import com.rbkmoney.jrekt8583.ConnectorConfiguration;
import com.rbkmoney.jrekt8583.ConnectorConfigurer;
import com.rbkmoney.jrekt8583.netty.codec.Iso8583Decoder;
import com.rbkmoney.jrekt8583.netty.codec.Iso8583Encoder;
import com.solab.iso8583.MessageFactory;
import io.netty.bootstrap.AbstractBootstrap;
import io.netty.channel.Channel;

View File

@ -1,4 +1,4 @@
package com.github.kpavlov.jreactive8583.netty.pipeline;
package com.rbkmoney.jrekt8583.netty.pipeline;
import com.solab.iso8583.IsoMessage;
import com.solab.iso8583.IsoValue;
@ -31,7 +31,7 @@ public class IsoMessageLoggingHandler extends LoggingHandler {
private static final String[] FIELD_NAMES = new String[128];
static {
try (InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream("com/github/kpavlov/jreactive8583/iso8583fields.properties")) {
try (InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream("com/rbkmoney/jrekt8583/iso8583fields.properties")) {
final Properties properties = new Properties();
properties.load(stream);
properties.forEach((key, value) -> {

View File

@ -1,4 +1,4 @@
package com.github.kpavlov.jreactive8583.netty.pipeline;
package com.rbkmoney.jrekt8583.netty.pipeline;
import com.solab.iso8583.IsoMessage;
import com.solab.iso8583.IsoType;

View File

@ -1,6 +1,6 @@
package com.github.kpavlov.jreactive8583.netty.pipeline;
package com.rbkmoney.jrekt8583.netty.pipeline;
import com.github.kpavlov.jreactive8583.client.Iso8583Client;
import com.rbkmoney.jrekt8583.client.Iso8583Client;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;

View File

@ -1,7 +1,7 @@
package com.github.kpavlov.jreactive8583.server;
package com.rbkmoney.jrekt8583.server;
import com.github.kpavlov.jreactive8583.AbstractIso8583Connector;
import com.github.kpavlov.jreactive8583.netty.pipeline.Iso8583ChannelInitializer;
import com.rbkmoney.jrekt8583.AbstractIso8583Connector;
import com.rbkmoney.jrekt8583.netty.pipeline.Iso8583ChannelInitializer;
import com.solab.iso8583.IsoMessage;
import com.solab.iso8583.MessageFactory;
import io.netty.bootstrap.ServerBootstrap;

View File

@ -1,6 +1,6 @@
package com.github.kpavlov.jreactive8583.server;
package com.rbkmoney.jrekt8583.server;
import com.github.kpavlov.jreactive8583.ConnectorConfiguration;
import com.rbkmoney.jrekt8583.ConnectorConfiguration;
public class ServerConfiguration extends ConnectorConfiguration {

View File

@ -1,6 +1,6 @@
package com.github.kpavlov.jreactive8583;
package com.rbkmoney.jrekt8583;
import com.github.kpavlov.jreactive8583.netty.pipeline.CompositeIsoMessageHandler;
import com.rbkmoney.jrekt8583.netty.pipeline.CompositeIsoMessageHandler;
import com.solab.iso8583.IsoMessage;
import com.solab.iso8583.MessageFactory;
import io.netty.bootstrap.AbstractBootstrap;

View File

@ -1,7 +1,7 @@
package com.github.kpavlov.jreactive8583.example;
package com.rbkmoney.jrekt8583.example;
import com.github.kpavlov.jreactive8583.client.Iso8583Client;
import com.github.kpavlov.jreactive8583.server.Iso8583Server;
import com.rbkmoney.jrekt8583.client.Iso8583Client;
import com.rbkmoney.jrekt8583.server.Iso8583Server;
import com.solab.iso8583.IsoMessage;
import net.jcip.annotations.NotThreadSafe;
import org.junit.jupiter.api.AfterEach;

View File

@ -1,4 +1,4 @@
package com.github.kpavlov.jreactive8583.example;
package com.rbkmoney.jrekt8583.example;
import org.junit.jupiter.api.Test;

View File

@ -1,6 +1,6 @@
package com.github.kpavlov.jreactive8583.example;
package com.rbkmoney.jrekt8583.example;
import com.github.kpavlov.jreactive8583.IsoMessageListener;
import com.rbkmoney.jrekt8583.IsoMessageListener;
import com.solab.iso8583.IsoMessage;
import com.solab.iso8583.IsoType;
import io.netty.channel.ChannelHandlerContext;

View File

@ -1,9 +1,9 @@
package com.github.kpavlov.jreactive8583.example;
package com.rbkmoney.jrekt8583.example;
import com.github.kpavlov.jreactive8583.ConnectorConfigurer;
import com.github.kpavlov.jreactive8583.IsoMessageListener;
import com.github.kpavlov.jreactive8583.server.Iso8583Server;
import com.github.kpavlov.jreactive8583.server.ServerConfiguration;
import com.rbkmoney.jrekt8583.ConnectorConfigurer;
import com.rbkmoney.jrekt8583.IsoMessageListener;
import com.rbkmoney.jrekt8583.server.Iso8583Server;
import com.rbkmoney.jrekt8583.server.ServerConfiguration;
import com.solab.iso8583.IsoMessage;
import com.solab.iso8583.IsoType;
import io.netty.bootstrap.ServerBootstrap;

View File

@ -1,9 +1,9 @@
package com.github.kpavlov.jreactive8583.example;
package com.rbkmoney.jrekt8583.example;
import com.github.kpavlov.jreactive8583.IsoMessageListener;
import com.github.kpavlov.jreactive8583.client.Iso8583Client;
import com.github.kpavlov.jreactive8583.server.Iso8583Server;
import com.rbkmoney.jrekt8583.IsoMessageListener;
import com.rbkmoney.jrekt8583.client.Iso8583Client;
import com.rbkmoney.jrekt8583.server.Iso8583Server;
import com.solab.iso8583.IsoMessage;
import com.solab.iso8583.IsoType;
import io.netty.channel.ChannelHandlerContext;

View File

@ -1,7 +1,7 @@
package com.github.kpavlov.jreactive8583.example;
package com.rbkmoney.jrekt8583.example;
import com.github.kpavlov.jreactive8583.example.client.Iso8583ClientConfig;
import com.github.kpavlov.jreactive8583.example.server.Iso8583ServerConfig;
import com.rbkmoney.jrekt8583.example.client.Iso8583ClientConfig;
import com.rbkmoney.jrekt8583.example.server.Iso8583ServerConfig;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

View File

@ -1,4 +1,4 @@
package com.github.kpavlov.jreactive8583.example;
package com.rbkmoney.jrekt8583.example;
import java.util.function.BooleanSupplier;

View File

@ -1,7 +1,7 @@
package com.github.kpavlov.jreactive8583.example.client;
package com.rbkmoney.jrekt8583.example.client;
import com.github.kpavlov.jreactive8583.client.ClientConfiguration;
import com.github.kpavlov.jreactive8583.client.Iso8583Client;
import com.rbkmoney.jrekt8583.client.ClientConfiguration;
import com.rbkmoney.jrekt8583.client.Iso8583Client;
import com.solab.iso8583.IsoMessage;
import com.solab.iso8583.MessageFactory;
import com.solab.iso8583.impl.SimpleTraceGenerator;

View File

@ -1,7 +1,7 @@
package com.github.kpavlov.jreactive8583.example.server;
package com.rbkmoney.jrekt8583.example.server;
import com.github.kpavlov.jreactive8583.server.Iso8583Server;
import com.github.kpavlov.jreactive8583.server.ServerConfiguration;
import com.rbkmoney.jrekt8583.server.Iso8583Server;
import com.rbkmoney.jrekt8583.server.ServerConfiguration;
import com.solab.iso8583.IsoMessage;
import com.solab.iso8583.MessageFactory;
import com.solab.iso8583.parse.ConfigParser;

View File

@ -1,4 +1,4 @@
package com.github.kpavlov.jreactive8583.netty.codec;
package com.rbkmoney.jrekt8583.netty.codec;
import com.solab.iso8583.MessageFactory;
import io.netty.buffer.ByteBuf;

View File

@ -1,6 +1,6 @@
package com.github.kpavlov.jreactive8583.netty.pipeline;
package com.rbkmoney.jrekt8583.netty.pipeline;
import com.github.kpavlov.jreactive8583.IsoMessageListener;
import com.rbkmoney.jrekt8583.IsoMessageListener;
import com.solab.iso8583.IsoMessage;
import io.netty.channel.ChannelHandlerContext;
import org.junit.jupiter.api.BeforeEach;

View File

@ -1,8 +1,8 @@
package com.github.kpavlov.jreactive8583.netty.pipeline;
package com.rbkmoney.jrekt8583.netty.pipeline;
import com.github.kpavlov.jreactive8583.ConnectorConfiguration;
import com.github.kpavlov.jreactive8583.ConnectorConfigurer;
import com.github.kpavlov.jreactive8583.server.ServerConfiguration;
import com.rbkmoney.jrekt8583.ConnectorConfiguration;
import com.rbkmoney.jrekt8583.ConnectorConfigurer;
import com.rbkmoney.jrekt8583.server.ServerConfiguration;
import com.solab.iso8583.MessageFactory;
import io.netty.bootstrap.AbstractBootstrap;
import io.netty.channel.Channel;

View File

@ -1,4 +1,4 @@
package com.github.kpavlov.jreactive8583.netty.pipeline;
package com.rbkmoney.jrekt8583.netty.pipeline;
import com.solab.iso8583.IsoMessage;
import com.solab.iso8583.IsoType;

View File

@ -1,4 +1,4 @@
package com.github.kpavlov.jreactive8583.netty.pipeline;
package com.rbkmoney.jrekt8583.netty.pipeline;
import com.solab.iso8583.IsoMessage;
import com.solab.iso8583.IsoType;

View File

@ -2,5 +2,5 @@
org.slf4j.simpleLogger.showDateTime = true
org.slf4j.simpleLogger.showShortLogName = true
org.slf4j.simpleLogger.showThreadName=true
org.slf4j.simpleLogger.log.com.github.kpavlov.jreactive8583=debug
org.slf4j.simpleLogger.log.com.github.kpavlov.jreactive8583.netty.pipeline.CompositeIsoMessageHandler=info
org.slf4j.simpleLogger.log.com.rbkmoney.jrekt8583=debug
org.slf4j.simpleLogger.log.com.rbkmoney.jrekt8583.netty.pipeline.CompositeIsoMessageHandler=info