Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
08/03/08 02:50:22 (5 months ago)
Author:
kevjay
Message:

logicws: Added javadocs, formatted, and reorganized code.

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 */ 
    114package org.openmrs.module.logicws.web; 
    215 
    316import java.io.IOException; 
    417import java.io.PrintWriter; 
     18import java.util.Collection; 
    519 
    620import javax.servlet.ServletException; 
     
    822import javax.servlet.http.HttpServletResponse; 
    923 
    10 import java.util.Collection; 
    11  
     24import org.openmrs.api.context.Context; 
    1225import org.openmrs.logic.LogicService; 
    1326import org.openmrs.logic.result.Result.Datatype; 
    14 import org.openmrs.api.context.Context; 
    1527 
    1628/** 
     
    2537            HttpServletResponse response) throws ServletException, IOException { 
    2638        LogicService ls = Context.getLogicService(); 
    27          
     39 
    2840        PrintWriter out = response.getWriter(); 
    2941 
     
    5769    } 
    5870 
    59      
    6071    private String getDatatype(LogicService ls, String token) { 
    6172        Datatype dt = ls.getDefaultDatatype(token);