mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-08-14 17:58:27 +00:00
Save point: [skip ci]
* pick up alfresco-t-engine-base in 5 base t-engines * Switch over to using new base * Moved files in 5 base t-engines so we can remove the -boot package in the next round of changes
This commit is contained in:
@@ -28,6 +28,13 @@ import org.alfresco.transform.config.CoreVersionDecorator;
|
||||
*/
|
||||
public interface RequestParamMap
|
||||
{
|
||||
// html parameter names
|
||||
String FILE = "file";
|
||||
String SOURCE_EXTENSION = "sourceExtension";
|
||||
String TARGET_EXTENSION = "targetExtension";
|
||||
String SOURCE_MIMETYPE = "sourceMimetype";
|
||||
String TARGET_MIMETYPE = "targetMimetype";
|
||||
|
||||
// Transform options used in the core transformers.
|
||||
String SOURCE_ENCODING = "sourceEncoding";
|
||||
String TARGET_ENCODING = "targetEncoding";
|
||||
|
@@ -40,6 +40,12 @@ import java.io.Reader;
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
import static org.springframework.http.HttpStatus.INTERNAL_SERVER_ERROR;
|
||||
|
||||
/**
|
||||
* Reads {@link TransformConfig} from a {@json} file. Typically used by {@code TransformEngine.getTransformConfig()}.
|
||||
* <pre>
|
||||
* transformConfigResourceReader.read("classpath:pdfrenderer_engine_config.json");
|
||||
* </pre>
|
||||
*/
|
||||
@Component
|
||||
public class TransformConfigResourceReader
|
||||
{
|
||||
|
Reference in New Issue
Block a user