
com.google.sitebricks.example.HelloWorld Maven / Gradle / Ivy
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 final 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 - 2025 Weber Informatics LLC | Privacy Policy