Changeset 5144 for openmrs-modules/logicws/web/src/org/openmrs/module/logicws/web/TokenResource.java
- Timestamp:
- 08/03/08 02:50:22 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs-modules/logicws/web/src/org/openmrs/module/logicws/web/TokenResource.java
r4990 r5144 1 /** 2 * The contents of this file are subject to the OpenMRS Public License 3 * Version 1.0 (the "License"); you may not use this file except in 4 * compliance with the License. You may obtain a copy of the License at 5 * http://license.openmrs.org 6 * 7 * Software distributed under the License is distributed on an "AS IS" 8 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 9 * License for the specific language governing rights and limitations 10 * under the License. 11 * 12 * Copyright (C) OpenMRS, LLC. All Rights Reserved. 13 */ 1 14 package org.openmrs.module.logicws.web; 2 15 3 16 import java.io.IOException; 4 17 import java.io.PrintWriter; 18 import java.util.Collection; 5 19 6 20 import javax.servlet.ServletException; … … 8 22 import javax.servlet.http.HttpServletResponse; 9 23 10 import java.util.Collection; 11 24 import org.openmrs.api.context.Context; 12 25 import org.openmrs.logic.LogicService; 13 26 import org.openmrs.logic.result.Result.Datatype; 14 import org.openmrs.api.context.Context;15 27 16 28 /** … … 25 37 HttpServletResponse response) throws ServletException, IOException { 26 38 LogicService ls = Context.getLogicService(); 27 39 28 40 PrintWriter out = response.getWriter(); 29 41 … … 57 69 } 58 70 59 60 71 private String getDatatype(LogicService ls, String token) { 61 72 Datatype dt = ls.getDefaultDatatype(token);