Skip to content
Snippets Groups Projects
Select Git revision
  • c06bd998dd75ab178f81445e77178f3ce10f617c
  • 5.4 default protected
  • 5.5
  • dev/5.5
  • dev/5.4
  • dev/5.3_downgrade
  • feature/experimenttime_hack
  • 5.3 protected
  • _IntenSelect5.3
  • IntenSelect5.3
  • 4.27 protected
  • 4.26 protected
  • 5.0 protected
  • 4.22 protected
  • 4.21 protected
  • UE5.4-2024.1
  • UE5.4-2024.1-rc1
  • UE5.3-2023.1-rc3
  • UE5.3-2023.1-rc2
  • UE5.3-2023.1-rc
20 results

BP_DirectInteractionComponent.uasset

Blame
  • RESTToUpperCaseService.java 990 B
    /* Beispiel angelehnt an http://www.torsten-horn.de/techdocs/jee-rest.htm */
    package verteiltesysteme.rest;
    
    import javax.ws.rs.*;
    import javax.ws.rs.core.MediaType;
    
    @Path( RESTToUpperCaseService.webContextPath )
    public class RESTToUpperCaseService
    {
       static final String webContextPath = "/tolowercase";
       
       @GET
       @Produces( MediaType.TEXT_PLAIN )
       public String toLowerCasePlain( @QueryParam("input") String input )
       {
          return "Plain-Text: " + input.toLowerCase();
       }
    
       @GET
       @Produces( MediaType.TEXT_HTML )
       public String toLowerCaseHtml( @QueryParam("input") String input )
       {
          return "<html><title>RESTService</title><body><h2>HTML: " + input.toLowerCase() + "</h2></body></html>";
       }
       
       @GET
       @Produces( MediaType.APPLICATION_JSON )
       public String toLowerCaseJson( @QueryParam("input") String input )
       {
          return "{\n  \"type\": \"JSON\",\n  \"output\": \"" + input.toLowerCase() + "\"\n}";
       }  
       
    }