User: jung    
  Date: 00/12/22 07:49:43

  Modified:    src/org/zoap/soap/meta RequestElement.java RequestType.java
                        ResponseElement.java ResponseType.java
  Log:
  repackaged thread pooling. Coherent environment. Exception extensions.
  
  Revision  Changes    Path
  1.3       +32 -27    zoap/src/org/zoap/soap/meta/RequestElement.java
  
  Index: RequestElement.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/RequestElement.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RequestElement.java       2000/12/04 12:36:07     1.2
  +++ RequestElement.java       2000/12/22 15:49:41     1.3
  @@ -1,5 +1,5 @@
   /*
  - *   $Id: RequestElement.java,v 1.2 2000/12/04 12:36:07 jung Exp $
  + *   $Id: RequestElement.java,v 1.3 2000/12/22 15:49:41 jung Exp $
    *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
    *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
    *
  @@ -57,7 +57,6 @@
   import org.zoap.xml.Appearance;
   import org.zoap.xml.AppearanceException;
   
  -import de.infor.ce.util.ObjectFactory;
   
   import java.util.Map;
   import java.util.HashMap;
  @@ -69,49 +68,49 @@
   import java.lang.reflect.Method;
   import org.zoap.xml.meta.builtin.DefaultBinding;
   
  -/**
  - * RequestType is an element type that wraps java method requests to a particular
  - * method of a remote interface
  - */
  +/** RequestType is an element type that wraps java method requests to a particular 
method of a remote interface */
   
   public class RequestElement extends Element {
   
  -    /** private constructor is responsible for initialising the meta-data */
  -    public RequestElement() {
  +     /** private constructor is responsible for initialising the meta-data */
  +     public RequestElement() {
   
  -    }
  +     }
   
  -  public Object[] getElementContents(Object object, boolean isNew, Properties 
references)
  -    throws ElementException {
  +     public Object[] getElementContents(Object object, boolean isNew, Properties 
references)
  +     throws ElementException {
   
  -    if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  -      
Environment.out.print(toString()+".getElementContents("+object+","+isNew+","+references+")\n");
  +             if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  +                     Environment.out.print(toString() + ".getElementContents(" + 
object + "," + isNew + "," + references + ")\n");
   
  -    if(object!=null) {
  -      if(object instanceof MethodRequest) {
  -        return new Object[] {object};
  -      } else
  -        throw new ElementException();
  -    }
  +             if (object != null) {
  +                     if (object instanceof MethodRequest) {
  +                             return new Object[] { object };
  +                     } else
  +                             throw new ElementException();
  +             }
   
  -    return null;
  -  }
  +             return null;
  +     }
   
  -  /** add the request structure to the body */
  +     /** add the request structure to the body */
   
  -  public Object addElementContent(Object object, Object value, Map references, Map 
nameSpaces) {
  +     public Object addElementContent(Object object, Object value, Map references, 
Map nameSpaces) {
   
  -    if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  -      
Environment.out.print(toString()+".addElementContent("+object+","+value+","+references+","+nameSpaces+")");
  +             if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  +                     Environment.out.print(toString() + ".addElementContent(" + 
object + "," + value + "," + references + "," + nameSpaces + ")");
   
  -    return value;
  -  }
  +             return value;
  +     }
   
   
   }
   
   /*
    *   $Log: RequestElement.java,v $
  + *   Revision 1.3  2000/12/22 15:49:41  jung
  + *   repackaged thread pooling. Coherent environment. Exception extensions.
  + *   
    *   Revision 1.2  2000/12/04 12:36:07  jung
    *   adopted to latest jboss container,
    *   
  
  
  
  1.3       +41 -37    zoap/src/org/zoap/soap/meta/RequestType.java
  
  Index: RequestType.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/RequestType.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RequestType.java  2000/12/04 12:36:07     1.2
  +++ RequestType.java  2000/12/22 15:49:41     1.3
  @@ -1,5 +1,5 @@
   /*
  - *   $Id: RequestType.java,v 1.2 2000/12/04 12:36:07 jung Exp $
  + *   $Id: RequestType.java,v 1.3 2000/12/22 15:49:41 jung Exp $
    *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
    *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
    *
  @@ -58,7 +58,6 @@
   import org.zoap.xml.Appearance;
   import org.zoap.xml.AppearanceException;
   
  -import de.infor.ce.util.ObjectFactory;
   
   import java.util.Map;
   import java.util.HashMap;
  @@ -70,63 +69,62 @@
   import java.lang.reflect.Method;
   import org.zoap.xml.meta.builtin.DefaultBinding;
   
  -/**
  - * RequestType is an element type that wraps java method requests to a particular
  - * method of a remote interface
  - */
  +/** RequestType is an element type that wraps java method requests to a particular 
method of a remote interface */
   
   public class RequestType extends ComplexType {
   
  -    /** the method associated to this request */
  -    Method associatedMethod;
  +     /** the method associated to this request */
  +     Method associatedMethod;
   
  -    /** public constructor is responsible for initialising the meta-data */
  -    public RequestType() {
  +     /** public constructor is responsible for initialising the meta-data */
  +     public RequestType() {
   
  -      if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  -        Environment.out.println(toString()+"()\n");
  +             if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  +                     Environment.out.println(toString() + "()\n");
   
  -      setAssociatedClass(MethodRequest.class);
  -    }
  +             setAssociatedClass(MethodRequest.class);
  +     }
   
  -    public Method getAssociatedMethod() {
  -      return associatedMethod;
  -    }
  +     public Method getAssociatedMethod() {
  +             return associatedMethod;
  +     }
   
  -    public void setAssociatedMethod(Method method) {
  -      associatedMethod=method;
  -    }
  +     public void setAssociatedMethod(Method method) {
  +             associatedMethod = method;
  +     }
   
   
  -    /**
  -     * we have to overwrite the isCompatibleTo thing? This is a case where one
  -     * Java class is mapped to several XML elements/types. Hmmm, I dont think
  -     * its really used ... but lets try
  -     */
  +     /**
  +      * we have to overwrite the isCompatibleTo thing? This is a case where one
  +      * Java class is mapped to several XML elements/types. Hmmm, I dont think its 
really used ... but lets try
  +      */
   
  -    public boolean isCompatibleTo(Object object, Class clazz) {
  +     public boolean isCompatibleTo(Object object, Class clazz) {
   
  -      if(object instanceof MethodRequest &&
  -        (associatedMethod.equals(((MethodRequest) object).getMethod())))
  -          return true;
  +             if (object instanceof MethodRequest &&
  +             (associatedMethod.equals(((MethodRequest)object).getMethod())))
  +                     return true;
   
  -      return false;
  -    }
  +             return false;
  +     }
   
  -    /** setting the content establishes the method inside the request structure */
  +     /** setting the content establishes the method inside the request structure */
   
  -    public Object setContent(Object object, String body, String verboseElements,Map 
references,Map nameSpaces) {
  +     public Object setContent(Object object, String body, String verboseElements, 
Map references, Map nameSpaces) {
   
  -      if(object instanceof MethodRequest)
  -        ((MethodRequest) object).setMethod(associatedMethod);
  +             if (object instanceof MethodRequest)
  +                     ((MethodRequest)object).setMethod(associatedMethod);
   
  -      return object;
  -    }
  +             return object;
  +     }
   
   }
   
   /*
    *   $Log: RequestType.java,v $
  + *   Revision 1.3  2000/12/22 15:49:41  jung
  + *   repackaged thread pooling. Coherent environment. Exception extensions.
  + *   
    *   Revision 1.2  2000/12/04 12:36:07  jung
    *   adopted to latest jboss container,
    *   
  
  
  
  1.3       +31 -26    zoap/src/org/zoap/soap/meta/ResponseElement.java
  
  Index: ResponseElement.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/ResponseElement.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ResponseElement.java      2000/12/04 12:36:07     1.2
  +++ ResponseElement.java      2000/12/22 15:49:41     1.3
  @@ -1,5 +1,5 @@
   /*
  - *   $Id: ResponseElement.java,v 1.2 2000/12/04 12:36:07 jung Exp $
  + *   $Id: ResponseElement.java,v 1.3 2000/12/22 15:49:41 jung Exp $
    *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
    *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
    *
  @@ -55,7 +55,6 @@
   import org.zoap.xml.Appearance;
   import org.zoap.xml.AppearanceException;
   
  -import de.infor.ce.util.ObjectFactory;
   
   import java.util.Map;
   import java.util.HashMap;
  @@ -67,46 +66,46 @@
   import java.lang.reflect.Method;
   import org.zoap.xml.meta.builtin.DefaultBinding;
   
  -/**
  - * ResponseType is an element type that wraps java method returns from a particular
  - * method of a remote interface
  - */
  +/** ResponseType is an element type that wraps java method returns from a 
particular method of a remote interface */
   
   public class ResponseElement extends Element {
   
   
  -    /** private constructor is responsible for initialising the meta-data */
  -    public ResponseElement() {
  +     /** private constructor is responsible for initialising the meta-data */
  +     public ResponseElement() {
   
  -      if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  -        Environment.out.print(toString()+"()\n");
  -    }
  +             if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  +                     Environment.out.print(toString() + "()\n");
  +     }
   
   
  -  public Object addElementContent(Object object, Object value, Map references, Map 
nameSpaces) {
  -      return value;
  -  }
  +     public Object addElementContent(Object object, Object value, Map references, 
Map nameSpaces) {
  +             return value;
  +     }
   
  -  public Object[] getElementContents(Object object, boolean isNew, Properties 
references)
  -    throws ElementException {
  +     public Object[] getElementContents(Object object, boolean isNew, Properties 
references)
  +     throws ElementException {
   
  -    if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  -      
Environment.out.println("ResponseElement.getElementContents("+object+","+isNew+","+references+")");
  +             if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  +                     Environment.out.println("ResponseElement.getElementContents(" 
+ object + "," + isNew + "," + references + ")");
   
  -    if(object!=null) {
  -      if(object instanceof MethodResponse) {
  -        return new Object[] {object};
  -      } else
  -        throw new ElementException();
  -    }
  +             if (object != null) {
  +                     if (object instanceof MethodResponse) {
  +                             return new Object[] { object };
  +                     } else
  +                             throw new ElementException();
  +             }
   
  -    return null;
  -  }
  +             return null;
  +     }
   
   }
   
   /*
    *   $Log: ResponseElement.java,v $
  + *   Revision 1.3  2000/12/22 15:49:41  jung
  + *   repackaged thread pooling. Coherent environment. Exception extensions.
  + *   
    *   Revision 1.2  2000/12/04 12:36:07  jung
    *   adopted to latest jboss container,
    *   
  
  
  
  1.3       +41 -37    zoap/src/org/zoap/soap/meta/ResponseType.java
  
  Index: ResponseType.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/ResponseType.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ResponseType.java 2000/12/04 12:36:07     1.2
  +++ ResponseType.java 2000/12/22 15:49:41     1.3
  @@ -1,5 +1,5 @@
   /*
  - *   $Id: ResponseType.java,v 1.2 2000/12/04 12:36:07 jung Exp $
  + *   $Id: ResponseType.java,v 1.3 2000/12/22 15:49:41 jung Exp $
    *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
    *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
    *
  @@ -56,7 +56,6 @@
   import org.zoap.xml.Appearance;
   import org.zoap.xml.AppearanceException;
   
  -import de.infor.ce.util.ObjectFactory;
   
   import java.util.Map;
   import java.util.HashMap;
  @@ -68,62 +67,61 @@
   import java.lang.reflect.Method;
   import org.zoap.xml.meta.builtin.DefaultBinding;
   
  -/**
  - * ResponseType is an element type that wraps java method returns from a particular
  - * method of a remote interface
  - */
  +/** ResponseType is an element type that wraps java method returns from a 
particular method of a remote interface */
   
   public class ResponseType extends ComplexType {
   
  -    /** the real method that this response comes from */
  -    Method associatedMethod;
  +     /** the real method that this response comes from */
  +     Method associatedMethod;
   
  -    /** public constructor is empty */
  -    public ResponseType() {
  +     /** public constructor is empty */
  +     public ResponseType() {
   
  -      if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  -        Environment.out.print(toString()+"()\n");
  +             if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  +                     Environment.out.print(toString() + "()\n");
   
  -      setAssociatedClass(MethodResponse.class);
  -    }
  +             setAssociatedClass(MethodResponse.class);
  +     }
   
  -  public Method getAssociatedMethod() {
  -      return associatedMethod;
  -    }
  +     public Method getAssociatedMethod() {
  +             return associatedMethod;
  +     }
   
  -    public void setAssociatedMethod(Method method) {
  -      associatedMethod=method;
  -    }
  +     public void setAssociatedMethod(Method method) {
  +             associatedMethod = method;
  +     }
   
  -    /**
  -     * we have to overwrite the isCompatibleTo thing? This is a case where one
  -     * Java class is mapped to several XML elements/types. Hmmm, I dont think
  -     * its really used ... but lets try
  -     */
  +     /**
  +      * we have to overwrite the isCompatibleTo thing? This is a case where one
  +      * Java class is mapped to several XML elements/types. Hmmm, I dont think its 
really used ... but lets try
  +      */
   
  -    public boolean isCompatibleTo(Object object, Class clazz) {
  +     public boolean isCompatibleTo(Object object, Class clazz) {
   
  -      if(object instanceof MethodResponse &&
  -        (associatedMethod.equals(((MethodResponse) object).getMethod())))
  -          return true;
  +             if (object instanceof MethodResponse &&
  +             (associatedMethod.equals(((MethodResponse)object).getMethod())))
  +                     return true;
   
  -      return false;
  -    }
  +             return false;
  +     }
   
  -    /** setting the content establishes the method inside the request structure */
  +     /** setting the content establishes the method inside the request structure */
   
  -    public Object setContent(Object object, String body, String verboseElements,Map 
references,Map nameSpaces) {
  +     public Object setContent(Object object, String body, String verboseElements, 
Map references, Map nameSpaces) {
   
  -      if(object instanceof MethodResponse)
  -        ((MethodResponse) object).setMethod(associatedMethod);
  +             if (object instanceof MethodResponse)
  +                     ((MethodResponse)object).setMethod(associatedMethod);
   
  -      return object;
  -    }
  +             return object;
  +     }
   
   }
   
   /*
    *   $Log: ResponseType.java,v $
  + *   Revision 1.3  2000/12/22 15:49:41  jung
  + *   repackaged thread pooling. Coherent environment. Exception extensions.
  + *   
    *   Revision 1.2  2000/12/04 12:36:07  jung
    *   adopted to latest jboss container,
    *   
  
  
  

Reply via email to