KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > tools > adaptor > http > HttpCommandProcessor


1 /*
2
3  * Copyright (C) The MX4J Contributors.
4
5  * All rights reserved.
6
7  *
8
9  * This software is distributed under the terms of the MX4J License version 1.0.
10
11  * See the terms of the MX4J License in the documentation provided with this software.
12
13  */

14
15 package mx4j.tools.adaptor.http;
16
17
18 import java.io.IOException JavaDoc;
19 import javax.management.JMException JavaDoc;
20 import javax.management.MBeanServer JavaDoc;
21 import javax.xml.parsers.DocumentBuilder JavaDoc;
22
23 import org.w3c.dom.Document JavaDoc;
24
25
26 /**
27  * HttpCommandProcessor sets the structure of a command processor
28  *
29  * @version $Revision: 1.3 $
30  */

31
32 public interface HttpCommandProcessor
33
34 {
35
36
37    /**
38     * Executes an HTTP request. It assumes the request is well formed
39     *
40     * @param out Input request
41     * @return An XML Document
42     * @throws IOException
43     */

44
45    public Document JavaDoc executeRequest(HttpInputStream in) throws IOException JavaDoc, JMException JavaDoc;
46
47
48    /**
49     * Sets the target MBeanServer
50     */

51
52    public void setMBeanServer(MBeanServer JavaDoc server);
53
54
55    /**
56     * Sets the Document Builder factory
57     */

58
59    public void setDocumentBuilder(DocumentBuilder JavaDoc builder);
60
61 }
62
63
Popular Tags