Subversion Repositories XServices

Compare Revisions

Ignore whitespace Rev 158 → Rev 157

/xservices/trunk/src/java/net/brutex/xservices/ws/impl/XmlServiceImpl.java
29,7 → 29,6
import java.util.StringTokenizer;
 
import javax.jws.WebService;
import javax.ws.rs.NotAuthorizedException;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamException;
36,7 → 35,6
import javax.xml.stream.XMLStreamReader;
import javax.xml.stream.XMLStreamWriter;
 
import net.brutex.xservices.security.DirectoryPermission;
import net.brutex.xservices.types.AttributeType;
import net.brutex.xservices.types.NamespaceListType;
import net.brutex.xservices.types.NamespaceType;
44,7 → 42,6
import net.brutex.xservices.types.ant.FileResource;
import net.brutex.xservices.ws.XServicesFault;
import net.brutex.xservices.ws.XmlService;
 
import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMAttribute;
import org.apache.axiom.om.OMCloneOptions;
59,8 → 56,6
import org.apache.axiom.om.OMXMLBuilderFactory;
import org.apache.axiom.om.xpath.AXIOMXPath;
import org.apache.log4j.Logger;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authz.UnauthorizedException;
import org.jaxen.JaxenException;
import org.jaxen.SimpleNamespaceContext;
 
425,7 → 420,6
 
 
private OMDocument replaceNodes(OMDocument xmldocument, AXIOMXPath axp, OMDocument xmlfragment) throws XServicesFault {
List<?> olist = null;
try {
olist = axp.selectNodes(xmldocument.getOMDocumentElement());
475,7 → 469,7
 
while (children.hasNext()) {
OMNode container = (OMNode) children.next();
match.insertSiblingBefore((OMNode) container.clone(new OMCloneOptions()));
match.insertSiblingAfter((OMNode) container.clone(new OMCloneOptions()));
}
match.detach();
}
509,6 → 503,4
logger.debug("Setting source xml string encoding to '"+encoding+"'");
return encoding;
}
 
}