Project

General

Profile

« Previous | Next » 

Revision 62025

minors

View differences:

FairSharingPlugin.java
24 24

  
25 25
	private static final Log log = LogFactory.getLog(FairSharingPlugin.class); // NOPMD by marko on 11/24/08 5:02 PM
26 26

  
27
	// Suggested values:
28
	// baseUrl = https://api.fairsharing.org
29
	// XPATH_ID = /record/id
30

  
27 31
	@Override
28 32
	public Iterable<String> collect(final InterfaceDescriptor interfaceDescriptor, final String fromDate, final String untilDate)
29 33
		throws CollectorServiceException {
30 34

  
31
		// It should be https://api.fairsharing.org
32 35
		final String baseUrl = interfaceDescriptor.getBaseUrl();
33 36
		final String login = interfaceDescriptor.getParams().get("login");
34 37
		final String password = interfaceDescriptor.getParams().get("password");
......
55 58
				return obj.getString("jwt");
56 59
			}
57 60
		} catch (final Exception e) {
58
			throw new CollectorServiceException("Error perfoming call fro login", e);
61
			throw new CollectorServiceException("Error perfoming login", e);
59 62
		}
60 63
	}
61 64

  

Also available in: Unified diff