KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > wsmgmt > SOAPMessageContext


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23 package com.sun.enterprise.admin.wsmgmt;
24
25 import javax.xml.soap.SOAPMessage JavaDoc;
26 import java.util.Iterator JavaDoc;
27
28 /**
29  * SOAP Message Context. This encapsulates the required data for web services
30  * management either from JAXWS 1.0 or 2.0 MessageContext.
31  */

32 public interface SOAPMessageContext {
33
34     /**
35      * Gets the SOAPMessage for this web service invocation.
36      *
37      * @return SOAPMessage for this web service invocation
38      */

39     public SOAPMessage JavaDoc getMessage();
40
41     /**
42      * Gets the PropertyNames for this web service invocation.
43      *
44      * @return PropertyNames for this web service invocation
45      */

46     public Iterator JavaDoc getPropertyNames();
47
48     /**
49      * Gets the PropertyNames for this web service invocation.
50      *
51      * @return PropertyNames for this web service invocation
52      */

53     public Object JavaDoc getProperty(String JavaDoc name);
54
55     /**
56      * Sets the SOAPMessage in the message context.
57      *
58      * @param msg the SOAPMessage to be set in the message context
59      */

60     public void setMessage(SOAPMessage JavaDoc msg);
61
62     /**
63      * Gets the HTTP Request headers in the message.
64      *
65      * @return the HTTP Request headers in the message.
66      */

67     public String JavaDoc getHTTPRequestHeaders();
68
69     /**
70      * Gets the HTTP Response headers in the message.
71      *
72      * @return the HTTP Response headers in the message.
73      */

74     public String JavaDoc getHTTPResponseHeaders();
75 }
76
Popular Tags