Revision 4438
Added by daigle about 16 years ago
src/edu/ucsb/nceas/metacat/MetaCatServlet.java | ||
---|---|---|
858 | 858 |
} else if (action.equals("gohome")) { |
859 | 859 |
// forward to the default page |
860 | 860 |
RequestUtil.forwardRequest(request, response, "/"); |
861 |
} else { |
|
861 |
} else if (action.equals("refreshServices")) { |
|
862 |
// TODO MCD this interface is for testing. It should go through a |
|
863 |
// ServiceService class and only work for an admin user. Move to the |
|
864 |
// MetacatAdminServlet |
|
865 |
XMLSchemaService.getInstance().refresh(); |
|
866 |
return; |
|
867 |
}else { |
|
862 | 868 |
PrintWriter out = response.getWriter(); |
863 | 869 |
out.println("<?xml version=\"1.0\"?>"); |
864 | 870 |
out.println("<error>"); |
Also available in: Unified diff
Added refreshServices action to allow tests to refresh service caches. This will be expanded to only allow for admins.