Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2056 - in development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts: channels packaging

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: niclas AT hedhman.org
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r2056 - in development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts: channels packaging
  • Date: Sun, 13 Mar 2005 20:31:51 -0500

Author: niclas AT hedhman.org
Date: Sun Mar 13 20:31:51 2005
New Revision: 2056

Added:

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/Base1Packager.java
(contents, props changed)

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/Base1SubFieldPackager.java
(contents, props changed)

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/Base24Packager.java
(contents, props changed)

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/CtcSubElementPackager.java
(contents, props changed)

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/CtcSubFieldPackager.java
(contents, props changed)

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/EuroPackager.java
(contents, props changed)

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/EuroSubFieldPackager.java
(contents, props changed)

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/Visa1Packager.java
(contents, props changed)
Modified:

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/AsciiChannel.java

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/Base24Channel.java

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/Base24TcpChannel.java

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/CsChannel.java

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/LogChannel.java

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/NacChannel.java

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/NccChannel.java

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/PadChannel.java

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/PostChannel.java

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/RawChannel.java

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/VapChannel.java

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/X25Channel.java

development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/XmlChannel.java
Log:
Adding in wrappers for packagers.

Modified:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/AsciiChannel.java
==============================================================================
---
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/AsciiChannel.java
(original)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/AsciiChannel.java
Sun Mar 13 20:31:51 2005
@@ -38,7 +38,7 @@
{
/**
* @metro.logger name="Ascii"
- * @metro.dependency type="net.dpml.iso8583.Packager" key="packager"
+ * @metro.dependency type="org.jpos.iso.ISOPackager" key="packager"
*/
public AsciiChannel( Logger logger, ServiceManager man, Parameters
params )
throws ServiceException, ParameterException

Modified:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/Base24Channel.java
==============================================================================
---
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/Base24Channel.java
(original)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/Base24Channel.java
Sun Mar 13 20:31:51 2005
@@ -38,7 +38,7 @@
{
/**
* @metro.logger name="Base24"
- * @metro.dependency type="net.dpml.iso8583.Packager" key="packager"
+ * @metro.dependency type="org.jpos.iso.ISOPackager" key="packager"
*/
public Base24Channel( Logger logger, ServiceManager man, Parameters
params )
throws ServiceException, ParameterException

Modified:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/Base24TcpChannel.java
==============================================================================
---
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/Base24TcpChannel.java
(original)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/Base24TcpChannel.java
Sun Mar 13 20:31:51 2005
@@ -38,7 +38,7 @@
{
/**
* @metro.logger name="Base24Tcp"
- * @metro.dependency type="net.dpml.iso8583.Packager" key="packager"
+ * @metro.dependency type="org.jpos.iso.ISOPackager" key="packager"
*/
public Base24TcpChannel( Logger logger, ServiceManager man, Parameters
params )
throws ServiceException, ParameterException

Modified:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/CsChannel.java
==============================================================================
---
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/CsChannel.java
(original)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/CsChannel.java
Sun Mar 13 20:31:51 2005
@@ -38,7 +38,7 @@
{
/**
* @metro.logger name="CS"
- * @metro.dependency type="net.dpml.iso8583.Packager" key="packager"
+ * @metro.dependency type="org.jpos.iso.ISOPackager" key="packager"
*/
public CsChannel( Logger logger, ServiceManager man, Parameters params )
throws ServiceException, ParameterException

Modified:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/LogChannel.java
==============================================================================
---
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/LogChannel.java
(original)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/LogChannel.java
Sun Mar 13 20:31:51 2005
@@ -38,7 +38,7 @@
{
/**
* @metro.logger name="Log"
- * @metro.dependency type="net.dpml.iso8583.Packager" key="packager"
+ * @metro.dependency type="org.jpos.iso.ISOPackager" key="packager"
*/
public LogChannel( Logger logger, ServiceManager man, Parameters params )
throws ServiceException, ParameterException

Modified:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/NacChannel.java
==============================================================================
---
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/NacChannel.java
(original)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/NacChannel.java
Sun Mar 13 20:31:51 2005
@@ -40,7 +40,7 @@
{
/**
* @metro.logger name="NAC"
- * @metro.dependency type="net.dpml.iso8583.Packager" key="packager"
+ * @metro.dependency type="org.jpos.iso.ISOPackager" key="packager"
*/
public NacChannel( Logger logger, ServiceManager man, Parameters params )
throws ServiceException, ParameterException
@@ -62,7 +62,7 @@
for( int i = 0; st.hasMoreTokens(); i++ )
{
String token = st.nextToken();
- result[ i ] = Byte.parseByte( token );
+ result[ i ] = Byte.parseByte( token, 16 );
}
return result;
}

Modified:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/NccChannel.java
==============================================================================
---
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/NccChannel.java
(original)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/NccChannel.java
Sun Mar 13 20:31:51 2005
@@ -40,7 +40,7 @@
{
/**
* @metro.logger name="NCC"
- * @metro.dependency type="net.dpml.iso8583.Packager" key="packager"
+ * @metro.dependency type="org.jpos.iso.ISOPackager" key="packager"
*/
public NccChannel( Logger logger, ServiceManager man, Parameters params )
throws ServiceException, ParameterException
@@ -62,7 +62,7 @@
for( int i = 0; st.hasMoreTokens(); i++ )
{
String token = st.nextToken();
- result[ i ] = Byte.parseByte( token );
+ result[ i ] = Byte.parseByte( token, 16 );
}
return result;
}

Modified:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/PadChannel.java
==============================================================================
---
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/PadChannel.java
(original)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/PadChannel.java
Sun Mar 13 20:31:51 2005
@@ -38,7 +38,7 @@
{
/**
* @metro.logger name="PAD"
- * @metro.dependency type="net.dpml.iso8583.Packager" key="packager"
+ * @metro.dependency type="org.jpos.iso.ISOPackager" key="packager"
*/
public PadChannel( Logger logger, ServiceManager man, Parameters params )
throws ServiceException, ParameterException

Modified:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/PostChannel.java
==============================================================================
---
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/PostChannel.java
(original)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/PostChannel.java
Sun Mar 13 20:31:51 2005
@@ -38,7 +38,7 @@
{
/**
* @metro.logger name="Post"
- * @metro.dependency type="net.dpml.iso8583.Packager" key="packager"
+ * @metro.dependency type="org.jpos.iso.ISOPackager" key="packager"
*/
public PostChannel( Logger logger, ServiceManager man, Parameters params
)
throws ServiceException, ParameterException

Modified:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/RawChannel.java
==============================================================================
---
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/RawChannel.java
(original)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/RawChannel.java
Sun Mar 13 20:31:51 2005
@@ -40,7 +40,7 @@
{
/**
* @metro.logger name="NCC"
- * @metro.dependency type="net.dpml.iso8583.Packager" key="packager"
+ * @metro.dependency type="org.jpos.iso.ISOPackager" key="packager"
*/
public RawChannel( Logger logger, ServiceManager man, Parameters params )
throws ServiceException, ParameterException
@@ -62,7 +62,7 @@
for( int i = 0; st.hasMoreTokens(); i++ )
{
String token = st.nextToken();
- result[ i ] = Byte.parseByte( token );
+ result[ i ] = Byte.parseByte( token, 16 );
}
return result;
}

Modified:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/VapChannel.java
==============================================================================
---
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/VapChannel.java
(original)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/VapChannel.java
Sun Mar 13 20:31:51 2005
@@ -38,7 +38,7 @@
{
/**
* @metro.logger name="VAP"
- * @metro.dependency type="net.dpml.iso8583.Packager" key="packager"
+ * @metro.dependency type="org.jpos.iso.ISOPackager" key="packager"
*/
public VapChannel( Logger logger, ServiceManager man, Parameters params )
throws ServiceException, ParameterException

Modified:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/X25Channel.java
==============================================================================
---
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/X25Channel.java
(original)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/X25Channel.java
Sun Mar 13 20:31:51 2005
@@ -38,7 +38,7 @@
{
/**
* @metro.logger name="x.25"
- * @metro.dependency type="net.dpml.iso8583.Packager" key="packager"
+ * @metro.dependency type="org.jpos.iso.ISOPackager" key="packager"
*/
public X25Channel( Logger logger, ServiceManager man, Parameters params )
throws ServiceException, ParameterException

Modified:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/XmlChannel.java
==============================================================================
---
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/XmlChannel.java
(original)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/channels/XmlChannel.java
Sun Mar 13 20:31:51 2005
@@ -38,7 +38,7 @@
{
/**
* @metro.logger name="XML"
- * @metro.dependency type="net.dpml.iso8583.Packager" key="packager"
+ * @metro.dependency type="org.jpos.iso.ISOPackager" key="packager"
*/
public XmlChannel( Logger logger, ServiceManager man, Parameters params )
throws ServiceException, ParameterException

Added:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/Base1Packager.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/Base1Packager.java
Sun Mar 13 20:31:51 2005
@@ -0,0 +1,40 @@
+/*
+* Copyright 2004-2005 Niclas Hedhman.
+ *
+ * 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.
+ */
+
+package net.dpml.iso8583.parts.packaging;
+
+import net.dpml.logging.Logger;
+
+import org.jpos.iso.ISOPackager;
+
+/** Metro Wrapper for the Base1Packager in JPos.
+ *
+ * @metro.component name="base1-packager" lifestyle="singleton"
+ * @metro.service type="org.jpos.iso.ISOPackager"
+ */
+public class Base1Packager extends org.jpos.iso.packager.Base1Packager
+{
+ /**
+ * @metro.logger name="base1"
+ */
+ public Base1Packager( Logger logger )
+ {
+ super();
+ }
+}
+

Added:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/Base1SubFieldPackager.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/Base1SubFieldPackager.java
Sun Mar 13 20:31:51 2005
@@ -0,0 +1,40 @@
+/*
+* Copyright 2004-2005 Niclas Hedhman.
+ *
+ * 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.
+ */
+
+package net.dpml.iso8583.parts.packaging;
+
+import net.dpml.logging.Logger;
+
+import org.jpos.iso.ISOPackager;
+
+/** Metro Wrapper for the Base1SubFieldPackager in JPos.
+ *
+ * @metro.component name="base1-subfield-packager" lifestyle="singleton"
+ * @metro.service type="org.jpos.iso.ISOPackager"
+ */
+public class Base1SubFieldPackager extends
org.jpos.iso.packager.Base1SubFieldPackager
+{
+ /**
+ * @metro.logger name="base1"
+ */
+ public Base1SubFieldPackager( Logger logger )
+ {
+ super();
+ }
+}
+

Added:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/Base24Packager.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/Base24Packager.java
Sun Mar 13 20:31:51 2005
@@ -0,0 +1,40 @@
+/*
+* Copyright 2004-2005 Niclas Hedhman.
+ *
+ * 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.
+ */
+
+package net.dpml.iso8583.parts.packaging;
+
+import net.dpml.logging.Logger;
+
+import org.jpos.iso.ISOPackager;
+
+/** Metro Wrapper for the Base24Packager in JPos.
+ *
+ * @metro.component name="base24-packager" lifestyle="singleton"
+ * @metro.service type="org.jpos.iso.ISOPackager"
+ */
+public class Base24Packager extends org.jpos.iso.packager.BASE24Packager
+{
+ /**
+ * @metro.logger name="base24"
+ */
+ public Base24Packager( Logger logger )
+ {
+ super();
+ }
+}
+

Added:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/CtcSubElementPackager.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/CtcSubElementPackager.java
Sun Mar 13 20:31:51 2005
@@ -0,0 +1,40 @@
+/*
+* Copyright 2004-2005 Niclas Hedhman.
+ *
+ * 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.
+ */
+
+package net.dpml.iso8583.parts.packaging;
+
+import net.dpml.logging.Logger;
+
+import org.jpos.iso.ISOPackager;
+
+/** Metro Wrapper for the CTCSubElementPackager in JPos.
+ *
+ * @metro.component name="base1-packager" lifestyle="singleton"
+ * @metro.service type="org.jpos.iso.ISOPackager"
+ */
+public class CtcSubElementPackager extends
org.jpos.iso.packager.CTCSubElementPackager
+{
+ /**
+ * @metro.logger name="ctc-se"
+ */
+ public CtcSubElementPackager( Logger logger )
+ {
+ super();
+ }
+}
+

Added:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/CtcSubFieldPackager.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/CtcSubFieldPackager.java
Sun Mar 13 20:31:51 2005
@@ -0,0 +1,40 @@
+/*
+* Copyright 2004-2005 Niclas Hedhman.
+ *
+ * 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.
+ */
+
+package net.dpml.iso8583.parts.packaging;
+
+import net.dpml.logging.Logger;
+
+import org.jpos.iso.ISOPackager;
+
+/** Metro Wrapper for the CTCSubFieldPackager in JPos.
+ *
+ * @metro.component name="base1-packager" lifestyle="singleton"
+ * @metro.service type="org.jpos.iso.ISOPackager"
+ */
+public class CtcSubFieldPackager extends
org.jpos.iso.packager.CTCSubFieldPackager
+{
+ /**
+ * @metro.logger name="ctc-se"
+ */
+ public CtcSubFieldPackager( Logger logger )
+ {
+ super();
+ }
+}
+

Added:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/EuroPackager.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/EuroPackager.java
Sun Mar 13 20:31:51 2005
@@ -0,0 +1,40 @@
+/*
+* Copyright 2004-2005 Niclas Hedhman.
+ *
+ * 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.
+ */
+
+package net.dpml.iso8583.parts.packaging;
+
+import net.dpml.logging.Logger;
+
+import org.jpos.iso.ISOPackager;
+
+/** Metro Wrapper for the EuroPackager in JPos.
+ *
+ * @metro.component name="euro-packager" lifestyle="singleton"
+ * @metro.service type="org.jpos.iso.ISOPackager"
+ */
+public class EuroPackager extends org.jpos.iso.packager.EuroPackager
+{
+ /**
+ * @metro.logger name="euro"
+ */
+ public EuroPackager( Logger logger )
+ {
+ super();
+ }
+}
+

Added:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/EuroSubFieldPackager.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/EuroSubFieldPackager.java
Sun Mar 13 20:31:51 2005
@@ -0,0 +1,40 @@
+/*
+* Copyright 2004-2005 Niclas Hedhman.
+ *
+ * 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.
+ */
+
+package net.dpml.iso8583.parts.packaging;
+
+import net.dpml.logging.Logger;
+
+import org.jpos.iso.ISOPackager;
+
+/** Metro Wrapper for the EuroSubFieldPackager in JPos.
+ *
+ * @metro.component name="euro-subfield-packager" lifestyle="singleton"
+ * @metro.service type="org.jpos.iso.ISOPackager"
+ */
+public class EuroSubFieldPackager extends
org.jpos.iso.packager.EuroSubFieldPackager
+{
+ /**
+ * @metro.logger name="euro-subfield"
+ */
+ public EuroSubFieldPackager( Logger logger )
+ {
+ super();
+ }
+}
+

Added:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/Visa1Packager.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/Visa1Packager.java
Sun Mar 13 20:31:51 2005
@@ -0,0 +1,67 @@
+/*
+* Copyright 2004-2005 Niclas Hedhman.
+ *
+ * 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.
+ */
+
+package net.dpml.iso8583.parts.packaging;
+
+import java.util.StringTokenizer;
+
+import net.dpml.logging.Logger;
+
+import net.dpml.parameters.ParameterException;
+import net.dpml.parameters.Parameters;
+
+import net.dpml.service.ServiceException;
+import net.dpml.service.ServiceManager;
+
+import org.jpos.iso.ISOPackager;
+
+/** Metro Wrapper for the VISA1 Packager in JPos.
+ *
+ * @metro.component name="visa1-packager" lifestyle="singleton"
+ * @metro.service type="org.jpos.iso.ISOPackager"
+ */
+public class Visa1Packager extends org.jpos.iso.packager.VISA1Packager
+{
+ /**
+ * @metro.logger name="visa1"
+ */
+ public Visa1Packager( Logger logger, Parameters params )
+ throws ServiceException, ParameterException
+ {
+ super( convertIntegerArray( params ),
+ params.getParameterAsInteger( "response-field" ),
+ params.getParameter( "bas-result-code" ),
+ params.getParameter( "ok-pattern" )
+ );
+ }
+
+ private static int[] convertIntegerArray( Parameters params )
+ throws ParameterException
+ {
+ String values = params.getParameter( "sequence" );
+ StringTokenizer st = new StringTokenizer( values, ", ", false );
+ int size = st.countTokens();
+ int[] result = new int[ size ];
+ for( int i = 0; st.hasMoreTokens(); i++ )
+ {
+ String token = st.nextToken();
+ result[ i ] = Integer.parseInt( token, 16 );
+ }
+ return result;
+ }
+}



  • svn commit: r2056 - in development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts: channels packaging, niclas, 03/13/2005

Archive powered by MHonArc 2.6.24.

Top of Page