Revision 6242
Added by Chris Jones over 13 years ago
src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java | ||
---|---|---|
667 | 667 |
return s; |
668 | 668 |
} |
669 | 669 |
|
670 |
/** |
|
671 |
* set the params for this service from an HttpServletRequest param list |
|
672 |
* |
|
673 |
* @param request - the HTTP Servlet Request with the listed parameters |
|
674 |
*/ |
|
675 |
public void setParamsFromRequest(HttpServletRequest request) { |
|
676 |
|
|
677 |
@SuppressWarnings("unchecked") |
|
678 |
Enumeration<String> paramlist = request.getParameterNames(); |
|
679 |
while (paramlist.hasMoreElements()) { |
|
680 |
String name = (String) paramlist.nextElement(); |
|
681 |
String[] value = (String[])request.getParameterValues(name); |
|
682 |
params.put(name, value); |
|
683 |
|
|
684 |
} |
|
685 |
} |
|
686 |
|
|
687 | 670 |
/** |
688 | 671 |
* Determine if a given object should be treated as an XML science metadata |
689 | 672 |
* object. |
Also available in: Unified diff
Remove setParamsFromRequest() from D1NodeService. This was called (previously as CrudService) from ResourceHandler, but will be deprecated in favor of manually creating a param map for each method that needs to pass params on to MetacatHandler.