~vcs-imports/jmeeting/trunk

« back to all changes in this revision

Viewing changes to org/devioux/jmeeting/client/JProtocol.java

  • Committer: silverfang
  • Date: 2008-05-24 01:22:44 UTC
  • Revision ID: vcs-imports@canonical.com-20080524012244-to889pj82yxnnaio
added package in src folder

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
package org.devioux.jmeeting.client;
2
 
 
3
 
public class JProtocol {
4
 
 
5
 
    public String processInput(String input) {
6
 
        
7
 
        String output   = "";
8
 
        String protocol = "";
9
 
        if (input != null) {
10
 
                protocol = input.substring(0, input.indexOf(":"));
11
 
                if (protocol.equals("text")) {
12
 
                        output = input.substring(input.indexOf(":") + 1);
13
 
                }
14
 
        } else {
15
 
                output = "Welcome";
16
 
        }
17
 
        
18
 
        return output;
19
 
    }
20
 
}
21