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
This commit is contained in:
parent
bc6775ffc5
commit
7e0d33d48c
|
@ -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;
|
||||
//}
|
|
@ -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<java.lang.String> 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
|
||||
// }
|
||||
// }
|
||||
//}
|
|
@ -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 + "!<br><br>I am running " + serverInfo
|
||||
// + ".<br><br>It looks like you are using:<br>" + 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(
|
||||
// ">", ">");
|
||||
// }
|
||||
//}
|
Loading…
Reference in New Issue