Skip to content
Browse files

Some example cleanup

  • Loading branch information...
1 parent 6201c68 commit cc874561b88a707e70ea8fca4a83fcd79312eeb6 @dustismo dustismo committed
Showing with 3 additions and 31 deletions.
  1. +0 −30 src/com/trendrr/strest/examples/FileUpload.java
  2. +3 −1 src/com/trendrr/strest/examples/Main.java
View
30 src/com/trendrr/strest/examples/FileUpload.java
@@ -1,30 +0,0 @@
-/**
- *
- */
-package com.trendrr.strest.examples;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import com.trendrr.oss.DynMap;
-import com.trendrr.strest.annotations.Strest;
-import com.trendrr.strest.server.StrestController;
-
-
-/**
- * @author Dustin Norlander
- * @created Apr 1, 2011
- *
- */
-@Strest(
- route = "/upload"
-)
-public class FileUpload extends StrestController {
-
- protected Log log = LogFactory.getLog(FileUpload.class);
-
- public void handlePOST(DynMap params) throws Exception {
- System.out.println(
- new String(this.request.getContent().array()));
- }
-}
View
4 src/com/trendrr/strest/examples/Main.java
@@ -16,10 +16,12 @@
*/
public class Main {
- protected Log log = LogFactory.getLog(Main.class);
+ protected static Log log = LogFactory.getLog(Main.class);
public static void main(String[] args) throws Exception {
StrestServer server = StrestServer.instanceFromFile("example_config.yaml");
+ System.out.println("!!! WELCOME TO STREST !!!");
+ System.out.println("Strest-Server examples started");
server.start();
}
}

0 comments on commit cc87456

Please sign in to comment.
Something went wrong with that request. Please try again.