Revision 4247
Added by ben leinfelder over 15 years ago
ConfigurableAuthenticatedEcogridEndPoint.java | ||
---|---|---|
51 | 51 |
private String sessionId = null; |
52 | 52 |
|
53 | 53 |
public ConfigurableAuthenticatedEcogridEndPoint() { |
54 |
|
|
55 |
try { |
|
56 |
metacatAuthenticatedEcogridEndPoint = PropertyService.getProperty("datamanager.endpoint.authenticatedquery"); |
|
57 |
} catch (PropertyNotFoundException e) { |
|
58 |
e.printStackTrace(); |
|
54 |
super(); |
|
55 |
if (!loadProperties()) { |
|
56 |
metacatAuthenticatedEcogridEndPoint = baseURL + "AuthenticatedQueryService"; |
|
59 | 57 |
} |
60 |
|
|
61 | 58 |
} |
62 | 59 |
|
63 | 60 |
public ConfigurableAuthenticatedEcogridEndPoint(String sessionId) { |
... | ... | |
65 | 62 |
this.sessionId = sessionId; |
66 | 63 |
} |
67 | 64 |
|
65 |
private boolean loadProperties() { |
|
66 |
try { |
|
67 |
metacatAuthenticatedEcogridEndPoint = PropertyService.getProperty("datamanager.endpoint.authenticatedquery"); |
|
68 |
} catch (PropertyNotFoundException e) { |
|
69 |
//e.printStackTrace(); |
|
70 |
return false; |
|
71 |
} |
|
72 |
if (metacatAuthenticatedEcogridEndPoint == null || metacatAuthenticatedEcogridEndPoint.length() == 0) { |
|
73 |
return false; |
|
74 |
} |
|
75 |
return true; |
|
76 |
} |
|
77 |
|
|
68 | 78 |
/** |
69 | 79 |
* Gets the end point which Metacat implements authenticated ecogrid interface. |
70 | 80 |
* This end point will be used to handle ecogrid protocol |
Also available in: Unified diff
use "local" services when none are provided in the properties file