Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of variable that can be used in "as2-servlet-configuration.xml" #27

Closed
haegg78 opened this issue Sep 27, 2016 · 1 comment
Closed
Assignees
Labels

Comments

@haegg78
Copy link

haegg78 commented Sep 27, 2016

I have currently implemented the AS2 Servlet in a test suite where we are performing regression testing of our integration platform. I'm wondering which parameters are existing for generating a better dynamic filename? I'm specifically interested in the AS2 Filename and AS2 Subject. Example from the readme below. Is there a list of "variables" that can be used in the "as2-servlet-configuration.xml" file?
<module classname="com.helger.as2lib.processor.storage.MessageFileModule" filename="%home%/inbox/$date.yyyy$/$date.MM$/$msg.sender.as2_id$-$msg.receiver.as2_id$-$msg.headers.message-id$" header="%home%/inbox/msgheaders/$date.yyyy$/$date.MM$/$msg.sender.as2_id$-$msg.receiver.as2_id$-$msg.headers.message-id$" protocol="as2" tempdir="%home%/temp"/>

@phax phax added the question label Sep 27, 2016
@phax phax self-assigned this Sep 27, 2016
@phax
Copy link
Owner

phax commented Oct 7, 2016

For incoming messages the following variables are available:

  • date - everything after the dot is used as the SimpleDateFormat formatting (see class DateParameters)
  • msg - message related parameters. The part between the dots can be:
    • sender - message sender ID
    • receiver - message receiver ID
    • attributes - message attributes - access to all internal message attributes
    • headers - message headers - access to all message headers
    • content-disposition - supports only the sub-value filename

https://github.com/phax/as2-server/blob/master/doc/configurationDefinitions.html contains the original docs with some infos.

hth

@phax phax closed this as completed Nov 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants