Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxLevel3

...

This sample converts the content of the image file to Base64 representation. Therefore, it can serve a single HTML file without having links to image files.

Prerequisites

Set up the general prerequisites required for WSO2 G-Reg, before you start.

Note

This sample requires Apache Maven. For information on how to install it, see System Requirements Installation Prerequisites.

Building the sample

Follow the steps below to build the sample.

  1. Navigate to the <G-REG_HOME>/samples/handler/src/ directory, using the Command Line Interface (CLI).

  2. Execute the following command, to compile the source code: mvn clean install

    Info

    This requires you to have Apache Maven installed.

    This triggers an Apache Maven Build in your CLI. You view the following output in the CLI, when the build is successful.

    build successful

  3. Copy the <G-REG_HOME>/samples/handler/src/target/org.wso2.carbon.registry.samples.handler-5.1.1.jar file to the <G-REG_HOME>/repository/components/dropins/ directory.

  4. Start the WSO2 Governance Registry. F or more instructions, see Running the Product.

Executing the sample

Follow the steps below to execute the sample.

...