Revision 47406
Added by Antonis Lempesis almost 7 years ago
ISLookUpClient.java | ||
---|---|---|
29 | 29 |
this.isLookUp = (eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService) webService; |
30 | 30 |
} |
31 | 31 |
|
32 |
public EPR searchProfile(String XQuery) throws ISLookUpServiceException { |
|
33 |
try { |
|
34 |
logger.debug("Performing search: " + XQuery); |
|
35 |
|
|
36 |
W3CEndpointReference endpointReference = isLookUp |
|
37 |
.searchProfile(XQuery); |
|
38 |
|
|
39 |
return createEPR(endpointReference); |
|
40 |
} catch (ISLookUpException e) { |
|
41 |
logger.error(e); |
|
42 |
|
|
43 |
throw new ISLookUpServiceException(e); |
|
44 |
} catch (Exception e) { |
|
45 |
logger.error(e); |
|
46 |
|
|
47 |
throw new ISLookUpServiceException("Error performing search"); |
|
48 |
} |
|
49 |
} |
|
50 |
|
|
51 | 32 |
public List<String> quickSearchProfile(String XQuery) |
52 | 33 |
throws ISLookUpServiceException { |
53 | 34 |
try { |
... | ... | |
124 | 105 |
// return isLookUp.identify(); |
125 | 106 |
} |
126 | 107 |
|
127 |
private EPR createEPR(W3CEndpointReference endpointReference) { |
|
128 |
return EPRUtils.createEPR(endpointReference); |
|
129 |
} |
|
130 |
|
|
131 | 108 |
@Override |
132 | 109 |
public void notify(Notification notification) { |
133 | 110 |
// TODO Auto-generated method stub |
Also available in: Unified diff
moved to dnet45