-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2215 from arunans23/scriptfix
Create new synapse property to change default js engine for script mediator
- Loading branch information
Showing
3 changed files
with
92 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
...es/extensions/src/main/java/org/apache/synapse/mediators/bsf/ScriptMediatorConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/** | ||
* Copyright (c) 2024, WSO2 LLC. (http://www.wso2.org) All Rights Reserved. | ||
* | ||
* WSO2 LLC. licenses this file to you 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 org.apache.synapse.mediators.bsf; | ||
|
||
public class ScriptMediatorConstants { | ||
|
||
/** | ||
* The name of the variable made available to the scripting language to access the message | ||
*/ | ||
public static final String MC_VAR_NAME = "mc"; | ||
|
||
/** | ||
* Name of the java script language | ||
*/ | ||
public static final String JAVA_SCRIPT = "js"; | ||
|
||
/** | ||
* Name of the java script language with usage of nashorn engine. | ||
*/ | ||
public static final String NASHORN_JAVA_SCRIPT = "nashornJs"; | ||
|
||
/** | ||
* Name of the java script language with usage of rhino engine. | ||
*/ | ||
public static final String RHINO_JAVA_SCRIPT = "rhinoJs"; | ||
|
||
/** | ||
* Name of the java script language with usage of rhino engine. | ||
*/ | ||
public static final String GRAAL_JAVA_SCRIPT = "graalJs"; | ||
|
||
/** | ||
* Name of the nashorn java script engine. | ||
*/ | ||
public static final String NASHORN = "nashorn"; | ||
|
||
/** | ||
* Name of the graalvm js engine. | ||
*/ | ||
public static final String GRAALVM = "graal.js"; | ||
|
||
/** | ||
* Factory Name for Oracle Nashorn Engine. Built-in Nashorn engine in JDK 8 to JDK 11 | ||
*/ | ||
public static final String ORACLE_NASHORN_NAME = "Oracle Nashorn"; | ||
|
||
/** | ||
* Pool size property name | ||
*/ | ||
public static String POOL_SIZE_PROPERTY = "synapse.script.mediator.pool.size"; | ||
|
||
/** | ||
* Default Script Engine | ||
*/ | ||
public static String DEFAULT_SCRIPT_ENGINE = "synapse.script.mediator.default.engine"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters