PfxClient

Purpose

This module enables all other modules to connect to the Pricefx server.

Configuration

Configuration depends on complexity:

  • If you work with just one partition, use auto configuration.

  • If you work with more partitions, use Spring bean configuration.

Auto Configuration

Auto configuration of PfxClient can be used in simple cases where you need to connect just one partition. This configuration starts a bean of the type net.pricefx.integration.api.client.PriceFxClient with name pricefx in the Spring context.

Property

Default Value

Notes

Property

Default Value

Notes

pfx.url

 

Add pricefx at the end, e.g. https://staging.pricefx.eu/pricefx

pfx.partition

 

 

pfx.username

 

 

pfx.password

 

 

pfx.twoFactorAuthSecurityToken

 

 

pfx.debug

false

Turns the debug mode on - then you can see HTTPS contents. In production it is typically off.

pfx.connectTimeout

6000

If the value is not specified, default value (6000 ms = 6s) is applied.

pfx.acceptGZIPResponse

false

Relates the to GZIP response setting on the server. Rarely used. 

Spring Bean Configuration

If more partitions are connected, use Spring bean configuration.

Example:

<pfx:connection id="pricefx" uri="https://qa.pricefx.eu/pricefx" partition="mvich" username="test" password="test" debug="false"/>

 

Attribute

Default value

Mandatory?

Notes

Attribute

Default value

Mandatory?

Notes

uri

 

Yes

 

partition

 

Yes

 

username

 

Yes

 

password

 

Yes

 

connectTimeout

6000

No

If the value is not specified, default value (6000 ms = 6 s) is applied.

debug

false

No

 

twoFactorAuthSecurityToken

 

No

 

See also the connection element.

System Properties

Attribute

Default value

Notes

Attribute

Default value

Notes

integration.pfx.read-timeout

3_600_000 ms

Read timeout interval, in milliseconds.

integration.pfx.connect-timeout

6000ms

Connect timeout interval, in milliseconds.

integration.pfx.socket-timeout

3_600_000 ms

Socket timeout interval, in milliseconds.

integration.pfx.socket-keep-alive

true

Socket keep alive status.

IntegrationManager version 5.8.0