Project

General

Profile

« Previous | Next » 

Revision 50050

classes for rest-api

View differences:

modules/dnet-modular-collector-service/trunk/src/test/java/eu/dnetlib/data/collector/plugins/rest/RestIteratorTest.java
1
/**
2
 * 
3
 */
4
package eu.dnetlib.data.collector.plugins.rest;
5

  
6
import org.junit.Test;
7

  
8
/**
9
 * @author js
10
 *
11
 */
12
public class RestIteratorTest {
13

  
14
	private String baseUrl = "";
15

  
16
	@Test
17
	public void test(){
18
		final RestIterator iterator = new RestIterator(baseUrl);
19
		
20
	}
21
}
modules/dnet-modular-collector-service/trunk/src/main/java/eu/dnetlib/data/collector/plugins/rest/RestIteratorFactory.java
1
/**
2
 * 
3
 */
4
package eu.dnetlib.data.collector.plugins.rest;
5

  
6
import java.util.Iterator;
7

  
8
/**
9
 * @author Jochen Schirrwagen
10
 *
11
 */
12
public class RestIteratorFactory {
13

  
14
	public Iterator<String> newIterator(final String baseUrl){
15
		return new RestIterator(baseUrl);
16
	}
17
}
modules/dnet-modular-collector-service/trunk/src/main/java/eu/dnetlib/data/collector/plugins/rest/RestCollectorPlugin.java
1
/**
2
 * 
3
 */
4
package eu.dnetlib.data.collector.plugins.rest;
5

  
6
import eu.dnetlib.data.collector.plugin.AbstractCollectorPlugin;
7
import eu.dnetlib.data.collector.rmi.CollectorServiceException;
8
import eu.dnetlib.data.collector.rmi.InterfaceDescriptor;
9

  
10
/**
11
 * @author js
12
 *
13
 */
14
public class RestCollectorPlugin extends AbstractCollectorPlugin {
15

  
16
	@Override
17
	public Iterable<String> collect(InterfaceDescriptor arg0, String arg1, String arg2)
18
			throws CollectorServiceException {
19
		// TODO Auto-generated method stub
20
		return null;
21
	}
22

  
23
}
modules/dnet-modular-collector-service/trunk/src/main/java/eu/dnetlib/data/collector/plugins/rest/RestIterator.java
1
/**
2
 * 
3
 */
4
package eu.dnetlib.data.collector.plugins.rest;
5

  
6
import java.util.Iterator;
7

  
8
/**
9
 * @author Jochen Schirrwagen
10
 *
11
 */
12
public class RestIterator implements Iterator<String> {
13

  
14
	/*
15
	 * 
16
	 */
17
	public RestIterator(final String baseUrl) {
18
		// TODO Auto-generated constructor stub
19
	}
20
	
21
	/* (non-Javadoc)
22
	 * @see java.util.Iterator#hasNext()
23
	 */
24
	@Override
25
	public boolean hasNext() {
26
		// TODO Auto-generated method stub
27
		return false;
28
	}
29

  
30
	/* (non-Javadoc)
31
	 * @see java.util.Iterator#next()
32
	 */
33
	@Override
34
	public String next() {
35
		// TODO Auto-generated method stub
36
		return null;
37
	}
38

  
39
}

Also available in: Unified diff