You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2003/10/29 16:54:50 UTC

cvs commit: ws-axis/java/src/org/apache/axis SOAPPart.java

dims        2003/10/29 07:54:50

  Modified:    java/src/org/apache/axis SOAPPart.java
  Log:
  Expose setCurrentMessage (better control over contents, needed for WSS4J)
  
  Revision  Changes    Path
  1.58      +7 -7      ws-axis/java/src/org/apache/axis/SOAPPart.java
  
  Index: SOAPPart.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/SOAPPart.java,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- SOAPPart.java	26 Sep 2003 18:16:21 -0000	1.57
  +++ SOAPPart.java	29 Oct 2003 15:54:50 -0000	1.58
  @@ -122,12 +122,12 @@
       protected static Log log =
           LogFactory.getLog(SOAPPart.class.getName());
   
  -    private static final int FORM_STRING       = 1;
  -    private static final int FORM_INPUTSTREAM  = 2;
  -    private static final int FORM_SOAPENVELOPE = 3;
  -    private static final int FORM_BYTES        = 4;
  -    private static final int FORM_BODYINSTREAM = 5;
  -    private static final int FORM_FAULT        = 6;
  +    public static final int FORM_STRING       = 1;
  +    public static final int FORM_INPUTSTREAM  = 2;
  +    public static final int FORM_SOAPENVELOPE = 3;
  +    public static final int FORM_BYTES        = 4;
  +    public static final int FORM_BODYINSTREAM = 5;
  +    public static final int FORM_FAULT        = 6;
       private int currentForm;
   
       //private Hashtable headers = new Hashtable();
  @@ -305,7 +305,7 @@
           return currentMessage;
       }
   
  -    private void setCurrentMessage(Object currMsg, int form) {
  +    public void setCurrentMessage(Object currMsg, int form) {
         currentMessageAsString = null; //Get rid of any cached stuff this is new.
         currentMessageAsBytes = null;
         currentMessageAsEnvelope= null;