cancel
Showing results for 
Search instead for 
Did you mean: 

Collected Tech Tips: Java Extension Examples

Java Extensions are one of the 'data plane' APIs provided by Stingray Traffic Manager to process network transactions.  Java Extensions are invoked from TrafficScript using the java.run() function.

 

This article contains a selection of technical tips and solutions to illustrate the use of Java Extensions.

 

Basic Language Examples

 

 

Advanced Language Examples

 

 

Java Extensions in other languages

 

 

More information

 

Version history
Revision #:
1 of 1
Last update:
‎02-28-2013 02:35:AM
Updated by:
 
Labels (1)
Comments
richardsonkane75

Instead, you can make a regular static method, or write your own class.

 

Instead you can either create regular subclass of your list implementation or create anonymous inner class:

List<String> list = new ArrayList<String>() {
public String getData() {
return ""; // add your implementation here.
}
};
The problem is to call this method. You can do it "in place":

new ArrayList<String>() {
public String getData() {
return ""; // add your implementation here.
}
}.getData();