Author: alessio.soldano(a)jboss.com
Date: 2009-09-16 13:13:09 -0400 (Wed, 16 Sep 2009)
New Revision: 10703
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPBodyImpl.java
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPFactoryImpl.java
Log:
[JBWS-2763] Remove useless traces
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPBodyImpl.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPBodyImpl.java 2009-09-16
17:11:18 UTC (rev 10702)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPBodyImpl.java 2009-09-16
17:13:09 UTC (rev 10703)
@@ -33,7 +33,6 @@
import javax.xml.soap.SOAPFault;
import javax.xml.soap.Text;
-import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
import org.jboss.wsf.common.DOMUtils;
import org.w3c.dom.Comment;
@@ -54,9 +53,6 @@
*/
public class SOAPBodyImpl extends SOAPElementImpl implements SOAPBody
{
- // provide logging
- private static Logger log = Logger.getLogger(SOAPBodyImpl.class);
-
public SOAPBodyImpl(String prefix, String namespace)
{
super("Body", prefix, namespace);
@@ -65,8 +61,6 @@
/** Convert the child into a SOAPBodyElement */
public SOAPElement addChildElement(SOAPElement child) throws SOAPException
{
- log.trace("addChildElement: " + child.getElementName());
-
if ((child instanceof SOAPBodyElement) == false)
child = convertToBodyElement(child);
@@ -76,21 +70,18 @@
public SOAPBodyElement addBodyElement(Name name) throws SOAPException
{
- log.trace("addBodyElement: " + name);
SOAPBodyElement child = new SOAPBodyElementDoc(name);
return (SOAPBodyElement)addChildElement(child);
}
public SOAPBodyElement addBodyElement(QName qname) throws SOAPException
{
- log.trace("addBodyElement: " + qname);
SOAPBodyElement child = new SOAPBodyElementDoc(qname);
return (SOAPBodyElement)addChildElement(child);
}
public SOAPBodyElement addDocument(Document doc) throws SOAPException
{
- log.trace("addDocument");
Element rootElement = doc.getDocumentElement();
SOAPFactoryImpl soapFactory = new SOAPFactoryImpl();
SOAPElement soapElement = soapFactory.createElement(rootElement);
@@ -99,7 +90,6 @@
public SOAPFault addFault() throws SOAPException
{
- log.trace("addFault");
if (hasFault())
throw new SOAPException("A SOAPBody may contain at most one SOAPFault child
element");
@@ -111,7 +101,6 @@
public SOAPFault addFault(Name faultCode, String faultString) throws SOAPException
{
- log.trace("addFault");
if (hasFault())
throw new SOAPException("A SOAPBody may contain at most one SOAPFault child
element");
@@ -124,7 +113,6 @@
public SOAPFault addFault(QName faultCode, String faultString) throws SOAPException
{
- log.trace("addFault");
if (hasFault())
throw new SOAPException("A SOAPBody may contain at most one SOAPFault child
element");
@@ -137,7 +125,6 @@
public SOAPFault addFault(Name faultCode, String faultString, Locale locale) throws
SOAPException
{
- log.trace("addFault");
if (hasFault())
throw new SOAPException("A SOAPBody may contain at most one SOAPFault child
element");
@@ -150,7 +137,6 @@
public SOAPFault addFault(QName faultCode, String faultString, Locale locale) throws
SOAPException
{
- log.trace("addFault");
if (hasFault())
throw new SOAPException("A SOAPBody may contain at most one SOAPFault child
element");
@@ -163,7 +149,6 @@
public SOAPFault getFault()
{
- log.trace("getFault");
Iterator it = faultIterator();
SOAPFault soapFault = it.hasNext() ? (SOAPFault)it.next() : null;
return soapFault;
@@ -171,7 +156,6 @@
public boolean hasFault()
{
- log.trace("hasFault");
return faultIterator().hasNext();
}
@@ -195,7 +179,6 @@
public Node appendChild(Node newChild) throws DOMException
{
- log.trace("appendChild: " + newChild.getNodeName());
if (needsConversionToBodyElement(newChild))
newChild = convertToBodyElement(newChild);
@@ -204,7 +187,6 @@
public Node insertBefore(Node newChild, Node refChild) throws DOMException
{
- log.trace("insertBefore: " + newChild.getNodeName());
if (needsConversionToBodyElement(newChild))
newChild = convertToBodyElement(newChild);
@@ -213,7 +195,6 @@
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
{
- log.trace("replaceChild: " + newChild.getNodeName());
if (needsConversionToBodyElement(newChild))
newChild = convertToBodyElement(newChild);
@@ -232,8 +213,6 @@
public Document extractContentAsDocument() throws SOAPException
{
- log.trace("extractContentAsDocument");
-
Iterator childElements = getChildElements();
SOAPElementImpl childElement = null;
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPFactoryImpl.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPFactoryImpl.java 2009-09-16
17:11:18 UTC (rev 10702)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPFactoryImpl.java 2009-09-16
17:13:09 UTC (rev 10703)
@@ -150,7 +150,7 @@
}
else
{
- log.trace("Ignore child type: " + nodeType);
+ if (log.isTraceEnabled()) log.trace("Ignore child type: " +
nodeType);
}
}
}
Show replies by date