@@ -0,0 +1,1078 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage cz.esc.iot.cloudservice.resources;%0A%0Aimport java.io.IOException;%0Aimport java.nio.charset.Charset;%0Aimport java.nio.file.Files;%0Aimport java.nio.file.Paths;%0Aimport java.util.List;%0Aimport org.restlet.ext.oauth.AccessTokenServerResource;%0Aimport org.restlet.ext.oauth.OAuthException;%0Aimport org.restlet.resource.Get;%0A%0A/**%0A *%0A * @author alf%0A */%0Apublic class Css extends AccessTokenServerResource %7B%0A%0A%09@Get()%0A    public String returnList() throws OAuthException %7B%09%09%0A%0A        String fileName = %22css/style.css%22;%0A        StringBuilder sb = new StringBuilder();%0A%0A        try %7B%0A            List%3CString%3E lines = Files.readAllLines(Paths.get(fileName),%0A                    Charset.defaultCharset());%0A            for (String line : lines) %7B%0A                sb.append(line);%0A            %7D%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        return sb.toString();%0A    %7D%0A%7D%0A

support for webapp