Skip to content

Commit

Permalink
Added method FreemarkerDocProcessConfig.fullProcess()
Browse files Browse the repository at this point in the history
with minimal parameters, generating the document and returning xml data.
  • Loading branch information
fugerit79 committed Sep 19, 2023
1 parent 98ae680 commit 3e9e18e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- method FreemarkerDocProcessConfig.fullProcess() with minimal parameters, generating the document and returning xml data.

### Changed

- fj-core set to 8.3.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ protected DefaultChainProvider getDefaultChain() {
return this.defaultChain;
}

public DocProcessData fullProcess( String chainId, DocProcessContext context, DocTypeHandler handler, DocOutput docOutput ) throws Exception {
DocProcessData data = new DocProcessData();
this.process(chainId, context, data);
handler.handle( DocInput.newInput( handler.getType() , data.getCurrentXmlReader() ) , docOutput );
return data;
}

public void process( String chainId, DocProcessContext context, DocProcessData data ) throws Exception {
MiniFilterChain chain = this.getChainCache( chainId );
log.info( "chain list {}", this.docProcessConfig.getIdSet() );
Expand Down

0 comments on commit 3e9e18e

Please sign in to comment.