All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.sitebricks.example.HelloWorld Maven / Gradle / Ivy

The newest version!
package com.google.sitebricks.example;

import com.google.sitebricks.At;
import com.google.sitebricks.rendering.EmbedAs;

/**
 * @author Dhanji R. Prasanna ([email protected])
 */
@At("/hello") @EmbedAs("Hello")
public class HelloWorld {
  public static volatile String HELLO_MSG = "Hello from google-sitebricks!";

  private String message = HELLO_MSG;

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  // Some deterministic mangled representation of the input.
  public String mangle(String s) {
    return "" + s.hashCode();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy