From 7e0d33d48cce30b0cb16f40b906191f90ce35a49 Mon Sep 17 00:00:00 2001 From: Loredana Liccardo Date: Fri, 18 Jul 2014 12:38:57 +0000 Subject: [PATCH] Classes GreetingService removed in the client and server packages git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/databases-manager-portlet@98784 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/GreetingService.java | 12 ----- .../client/GreetingServiceAsync.java | 40 ---------------- .../server/GreetingServiceImpl.java | 48 ------------------- 3 files changed, 100 deletions(-) delete mode 100644 src/main/java/org/gcube/portlets/user/databasesmanager/client/GreetingService.java delete mode 100644 src/main/java/org/gcube/portlets/user/databasesmanager/client/GreetingServiceAsync.java delete mode 100644 src/main/java/org/gcube/portlets/user/databasesmanager/server/GreetingServiceImpl.java diff --git a/src/main/java/org/gcube/portlets/user/databasesmanager/client/GreetingService.java b/src/main/java/org/gcube/portlets/user/databasesmanager/client/GreetingService.java deleted file mode 100644 index 2a30017..0000000 --- a/src/main/java/org/gcube/portlets/user/databasesmanager/client/GreetingService.java +++ /dev/null @@ -1,12 +0,0 @@ -//package org.gcube.portlets.user.databasesmanager.client; -// -//import com.google.gwt.user.client.rpc.RemoteService; -//import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; -// -///** -// * The client side stub for the RPC service. -// */ -//@RemoteServiceRelativePath("greet") -//public interface GreetingService extends RemoteService { -// String greetServer(String name) throws IllegalArgumentException; -//} diff --git a/src/main/java/org/gcube/portlets/user/databasesmanager/client/GreetingServiceAsync.java b/src/main/java/org/gcube/portlets/user/databasesmanager/client/GreetingServiceAsync.java deleted file mode 100644 index e501f1b..0000000 --- a/src/main/java/org/gcube/portlets/user/databasesmanager/client/GreetingServiceAsync.java +++ /dev/null @@ -1,40 +0,0 @@ -//package org.gcube.portlets.user.databasesmanager.client; -// -// -// -//import com.google.gwt.core.client.GWT; -//import com.google.gwt.user.client.rpc.AsyncCallback; -//import com.google.gwt.user.client.rpc.ServiceDefTarget; -// -//public interface GreetingServiceAsync -//{ -// -// /** -// * GWT-RPC service asynchronous (client-side) interface -// * @see org.com.example.TestApp.client.GreetingService -// */ -// void greetServer( java.lang.String name, AsyncCallback callback ); -// -// -// /** -// * Utility class to get the RPC Async interface from client-side code -// */ -// public static final class Util -// { -// private static GreetingServiceAsync instance; -// -// public static final GreetingServiceAsync getInstance() -// { -// if ( instance == null ) -// { -// instance = (GreetingServiceAsync) GWT.create( GreetingService.class ); -// } -// return instance; -// } -// -// private Util() -// { -// // Utility class should not be instanciated -// } -// } -//} diff --git a/src/main/java/org/gcube/portlets/user/databasesmanager/server/GreetingServiceImpl.java b/src/main/java/org/gcube/portlets/user/databasesmanager/server/GreetingServiceImpl.java deleted file mode 100644 index 85b5881..0000000 --- a/src/main/java/org/gcube/portlets/user/databasesmanager/server/GreetingServiceImpl.java +++ /dev/null @@ -1,48 +0,0 @@ -//package org.gcube.portlets.user.databasesmanager.server; -// -//import org.gcube.portlets.user.databasesmanager.client.GreetingService; -//import org.gcube.portlets.user.databasesmanager.shared.FieldVerifier; -//import com.google.gwt.user.server.rpc.RemoteServiceServlet; -// -///** -// * The server side implementation of the RPC service. -// */ -//@SuppressWarnings("serial") -//public class GreetingServiceImpl extends RemoteServiceServlet implements -// GreetingService { -// -// public String greetServer(String input) throws IllegalArgumentException { -// // Verify that the input is valid. -// if (!FieldVerifier.isValidName(input)) { -// // If the input is not valid, throw an IllegalArgumentException back to -// // the client. -// throw new IllegalArgumentException( -// "Name must be at least 4 characters long"); -// } -// -// String serverInfo = getServletContext().getServerInfo(); -// String userAgent = getThreadLocalRequest().getHeader("User-Agent"); -// -// // Escape data from the client to avoid cross-site script vulnerabilities. -// input = escapeHtml(input); -// userAgent = escapeHtml(userAgent); -// -// return "Hello, " + input + "!

I am running " + serverInfo -// + ".

It looks like you are using:
" + userAgent; -// } -// -// /** -// * Escape an html string. Escaping data received from the client helps to -// * prevent cross-site script vulnerabilities. -// * -// * @param html the html string to escape -// * @return the escaped string -// */ -// private String escapeHtml(String html) { -// if (html == null) { -// return null; -// } -// return html.replaceAll("&", "&").replaceAll("<", "<").replaceAll( -// ">", ">"); -// } -//}