Sample logo

Sample

A collection of handlers that illustrate sample implementation strategies and solutions. Handlers in this category emphasise a simple, repeatable pattern and may not accomplish a constructive task.

Sample Handlers

Sample Command Line Hello World
Executes 'echo' from a command line, passing a "hello" string argument, and returns the standard out and standard error results. If the 'name' parameter is present, that person will be greeted. Otherwise the world will be greeted.

Sample Database Count
This is a sample handler that shows you how to count the amount of records are returned in a query to your database using JDBC. The handler will return an xml string containing the amount of records that were counted.

Sample Database Delete
This is a sample handler that shows you how to delete a record from your database using JDBC.

Sample Database Insert
This is a sample handler that shows you how to insert a record into your database using JDBC.

Sample Database Retrieve Multiple Records
This is a sample handler that shows you how to retrieve records from a database using JDBC.

Sample Database Retrieve
This is a sample handler that shows you how to retrieve a record from your database using JDBC. The handler will return an xml string containing data from all of the columns that the record returned.

Sample HTML to PDF
Converts an HTML string to a PDF.

Sample Java Hello World
Calls into a simple Java "application" via an exposed Class and class method. The application returns a 'Message' result that represents a simple greeting.

Sample REST Hello World
Calls the 'EchoService' RESTful web service using, passing a "hello" string argument, and returns the result of the call. If the 'name' parameter is present, that person will be greeted. Otherwise, the world will be greeted.

Sample SOAP Hello World
Calls the SOAP based 'EchoService' web service, passing the desired greeting and target and returns the resulting message. If the 'name' parameter is present, that person will be greeted. Otherwise, the world will be greeted.