| ProtocolAnalyzerFactory.java |
1 /*
2 * @(#) $Id: ProtocolAnalyzerFactory.java,v 1.4 2003/07/08 08:13:53 pankaj Exp $
3 *
4 * Copyright (c) 2002-03 by Pankaj Kumar (http://www.pankaj-k.net).
5 * All rights reserved.
6 *
7 * The license governing the use of this file can be found in the
8 * root directory of the containing software.
9 */
10package org.jstk.ssl;
11
12import java.net.*;
13import java.io.*;
14
15public class ProtocolAnalyzerFactory {
16 public static ProtocolAnalyzer getInstance(String patype, String label){
17 if (patype.equalsIgnoreCase("dd"))
18 return new DataDisplayAnalyzer(label);
19 if (patype.equalsIgnoreCase("http"))
20 return new HttpAnalyzer(label);
21 else if (patype.equalsIgnoreCase("ssl"))
22 return new SSLAnalyzer(label);
23 return null;
24 }
25}
26