JBossWS SVN: r14346 - in projects/jaxws-jboss-httpserver-httpspi/trunk: src/main/java/org/jboss/ws/httpserver_httpspi and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2011-05-10 11:40:05 -0400 (Tue, 10 May 2011)
New Revision: 14346
Modified:
projects/jaxws-jboss-httpserver-httpspi/trunk/pom.xml
projects/jaxws-jboss-httpserver-httpspi/trunk/src/main/java/org/jboss/ws/httpserver_httpspi/HttpContextDelegate.java
projects/jaxws-jboss-httpserver-httpspi/trunk/src/main/java/org/jboss/ws/httpserver_httpspi/HttpExchangeDelegate.java
projects/jaxws-jboss-httpserver-httpspi/trunk/src/main/java/org/jboss/ws/httpserver_httpspi/HttpHandlerDelegate.java
projects/jaxws-jboss-httpserver-httpspi/trunk/src/main/java/org/jboss/ws/httpserver_httpspi/HttpServerContextFactory.java
projects/jaxws-jboss-httpserver-httpspi/trunk/src/test/java/org/jboss/ws/httpserver_httpspi/EndpointAPITest.java
Log:
Use org.jboss.com.sun.httpserver
Modified: projects/jaxws-jboss-httpserver-httpspi/trunk/pom.xml
===================================================================
--- projects/jaxws-jboss-httpserver-httpspi/trunk/pom.xml 2011-05-10 14:15:57 UTC (rev 14345)
+++ projects/jaxws-jboss-httpserver-httpspi/trunk/pom.xml 2011-05-10 15:40:05 UTC (rev 14346)
@@ -26,10 +26,11 @@
<!-- Properties -->
<properties>
- <jaxws.version>1.0.0.Beta1</jaxws.version>
+ <jaxws.version>1.0.0.Final</jaxws.version>
<junit.version>4.8.1</junit.version>
<cxf.version>2.3.0</cxf.version>
- <servlet-api.version>1.0.0.Beta2</servlet-api.version>
+ <servlet-api.version>1.0.0.Final</servlet-api.version>
+ <jboss.httpserver.version>1.0.0.Beta1</jboss.httpserver.version>
</properties>
<!-- Dependencies -->
@@ -38,7 +39,12 @@
<groupId>org.jboss.spec.javax.xml.ws</groupId>
<artifactId>jboss-jaxws-api_2.2_spec</artifactId>
<version>${jaxws.version}</version>
- </dependency>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.com.sun.httpserver</groupId>
+ <artifactId>httpserver</artifactId>
+ <version>${jboss.httpserver.version}</version>
+ </dependency>
<!-- test dependencies -->
<dependency>
Modified: projects/jaxws-jboss-httpserver-httpspi/trunk/src/main/java/org/jboss/ws/httpserver_httpspi/HttpContextDelegate.java
===================================================================
--- projects/jaxws-jboss-httpserver-httpspi/trunk/src/main/java/org/jboss/ws/httpserver_httpspi/HttpContextDelegate.java 2011-05-10 14:15:57 UTC (rev 14345)
+++ projects/jaxws-jboss-httpserver-httpspi/trunk/src/main/java/org/jboss/ws/httpserver_httpspi/HttpContextDelegate.java 2011-05-10 15:40:05 UTC (rev 14346)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source.
- * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
@@ -35,13 +35,12 @@
* @since 22-Aug-2010
*
*/
-@SuppressWarnings("restriction")
public class HttpContextDelegate extends HttpContext
{
- private com.sun.net.httpserver.HttpContext delegate;
+ private org.jboss.com.sun.net.httpserver.HttpContext delegate;
private String path;
- public HttpContextDelegate(com.sun.net.httpserver.HttpContext delegate, String path)
+ public HttpContextDelegate(org.jboss.com.sun.net.httpserver.HttpContext delegate, String path)
{
this.delegate = delegate;
this.path = path;
@@ -70,9 +69,9 @@
@Override
public void setHandler(HttpHandler handler)
{
- if (handler instanceof com.sun.net.httpserver.HttpHandler)
+ if (handler instanceof org.jboss.com.sun.net.httpserver.HttpHandler)
{
- delegate.setHandler((com.sun.net.httpserver.HttpHandler) handler);
+ delegate.setHandler((org.jboss.com.sun.net.httpserver.HttpHandler) handler);
}
else
{
Modified: projects/jaxws-jboss-httpserver-httpspi/trunk/src/main/java/org/jboss/ws/httpserver_httpspi/HttpExchangeDelegate.java
===================================================================
--- projects/jaxws-jboss-httpserver-httpspi/trunk/src/main/java/org/jboss/ws/httpserver_httpspi/HttpExchangeDelegate.java 2011-05-10 14:15:57 UTC (rev 14345)
+++ projects/jaxws-jboss-httpserver-httpspi/trunk/src/main/java/org/jboss/ws/httpserver_httpspi/HttpExchangeDelegate.java 2011-05-10 15:40:05 UTC (rev 14346)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source.
- * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
@@ -34,8 +34,8 @@
import javax.xml.ws.spi.http.HttpContext;
import javax.xml.ws.spi.http.HttpExchange;
-import com.sun.net.httpserver.HttpServer;
-import com.sun.net.httpserver.HttpsServer;
+import org.jboss.com.sun.net.httpserver.HttpServer;
+import org.jboss.com.sun.net.httpserver.HttpsServer;
/**
* A javax.xml.ws.spi.http.HttpExchange that delegates
@@ -45,15 +45,14 @@
* @since 22-Aug-2010
*
*/
-@SuppressWarnings("restriction")
public class HttpExchangeDelegate extends HttpExchange
{
- private com.sun.net.httpserver.HttpExchange delegate;
+ private org.jboss.com.sun.net.httpserver.HttpExchange delegate;
private HttpContextDelegate contextDelegate;
private OutputStream wrappeddOutputStream;
private int status;
- public HttpExchangeDelegate(com.sun.net.httpserver.HttpExchange delegate)
+ public HttpExchangeDelegate(org.jboss.com.sun.net.httpserver.HttpExchange delegate)
{
this.delegate = delegate;
}
Modified: projects/jaxws-jboss-httpserver-httpspi/trunk/src/main/java/org/jboss/ws/httpserver_httpspi/HttpHandlerDelegate.java
===================================================================
--- projects/jaxws-jboss-httpserver-httpspi/trunk/src/main/java/org/jboss/ws/httpserver_httpspi/HttpHandlerDelegate.java 2011-05-10 14:15:57 UTC (rev 14345)
+++ projects/jaxws-jboss-httpserver-httpspi/trunk/src/main/java/org/jboss/ws/httpserver_httpspi/HttpHandlerDelegate.java 2011-05-10 15:40:05 UTC (rev 14346)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source.
- * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
@@ -23,8 +23,8 @@
import java.io.IOException;
-import com.sun.net.httpserver.HttpExchange;
-import com.sun.net.httpserver.HttpHandler;
+import org.jboss.com.sun.net.httpserver.HttpExchange;
+import org.jboss.com.sun.net.httpserver.HttpHandler;
/**
* A com.sun.net.httpserver.HttpHandler delegating
@@ -34,7 +34,6 @@
* @sine 22-Aug-2010
*
*/
-@SuppressWarnings("restriction")
public class HttpHandlerDelegate implements HttpHandler {
private javax.xml.ws.spi.http.HttpHandler delegate;
Modified: projects/jaxws-jboss-httpserver-httpspi/trunk/src/main/java/org/jboss/ws/httpserver_httpspi/HttpServerContextFactory.java
===================================================================
--- projects/jaxws-jboss-httpserver-httpspi/trunk/src/main/java/org/jboss/ws/httpserver_httpspi/HttpServerContextFactory.java 2011-05-10 14:15:57 UTC (rev 14345)
+++ projects/jaxws-jboss-httpserver-httpspi/trunk/src/main/java/org/jboss/ws/httpserver_httpspi/HttpServerContextFactory.java 2011-05-10 15:40:05 UTC (rev 14346)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source.
- * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
@@ -21,7 +21,7 @@
*/
package org.jboss.ws.httpserver_httpspi;
-import com.sun.net.httpserver.HttpServer;
+import org.jboss.com.sun.net.httpserver.HttpServer;
import javax.xml.ws.spi.http.HttpContext;
/**
@@ -31,7 +31,6 @@
* @since 22-Aug-2010
*
*/
-@SuppressWarnings("restriction")
public class HttpServerContextFactory
{
public static HttpContext createHttpContext(HttpServer server, String contextPath, String path)
Modified: projects/jaxws-jboss-httpserver-httpspi/trunk/src/test/java/org/jboss/ws/httpserver_httpspi/EndpointAPITest.java
===================================================================
--- projects/jaxws-jboss-httpserver-httpspi/trunk/src/test/java/org/jboss/ws/httpserver_httpspi/EndpointAPITest.java 2011-05-10 14:15:57 UTC (rev 14345)
+++ projects/jaxws-jboss-httpserver-httpspi/trunk/src/test/java/org/jboss/ws/httpserver_httpspi/EndpointAPITest.java 2011-05-10 15:40:05 UTC (rev 14346)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source.
- * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
@@ -43,25 +43,24 @@
/**
* A JAXWS 2.2 Endoint.publish(HttpContext context) API test
- * using the JDK6 httpsever as underlying http container
+ * using the JBoss httpsever as underlying http container
*
* @author alessio.soldano(a)jboss.com
* @since 22-Aug-2010
*
*/
-@SuppressWarnings("restriction")
public class EndpointAPITest extends Assert
{
private static int currentPort = 9876;
- private com.sun.net.httpserver.HttpServer server;
+ private org.jboss.com.sun.net.httpserver.HttpServer server;
@Before
public void setUp() throws IOException
{
currentPort++;
- server = com.sun.net.httpserver.HttpServer.create(new InetSocketAddress(currentPort), 0);
+ server = org.jboss.com.sun.net.httpserver.HttpServer.create(new InetSocketAddress(currentPort), 0);
}
@After
14 years, 8 months
JBossWS SVN: r14342 - in api/trunk/src/main/java/org/jboss/ws/api: annotation and 5 other directories.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2011-05-10 05:22:13 -0400 (Tue, 10 May 2011)
New Revision: 14342
Added:
api/trunk/src/main/java/org/jboss/ws/api/addressing/package.html
api/trunk/src/main/java/org/jboss/ws/api/annotation/package.html
api/trunk/src/main/java/org/jboss/ws/api/binding/package.html
api/trunk/src/main/java/org/jboss/ws/api/handler/package.html
api/trunk/src/main/java/org/jboss/ws/api/monitoring/package.html
api/trunk/src/main/java/org/jboss/ws/api/tools/package.html
api/trunk/src/main/java/org/jboss/ws/api/util/package.html
Modified:
api/trunk/src/main/java/org/jboss/ws/api/addressing/AddressingConstants.java
api/trunk/src/main/java/org/jboss/ws/api/addressing/MAP.java
api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPBuilder.java
api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPBuilderFactory.java
api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPConstants.java
api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPEndpoint.java
api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPRelatesTo.java
api/trunk/src/main/java/org/jboss/ws/api/annotation/AuthMethod.java
api/trunk/src/main/java/org/jboss/ws/api/annotation/EndpointConfig.java
api/trunk/src/main/java/org/jboss/ws/api/annotation/TransportGuarantee.java
api/trunk/src/main/java/org/jboss/ws/api/annotation/WebContext.java
api/trunk/src/main/java/org/jboss/ws/api/binding/BindingCustomization.java
api/trunk/src/main/java/org/jboss/ws/api/binding/JAXBBindingCustomization.java
api/trunk/src/main/java/org/jboss/ws/api/handler/GenericHandler.java
api/trunk/src/main/java/org/jboss/ws/api/handler/GenericLogicalHandler.java
api/trunk/src/main/java/org/jboss/ws/api/handler/GenericSOAPHandler.java
api/trunk/src/main/java/org/jboss/ws/api/monitoring/Record.java
api/trunk/src/main/java/org/jboss/ws/api/monitoring/RecordFilter.java
api/trunk/src/main/java/org/jboss/ws/api/monitoring/RecordGroupAssociation.java
api/trunk/src/main/java/org/jboss/ws/api/monitoring/RecordProcessor.java
api/trunk/src/main/java/org/jboss/ws/api/tools/WSContractConsumer.java
api/trunk/src/main/java/org/jboss/ws/api/tools/WSContractConsumerFactory.java
api/trunk/src/main/java/org/jboss/ws/api/tools/WSContractProvider.java
api/trunk/src/main/java/org/jboss/ws/api/tools/WSContractProviderFactory.java
api/trunk/src/main/java/org/jboss/ws/api/util/DOMUtils.java
api/trunk/src/main/java/org/jboss/ws/api/util/ServiceLoader.java
Log:
[JBWS-2709] Fixing public API javadoc
Modified: api/trunk/src/main/java/org/jboss/ws/api/addressing/AddressingConstants.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/addressing/AddressingConstants.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/addressing/AddressingConstants.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -24,8 +24,7 @@
import javax.xml.namespace.QName;
/**
- * TODO: see javax.xml.ws.addressing - merge it properly
- * Addressing constants.
+ * WS-Addressing constants
*
* @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
*/
@@ -40,7 +39,7 @@
}
/**
- * <a href="http://www.w3.org/2005/08/addressing">WSA</a> constants.
+ * <a href="http://www.w3.org/2005/08/addressing">WS-Addressing</a> constants.
*/
public static final class Core
{
@@ -199,7 +198,7 @@
}
/**
- * <a href="http://www.w3.org/2007/05/addressing/metadata">WSAM</a> constants.
+ * <a href="http://www.w3.org/2007/05/addressing/metadata">WS-Addressing Metadata</a> constants.
*/
public static final class Metadata
{
Modified: api/trunk/src/main/java/org/jboss/ws/api/addressing/MAP.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/addressing/MAP.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/addressing/MAP.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -31,8 +31,8 @@
* classes implemented by JBossWS Native and CXF. It is used to localize dependence upon the WS
* stack.
*
- * @author Andrew Dinn (adinn(a)redhat.com)
- * @author alessio.soldano(a)jboss.com
+ * @author <a href="mailto:adinn@redhat.com">Andrew Dinn</a>
+ * @author <a href="mailto:alessio.soldano@jboss.com">Alessio Soldano</a>
*
*/
public interface MAP
Modified: api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPBuilder.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPBuilder.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPBuilder.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -24,37 +24,58 @@
import java.util.Map;
import javax.xml.namespace.QName;
-import javax.xml.ws.handler.MessageContext;
/**
- * MAPBuilder is a helper used to create objects used with class MAP.
+ * MAPBuilder is a helper used to create objects used with class {@link org.jboss.ws.api.addressing.MAP}.
*
- * @author Andrew Dinn (adinn(a)redhat.com)
- * @author alessio.soldano(a)jboss.com
+ * @author <a href="mailto:adinn@redhat.com">Andrew Dinn</a>
+ * @author <a href="mailto:alessio.soldano@jboss.com">Alessio Soldano</a>
*
*/
public interface MAPBuilder
{
+ /**
+ * Creates a new {@link org.jboss.ws.api.addressing.MAP} instance
+ *
+ * @return a {@link org.jboss.ws.api.addressing.MAP} instance
+ */
public MAP newMap();
/**
- * retrieve the inbound server message address properties attached to a message context
+ * Retrieves the inbound server message address properties attached to a message context
+ *
* @param ctx the server message context
- * @return
+ * @return the inbound server Message Addressing Properties instance
*/
public MAP inboundMap(Map<String, Object> ctx);
/**
- * retrieve the outbound client message address properties attached to a message request map
+ * Retrieves the outbound client message address properties attached to a message request map
+ *
* @param ctx the client request properties map
- * @return
+ * @return the outbound server Message Addressing Properties instance
*/
public MAP outboundMap(Map<String, Object> ctx);
+ /**
+ * Creates a new {@link org.jboss.ws.api.addressing.MAPConstants} instance
+ *
+ * @return a {@link org.jboss.ws.api.addressing.MAPConstants} instance
+ */
public MAPConstants newConstants();
+ /**
+ * Creates a new {@link org.jboss.ws.api.addressing.MAPEndpoint} instance
+ *
+ * @return a {@link org.jboss.ws.api.addressing.MAPEndpoint} instance
+ */
public MAPEndpoint newEndpoint(String address);
+ /**
+ * Creates a new {@link org.jboss.ws.api.addressing.MAPRelatesTo} instance
+ *
+ * @return a {@link org.jboss.ws.api.addressing.MAPRelatesTo} instance
+ */
public MAPRelatesTo newRelatesTo(String id, QName type);
}
Modified: api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPBuilderFactory.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPBuilderFactory.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPBuilderFactory.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -28,10 +28,10 @@
import org.jboss.ws.api.util.ServiceLoader;
/**
- * Factory for MAPBuilder; to be used to get an instance of the proper MAPBuilder
- * implementation which depends on the jbossws stack in use.
+ * Factory for {@link org.jboss.ws.api.addressing.MAPBuilder}; to be used to get an instance of the proper MAPBuilder
+ * implementation which depends on the JBossWS stack in use.
*
- * @author alessio.soldano(a)jboss.com
+ * @author <a href="mailto:alessio.soldano@jboss.com">Alessio Soldano</a>
* @since 25-May-2009
*
*/
@@ -43,12 +43,12 @@
private static final String JBOSSWS_SPI_MODULE = "org.jboss.ws.spi";
/**
- * Get the proper MAPBuilderFactory instance according to stack in use;
+ * Get the proper {@link org.jboss.ws.api.addressing.MAPBuilderFactory} instance according to stack in use;
* this uses the ws server integration modular classloader if available
* (alternatively the current thread context classloader is used) for
* looking up the factory name.
*
- * @return
+ * @return a {@link org.jboss.ws.api.addressing.MAPBuilderFactory} instance
*/
public static MAPBuilderFactory getInstance()
{
@@ -56,17 +56,22 @@
}
/**
- * The same as getInstance() except the provided ClassLoader instance
+ * The same as {@link #getInstance()} except the provided ClassLoader instance
* is used to lookup the factory name.
*
- * @param loader
- * @return
+ * @param loader the classloader instance to use
+ * @return a {@link org.jboss.ws.api.addressing.MAPBuilderFactory} instance
*/
public static MAPBuilderFactory getInstance(ClassLoader loader)
{
return (MAPBuilderFactory)ServiceLoader.loadService(MAPBuilderFactory.class.getName(), null, loader);
}
+ /**
+ * Get an instance of {@link org.jboss.ws.api.addressing.MAPBuilder}
+ *
+ * @return a {@link org.jboss.ws.api.addressing.MAPBuilder} instance
+ */
public abstract MAPBuilder getBuilderInstance();
private static ClassLoader getServerIntegrationClassLoader()
Modified: api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPConstants.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPConstants.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPConstants.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -22,10 +22,10 @@
package org.jboss.ws.api.addressing;
/**
- * MAPConstants is a wrapper which works with class MAP
+ * MAPConstants is a wrapper which works with class {@link org.jboss.ws.api.addressing.MAP}
*
- * @author Andrew Dinn (adinn(a)redhat.com)
- * @author alessio.soldano(a)jboss.com
+ * @author <a href="adinn(a)redhat.com">Andrew Dinn</a>
+ * @author <a href="alessio.soldano(a)jboss.com">Alessio Soldano</a>
*
*/
public interface MAPConstants
Modified: api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPEndpoint.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPEndpoint.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPEndpoint.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -26,10 +26,10 @@
import org.w3c.dom.Element;
/**
- * MAPEndpoint is a wrapper which works with class MAP.
+ * MAPEndpoint is a wrapper which works with class {@link org.jboss.ws.api.addressing.MAP}.
*
- * @author Andrew Dinn (adinn(a)redhat.com)
- * @author alessio.soldano(a)jboss.com
+ * @author <a href="adinn(a)redhat.com">Andrew Dinn</a>
+ * @author <a href="alessio.soldano(a)jboss.com">Alessio Soldano</a>
*
*/
public interface MAPEndpoint
Modified: api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPRelatesTo.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPRelatesTo.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/addressing/MAPRelatesTo.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -24,10 +24,10 @@
import javax.xml.namespace.QName;
/**
- * MAPRelationship is a wrapper which works with class MAP.
+ * MAPRelationship is a wrapper which works with class {@link org.jboss.ws.api.addressing.MAP}.
*
- * @author Andrew Dinn (adinn(a)redhat.com)
- * @author alessio.soldano(a)jboss.com
+ * @author <a href="adinn(a)redhat.com">Andrew Dinn</a>
+ * @author <a href="alessio.soldano(a)jboss.com">Alessio Soldano</a>
*
*/
public interface MAPRelatesTo
Added: api/trunk/src/main/java/org/jboss/ws/api/addressing/package.html
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/addressing/package.html (rev 0)
+++ api/trunk/src/main/java/org/jboss/ws/api/addressing/package.html 2011-05-10 09:22:13 UTC (rev 14342)
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<html>
+<head>
+<!--
+ JBoss, Home of Professional Open Source.
+ Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags. See the copyright.txt file in the
+ distribution for a full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+</head>
+<body>
+
+JSR-261 support classes and interfaces
+
+</body>
+</html>
\ No newline at end of file
Modified: api/trunk/src/main/java/org/jboss/ws/api/annotation/AuthMethod.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/annotation/AuthMethod.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/annotation/AuthMethod.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -28,7 +28,7 @@
* As a prerequisite to gaining access to any web service which are protected by an
* authorization constraint, a user must have authenticated using the configured mechanism.
*
- * @author ropalka(a)redhat.com
+ * @author <a href="ropalka(a)redhat.com">Richard Opalka</a>
*/
public final class AuthMethod
{
@@ -52,10 +52,10 @@
}
/**
- * Returns string representing correct auth method value.
+ * Returns string representing correct {@link org.jboss.ws.api.annotation.AuthMethod} value.
* @param s string to convert.
* @return correct auth method value
- * @throws IllegalArgumentException if <b>s</b> is <b>null</b> or it contains unknown value.
+ * @throws IllegalArgumentException if <b>s</b> is <b>null</b> or contains unknown value.
*/
public static String valueOf(final String s)
{
Modified: api/trunk/src/main/java/org/jboss/ws/api/annotation/EndpointConfig.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/annotation/EndpointConfig.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/annotation/EndpointConfig.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -27,24 +27,23 @@
import java.lang.annotation.Target;
/**
- * Defines an endpoint configuration.
+ * Defines an endpoint configuration.
* This annotation is valid on an endpoint implementation bean or a SEI.
*
+ * @author <a href="mailto:alessio.soldano@jboss.com">Alessio Soldano</a>
*/
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = { ElementType.TYPE })
public @interface EndpointConfig {
/**
- * The optional config-name element gives the configuration name that must be present in
- * the configuration given by element config-file.
- *
- * Default: Standard Endpoint
+ * The configName gives the configuration name that must be present in the configuration given by configFile.
+ * If configName is not specified, the standard endpoint configuration is used.
*/
String configName() default "";
/**
- * The optional config-file element is a URL or resource name for the configuration.
+ * The configFile element is a URL or resource name for the configuration.
* The default value references the current AS configuration.
*
*/
Modified: api/trunk/src/main/java/org/jboss/ws/api/annotation/TransportGuarantee.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/annotation/TransportGuarantee.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/annotation/TransportGuarantee.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -33,7 +33,7 @@
* the transmission. In most cases, the presence of the INTEGRAL or
* CONFIDENTIAL flag will indicate that the use of SSL is required.
*
- * @author ropalka(a)redhat.com
+ * @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
*/
public final class TransportGuarantee
{
@@ -62,10 +62,10 @@
}
/**
- * Returns string representing correct transport guarantee value.
+ * Returns string representing correct {@link org.jboss.ws.api.annotation.TransportGuarantee} value.
* @param s string to convert.
* @return correct transport guarantee value
- * @throws IllegalArgumentException if <b>s</b> is <b>null</b> or it contains unknown value.
+ * @throws IllegalArgumentException if <b>s</b> is <b>null</b> or contains unknown value.
*/
public static String valueOf(final String s)
{
Modified: api/trunk/src/main/java/org/jboss/ws/api/annotation/WebContext.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/annotation/WebContext.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/annotation/WebContext.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -29,7 +29,7 @@
/**
* Provides web context specific meta data to EJB based web service endpoints.
*
- * @author thomas.diesler(a)jboss.org
+ * @author <a href="mailto:thomas.diesler@jboss.org">Thomas Diesler</a>
* @since 26-Apr-2005
*/
@Retention(value = RetentionPolicy.RUNTIME)
Added: api/trunk/src/main/java/org/jboss/ws/api/annotation/package.html
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/annotation/package.html (rev 0)
+++ api/trunk/src/main/java/org/jboss/ws/api/annotation/package.html 2011-05-10 09:22:13 UTC (rev 14342)
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<html>
+<head>
+<!--
+ JBoss, Home of Professional Open Source.
+ Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags. See the copyright.txt file in the
+ distribution for a full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+</head>
+<body>
+
+JBossWS stack agnostic annotations
+
+</body>
+</html>
\ No newline at end of file
Modified: api/trunk/src/main/java/org/jboss/ws/api/binding/BindingCustomization.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/binding/BindingCustomization.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/binding/BindingCustomization.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -30,8 +30,8 @@
* <p>
* Supported properties need to be documented in subclasses.
*
- * @author Heiko.Braun(a)jboss.com
- * Created: Jun 28, 2007
+ * @author <a href="mailto:Heiko.Braun@jboss.com">Heiko Braun</a>
+ * @since Jun 28, 2007
*/
public abstract class BindingCustomization extends HashMap
{
Modified: api/trunk/src/main/java/org/jboss/ws/api/binding/JAXBBindingCustomization.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/binding/JAXBBindingCustomization.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/binding/JAXBBindingCustomization.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -26,7 +26,7 @@
/**
* JAXB customizations.
*
- * @author alessio.soldano(a)jboss.com
+ * @author <a href="mailto:alessio.soldano@jboss.com">Alessio Soldano</a>
* @since 05-Oct-2009
*/
public class JAXBBindingCustomization extends BindingCustomization
Added: api/trunk/src/main/java/org/jboss/ws/api/binding/package.html
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/binding/package.html (rev 0)
+++ api/trunk/src/main/java/org/jboss/ws/api/binding/package.html 2011-05-10 09:22:13 UTC (rev 14342)
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<html>
+<head>
+<!--
+ JBoss, Home of Professional Open Source.
+ Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags. See the copyright.txt file in the
+ distribution for a full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+</head>
+<body>
+
+JBossWS binding customization interfaces
+
+</body>
+</html>
\ No newline at end of file
Modified: api/trunk/src/main/java/org/jboss/ws/api/handler/GenericHandler.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/handler/GenericHandler.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/handler/GenericHandler.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -25,9 +25,9 @@
import javax.xml.ws.handler.MessageContext;
/**
- * A generic jaxws handler
+ * A generic JAX-WS handler
*
- * @author Thomas.Diesler(a)jboss.org
+ * @author <a href="mailto:Thomas.Diesler@jboss.org">Thomas Diesler</a>
* @since 13-Aug-2006
*/
public abstract class GenericHandler implements Handler
Modified: api/trunk/src/main/java/org/jboss/ws/api/handler/GenericLogicalHandler.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/handler/GenericLogicalHandler.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/handler/GenericLogicalHandler.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -25,9 +25,9 @@
import javax.xml.ws.handler.LogicalMessageContext;
/**
- * A generic jaxws logical handler
+ * A generic JAX-WS logical handler
*
- * @author Thomas.Diesler(a)jboss.org
+ * @author <a href="mailto:Thomas.Diesler@jboss.org">Thomas Diesler</a>
* @since 13-Aug-2006
*/
public class GenericLogicalHandler<C extends LogicalMessageContext> extends GenericHandler implements LogicalHandler
Modified: api/trunk/src/main/java/org/jboss/ws/api/handler/GenericSOAPHandler.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/handler/GenericSOAPHandler.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/handler/GenericSOAPHandler.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -29,7 +29,7 @@
import javax.xml.ws.handler.soap.SOAPHandler;
/**
- * A generic jaxws soap handler
+ * A generic JAX-WS soap handler
*
* @author Thomas.Diesler(a)jboss.org
* @since 13-Aug-2006
@@ -39,14 +39,20 @@
// The header blocks that can be processed by this Handler instance
private Set<QName> headers = new HashSet<QName>();
- /** Gets the header blocks that can be processed by this Handler instance.
+ /**
+ * Gets the header blocks that can be processed by this Handler instance.
+ *
+ * @return a set of headers
*/
public Set<QName> getHeaders()
{
return headers;
}
- /** Sets the header blocks that can be processed by this Handler instance.
+ /**
+ * Sets the header blocks that can be processed by this Handler instance.
+ *
+ * @param headers the headers to be set
*/
public void setHeaders(Set<QName> headers)
{
Added: api/trunk/src/main/java/org/jboss/ws/api/handler/package.html
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/handler/package.html (rev 0)
+++ api/trunk/src/main/java/org/jboss/ws/api/handler/package.html 2011-05-10 09:22:13 UTC (rev 14342)
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<html>
+<head>
+<!--
+ JBoss, Home of Professional Open Source.
+ Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags. See the copyright.txt file in the
+ distribution for a full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+</head>
+<body>
+
+Convenient extensions to JAX-WS handler framework
+
+</body>
+</html>
\ No newline at end of file
Modified: api/trunk/src/main/java/org/jboss/ws/api/monitoring/Record.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/monitoring/Record.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/monitoring/Record.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
@@ -29,30 +29,47 @@
import javax.xml.namespace.QName;
/**
+ * An interface defining recordable data
*
- * @author alessio.soldano(a)jboss.com
+ * @author <a href="mailto:alessio.soldano@jboss.com">Alessio Soldano</a>
* @since 8-Dec-2007
*/
public interface Record extends Serializable
{
+ /**
+ * {@link org.jboss.ws.api.monitoring.Record}'s message type; can be either inboud or outbound
+ *
+ * @author <a href="mailto:alessio.soldano@jboss.com">Alessio Soldano</a>
+ *
+ */
public enum MessageType {INBOUND, OUTBOUND};
/**
* Gets the group ID corresponding to the current message exchange flow
*
- * @return
+ * @return the groupID of the record
*/
public String getGroupID();
+ /**
+ * Sets the groupID
+ *
+ * @param groupID
+ */
public void setGroupID(String groupID);
/**
* Gets the date of this record
*
- * @return
+ * @return the date of the record
*/
public Date getDate();
+ /**
+ * Sets the date of the record
+ *
+ * @param date
+ */
public void setDate(Date date);
/**
@@ -62,6 +79,11 @@
*/
public String getSourceHost();
+ /**
+ * Sets the source host
+ *
+ * @param host
+ */
public void setSourceHost(String host);
/**
@@ -71,6 +93,11 @@
*/
public String getDestinationHost();
+ /**
+ * Sets the destination host
+ *
+ * @param host
+ */
public void setDestinationHost(String host);
/**
@@ -80,16 +107,26 @@
*/
public MessageType getMessageType();
+ /**
+ * Sets the message type
+ *
+ * @param type
+ */
public void setMessageType(MessageType type);
/**
* Gets the SOAP message envelope
*
- * @return
+ * @return the SOAP message envelope
*/
public String getEnvelope();
+ /**
+ * Sets the SOAP message envelope
+ *
+ * @param envelope
+ */
public void setEnvelope(String envelope);
/**
@@ -99,8 +136,19 @@
*/
public Map<String, List<String>> getHeaders();
+ /**
+ * Adds a HTTP header to the record
+ *
+ * @param key
+ * @param value
+ */
public void addHeaders(String key, List<String> value);
-
+
+ /**
+ * Sets the HTTP headers of the record
+ *
+ * @param headers
+ */
public void setHeaders(Map<String, List<String>> headers);
/**
@@ -110,5 +158,10 @@
*/
public QName getOperation();
+ /**
+ * Sets the record's operation
+ *
+ * @param operation
+ */
public void setOperation(QName operation);
}
Modified: api/trunk/src/main/java/org/jboss/ws/api/monitoring/RecordFilter.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/monitoring/RecordFilter.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/monitoring/RecordFilter.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -26,7 +26,7 @@
/**
* A record filter
*
- * @author alessio.soldano(a)jboss.com
+ * @author <a href="mailto:alessio.soldano@jboss.com">Alessio Soldano</a>
* @since 8-Dec-2007
*/
public interface RecordFilter extends Cloneable, Serializable
Modified: api/trunk/src/main/java/org/jboss/ws/api/monitoring/RecordGroupAssociation.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/monitoring/RecordGroupAssociation.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/monitoring/RecordGroupAssociation.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
@@ -26,9 +26,10 @@
import org.jboss.logging.Logger;
/**
- * Associates the record group ID with the current thread.
+ * Associates the record group ID with the current thread. This is implemented internally
+ * through a static ThreadLocal member.
*
- * @author alessio.soldano(a)jboss.com
+ * @author <a href="mailto:alessio.soldano@jboss.com">Alessio Soldano</a>
* @since 8-Dec-2007
*/
public class RecordGroupAssociation
@@ -38,7 +39,11 @@
// provide logging
private static Logger log = Logger.getLogger(RecordGroupAssociation.class);
-
+ /**
+ * Associates the specified groupID to the current thread
+ *
+ * @param groupID the groupID to associate to the current thread
+ */
public static void pushGroupID(String groupID)
{
if(log.isTraceEnabled()) log.trace("pushGroupID: " + groupID + " (Thread " +Thread.currentThread().getName()+ ")");
@@ -51,6 +56,11 @@
stack.push(groupID);
}
+ /**
+ * Returns the groupID currently associated to the current thread
+ *
+ * @return the current thread groupID
+ */
public static String peekGroupID()
{
String groupID = null;
@@ -63,6 +73,11 @@
return groupID;
}
+ /**
+ * Returns the groupID for the current thread and removes the association.
+ *
+ * @return thre current thread groupID
+ */
public static String popGroupID()
{
String groupID = null;
Modified: api/trunk/src/main/java/org/jboss/ws/api/monitoring/RecordProcessor.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/monitoring/RecordProcessor.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/monitoring/RecordProcessor.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
@@ -27,55 +27,165 @@
/**
* Processes a record. A RecordProcessor may have filters to allow processing
* of records matching given criteria. It also gives users fine management of
- * record's attributes to processed.
+ * record's attributes to be processed.
*
- * @author alessio.soldano(a)jboss.com
+ * @author <a href="mailto:alessio.soldano@jboss.com">Alessio Soldano</a>
* @since 8-Dec-2007
*/
public interface RecordProcessor extends Cloneable, Serializable
{
+ /**
+ * Returns the current RecordProcessor name
+ *
+ * @return the name
+ */
String getName();
+ /**
+ * Sets the record processor name
+ *
+ * @param name the name to set
+ */
void setName(String name);
+ /**
+ * Return true when the record processor is configured for actively recording data; false otherwise
+ *
+ * @return a boolean specifying if the recording is on
+ */
boolean isRecording();
+ /**
+ * Enable / disable actual data recording
+ *
+ * @param value true to enable recording, false to disable it
+ */
void setRecording(boolean value);
+ /**
+ * Processes a {@link org.jboss.ws.api.monitoring.Record} instance
+ *
+ * @param record the {@link org.jboss.ws.api.monitoring.Record} to process
+ */
void processRecord(Record record);
+ /**
+ * Gets the currently configured {@link org.jboss.ws.api.monitoring.RecordFilter} instances
+ *
+ * @return the currently configured {@link org.jboss.ws.api.monitoring.RecordFilter} instances
+ */
List<RecordFilter> getFilters();
+ /**
+ * Adds a {@link org.jboss.ws.api.monitoring.RecordFilter} to the processor
+ *
+ * @param filter the {@link org.jboss.ws.api.monitoring.RecordFilter} instance to add
+ */
void addFilter(RecordFilter filter);
+ /**
+ * Sets the {@link org.jboss.ws.api.monitoring.RecordFilter} instances for the current processor
+ *
+ * @param filters the {@link org.jboss.ws.api.monitoring.RecordFilter} instances to set
+ */
void setFilters(List<RecordFilter> filters);
+ /**
+ * Return whether the source host data are being processed
+ *
+ * @return true if source host data are being processed, false otherwise
+ */
boolean isProcessSourceHost();
+ /**
+ * Enable / disable processing of source host
+ *
+ * @param value true to enable processing, false to disable it
+ */
void setProcessSourceHost(boolean value);
+ /**
+ * Return whether the destination host data are being processed
+ *
+ * @return true if destination host data are being processed, false otherwise
+ */
boolean isProcessDestinationHost();
+ /**
+ * Enable / disable processing of destination host
+ *
+ * @param value true to enable processing, false to disable it
+ */
void setProcessDestinationHost(boolean value);
+ /**
+ * Return whether the message type data are being processed
+ *
+ * @return true if message type data are being processed, false otherwise
+ */
boolean isProcessMessageType();
+ /**
+ * Enable / disable processing of message type
+ *
+ * @param value true to enable processing, false to disable it
+ */
void setProcessMessageType(boolean value);
+ /**
+ * Return whether the envelope data are being processed
+ *
+ * @return true if envelope data are being processed, false otherwise
+ */
boolean isProcessEnvelope();
+ /**
+ * Enable / disable processing of envelope
+ *
+ * @param value true to enable processing, false to disable it
+ */
void setProcessEnvelope(boolean value);
+ /**
+ * Return whether the headers data are being processed
+ *
+ * @return true if headers data are being processed, false otherwise
+ */
boolean isProcessHeaders();
+ /**
+ * Enable / disable processing of headers
+ *
+ * @param value true to enable processing, false to disable it
+ */
void setProcessHeaders(boolean value);
+ /**
+ * Return whether the operation data are being processed
+ *
+ * @return true if operation data are being processed, false otherwise
+ */
boolean isProcessOperation();
+ /**
+ * Enable / disable processing of operation
+ *
+ * @param value true to enable processing, false to disable it
+ */
void setProcessOperation(boolean value);
+ /**
+ * Return whether the date data are being processed
+ *
+ * @return true if date data are being processed, false otherwise
+ */
boolean isProcessDate();
+ /**
+ * Enable / disable processing of date
+ *
+ * @param value true to enable processing, false to disable it
+ */
void setProcessDate(boolean value);
/**
Added: api/trunk/src/main/java/org/jboss/ws/api/monitoring/package.html
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/monitoring/package.html (rev 0)
+++ api/trunk/src/main/java/org/jboss/ws/api/monitoring/package.html 2011-05-10 09:22:13 UTC (rev 14342)
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<html>
+<head>
+<!--
+ JBoss, Home of Professional Open Source.
+ Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags. See the copyright.txt file in the
+ distribution for a full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+</head>
+<body>
+
+Classes and interfaces for monitoring through collection of records.
+
+</body>
+</html>
\ No newline at end of file
Modified: api/trunk/src/main/java/org/jboss/ws/api/tools/WSContractConsumer.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/tools/WSContractConsumer.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/tools/WSContractConsumer.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -44,11 +44,11 @@
public static final String PROVIDER_PROPERTY = "org.jboss.ws.api.tools.ConsumerFactory";
/**
- * Obtain a new instance of a WSContractConsumer. This will use the current
- * thread's context class loader to locate the WSContractConsumerFactory
+ * Obtain a new instance of a {@link WSContractConsumer}. This will use the current
+ * thread's context class loader to locate the {@link WSContractConsumerFactory}
* implementation.
*
- * @return a new WSContractConsumer
+ * @return a new {@link WSContractConsumer} instance
*/
public static WSContractConsumer newInstance()
{
@@ -56,11 +56,11 @@
}
/**
- * Obtain a new instance of a WSContractConsumer. The specified ClassLoader will be used to
- * locate the WebServiceImporterProvide implementation
+ * Obtain a new instance of a {@link WSContractConsumer}. The specified ClassLoader will be used to
+ * locate the {@link WSContractConsumerFactory} implementation
*
* @param loader the ClassLoader to use
- * @return a new WSContractConsumer
+ * @return a new {@link WSContractConsumer} instance
*/
public static WSContractConsumer newInstance(ClassLoader loader)
{
Modified: api/trunk/src/main/java/org/jboss/ws/api/tools/WSContractConsumerFactory.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/tools/WSContractConsumerFactory.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/tools/WSContractConsumerFactory.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -24,17 +24,17 @@
import org.jboss.ws.api.tools.WSContractConsumer;
/**
- * Creates WSContractConsumer implementations.
+ * Creates {@link WSContractConsumer} implementations.
*
* @author <a href="mailto:jason.greene@jboss.com">Jason T. Greene</a>
*/
public interface WSContractConsumerFactory
{
/**
- * Create a new WSContractConsumer. There are no restrictions on how this
+ * Create a new {@link WSContractConsumer}. There are no restrictions on how this
* should be performed.
*
- * @return a new WSContractConsumer
+ * @return a new {@link WSContractConsumer}
*/
public WSContractConsumer createConsumer();
}
Modified: api/trunk/src/main/java/org/jboss/ws/api/tools/WSContractProvider.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/tools/WSContractProvider.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/tools/WSContractProvider.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -59,11 +59,11 @@
}
/**
- * Obtain a new instance of a WSContractProvider. This will use the current
- * thread's context class loader to locate the WSContractProviderFactory
+ * Obtain a new instance of a {@link WSContractProvider}. This will use the current
+ * thread's context class loader to locate the {@link WSContractProviderFactory}
* implementation.
*
- * @return a new WSContractProvider
+ * @return a new {@link WSContractProvider}
*/
public static WSContractProvider newInstance()
{
@@ -71,11 +71,11 @@
}
/**
- * Obtain a new instance of a WSContractProvider. The specified ClassLoader will be used to
- * locate the WSContractProviderFactory implementation
+ * Obtain a new instance of a {@link WSContractProvider}. The specified ClassLoader will be used to
+ * locate the {@link WSContractProviderFactory} implementation
*
* @param loader the ClassLoader to use
- * @return a new WSContractProvider
+ * @return a new {@link WSContractProvider}
*/
public static WSContractProvider newInstance(ClassLoader loader)
{
Modified: api/trunk/src/main/java/org/jboss/ws/api/tools/WSContractProviderFactory.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/tools/WSContractProviderFactory.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/tools/WSContractProviderFactory.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -24,20 +24,20 @@
import org.jboss.ws.api.tools.WSContractProvider;
/**
- * Creates WSContractProvider implementations.
+ * Creates {@link WSContractProvider} implementations.
*
* @author <a href="mailto:jason.greene@jboss.com">Jason T. Greene</a>
*/
public interface WSContractProviderFactory
{
/**
- * Create a new WSContractProvider. There are no restrictions on how this
+ * Create a new {@link WSContractProvider}. There are no restrictions on how this
* should be performed. The passed ClassLoader is the one used in
* {@link WSContractProvider#newInstance(ClassLoader)}. This loader
- * should be made available to the generated WSContractProvider.
+ * should be made available to the generated {@link WSContractProvider}.
*
* @param loader the ClassLoader for type discovery
- * @return a new WSContractProvider
+ * @return a new {@link WSContractProvider}
*/
public WSContractProvider createProvider(ClassLoader loader);
}
Added: api/trunk/src/main/java/org/jboss/ws/api/tools/package.html
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/tools/package.html (rev 0)
+++ api/trunk/src/main/java/org/jboss/ws/api/tools/package.html 2011-05-10 09:22:13 UTC (rev 14342)
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<html>
+<head>
+<!--
+ JBoss, Home of Professional Open Source.
+ Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags. See the copyright.txt file in the
+ distribution for a full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+</head>
+<body>
+
+JBossWS interfaces for JAX-WS tooling
+
+</body>
+</html>
\ No newline at end of file
Modified: api/trunk/src/main/java/org/jboss/ws/api/util/DOMUtils.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/util/DOMUtils.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/util/DOMUtils.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -57,8 +57,8 @@
/**
* Basic DOM2 utilities
*
- * @author alessio.soldano(a)jboss.com
- * @author Thomas.Diesler(a)jboss.org
+ * @author <a href="mailto:alessio.soldano@jboss.com">Alessio Soldano</a>
+ * @author <a href="mailto:Thomas.Diesler@jboss.org">Thomas Diesler</a>
*
*/
public abstract class DOMUtils
Modified: api/trunk/src/main/java/org/jboss/ws/api/util/ServiceLoader.java
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/util/ServiceLoader.java 2011-05-10 08:04:40 UTC (rev 14341)
+++ api/trunk/src/main/java/org/jboss/ws/api/util/ServiceLoader.java 2011-05-10 09:22:13 UTC (rev 14342)
@@ -36,10 +36,23 @@
import java.util.concurrent.ConcurrentHashMap;
/**
- * Load a service class using this ordered lookup procedure
+ * Load a service class of a given name using this ordered lookup procedure:
+ * <ol>
+ * <li>If a resource file with the given name is found in META-INF/services/..., then
+ * its first line, if present, is used as the UTF-8 encoded name of the implementation class.</li>
+ *
+ * <li>If the ${java.home}/lib/jaxws.properties file exists and it is readable by the
+ * java.util.Properties.load(InputStream) method and it contains an entry whose key is
+ * the given name, then the value of that entry is used as the name of the implementation class.</li>
+ *
+ * <li>If a system property with the given name is defined, then its value is used
+ * as the name of the implementation class.</li>
+ *
+ * <li>Finally, a default implementation class name is used.</li>
+ * </ol>
*
- * @author Thomas.Diesler(a)jboss.com
- * @author alessio.soldano(a)jboss.com
+ * @author <a href="mailto:Thomas.Diesler@jboss.com">Thomas Diesler</a>
+ * @author <a href="mailto:alessio.soldano@jboss.com">Alessio Soldano</a>
* @since 14-Dec-2006
*/
public final class ServiceLoader
@@ -60,7 +73,7 @@
/**
* This method uses the algorithm below using the JAXWS Provider as an example.
- *
+ * <pre>
* 1. If a resource with the name of META-INF/services/javax.xml.ws.spi.Provider exists, then
* its first line, if present, is used as the UTF-8 encoded name of the implementation class.
*
@@ -72,6 +85,7 @@
* as the name of the implementation class.
*
* 4. Finally, a default implementation class name is used.
+ * </pre>
*
* @param propertyName The property name for the service to resolve
* @param defaultFactory Default factory class name to be used when not able to resolve anything
@@ -94,7 +108,7 @@
/**
* This method uses the algorithm below using the JAXWS Provider as an example.
- *
+ * <pre>
* 1. If a resource with the name of META-INF/services/javax.xml.ws.spi.Provider exists, then
* its first line, if present, is used as the UTF-8 encoded name of the implementation class.
*
@@ -106,8 +120,9 @@
* as the name of the implementation class.
*
* 4. Finally, a default implementation class name is used.
+ * </pre>
*
- * This is equivalent to calling {@link loadService(String propertyName, String defaultFactory, ClassLoader cl)}
+ * This is equivalent to calling {@link #loadService(String propertyName, String defaultFactory, ClassLoader cl)}
* passing in the Thread.currentThread().getContextClassLoader().
*
* @param propertyName The property name for the service to resolve
Added: api/trunk/src/main/java/org/jboss/ws/api/util/package.html
===================================================================
--- api/trunk/src/main/java/org/jboss/ws/api/util/package.html (rev 0)
+++ api/trunk/src/main/java/org/jboss/ws/api/util/package.html 2011-05-10 09:22:13 UTC (rev 14342)
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<html>
+<head>
+<!--
+ JBoss, Home of Professional Open Source.
+ Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags. See the copyright.txt file in the
+ distribution for a full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+</head>
+<body>
+
+Convenient utilities
+
+</body>
+</html>
\ No newline at end of file
14 years, 8 months
JBossWS SVN: r14341 - stack/native/trunk/modules/dist/src/main/distro.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2011-05-10 04:04:40 -0400 (Tue, 10 May 2011)
New Revision: 14341
Modified:
stack/native/trunk/modules/dist/src/main/distro/build-project-gen.xml
Log:
fixing project generator classpath problem
Modified: stack/native/trunk/modules/dist/src/main/distro/build-project-gen.xml
===================================================================
--- stack/native/trunk/modules/dist/src/main/distro/build-project-gen.xml 2011-05-10 08:03:35 UTC (rev 14340)
+++ stack/native/trunk/modules/dist/src/main/distro/build-project-gen.xml 2011-05-10 08:04:40 UTC (rev 14341)
@@ -23,6 +23,9 @@
<path id="jbws-ant.path">
<pathelement location="${jboss.client}/jbossws-common-tools.jar" />
+ <fileset dir="${jboss.home}/modules">
+ <include name="**/jbossws-common-tools*.jar"/>
+ </fileset>
</path>
<taskdef name="pathFixer" classname="org.jboss.ws.tools.ant.FixPathTask" classpathref="jbws-ant.path"/>
<taskdef name="eclipseClasspathGenerator" classname="org.jboss.ws.tools.ant.EclipseClasspathTask" classpathref="jbws-ant.path"/>
14 years, 8 months
JBossWS SVN: r14340 - shared-testsuite/trunk/testsuite/src/test/ant-import.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2011-05-10 04:03:35 -0400 (Tue, 10 May 2011)
New Revision: 14340
Modified:
shared-testsuite/trunk/testsuite/src/test/ant-import/build-testsuite.xml
Log:
fixing native endpoint regression
Modified: shared-testsuite/trunk/testsuite/src/test/ant-import/build-testsuite.xml
===================================================================
--- shared-testsuite/trunk/testsuite/src/test/ant-import/build-testsuite.xml 2011-05-10 07:51:02 UTC (rev 14339)
+++ shared-testsuite/trunk/testsuite/src/test/ant-import/build-testsuite.xml 2011-05-10 08:03:35 UTC (rev 14340)
@@ -453,6 +453,9 @@
<fileset dir="${jboss.home}/modules/org/javassist/main/">
<include name="javassist-*.jar"/>
</fileset>
+ <fileset dir="${jboss.home}/modules/javax/security/jacc/api/main/">
+ <include name="jboss-jacc-api*.jar"/>
+ </fileset>
</path>
</target>
14 years, 8 months
JBossWS SVN: r14339 - in stack/cxf/trunk/modules/resources/src/main/resources/modules/org/jboss/ws: jaxws-httpserver-httpspi/main and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2011-05-10 03:51:02 -0400 (Tue, 10 May 2011)
New Revision: 14339
Modified:
stack/cxf/trunk/modules/resources/src/main/resources/modules/org/jboss/ws/cxf/jbossws-cxf-transports-httpserver/main/module.xml
stack/cxf/trunk/modules/resources/src/main/resources/modules/org/jboss/ws/jaxws-httpserver-httpspi/main/module.xml
Log:
Move from com.sun.httpserver to org.jboss.com.sun.httpserver (synch with AS7)
Modified: stack/cxf/trunk/modules/resources/src/main/resources/modules/org/jboss/ws/cxf/jbossws-cxf-transports-httpserver/main/module.xml
===================================================================
--- stack/cxf/trunk/modules/resources/src/main/resources/modules/org/jboss/ws/cxf/jbossws-cxf-transports-httpserver/main/module.xml 2011-05-10 07:04:52 UTC (rev 14338)
+++ stack/cxf/trunk/modules/resources/src/main/resources/modules/org/jboss/ws/cxf/jbossws-cxf-transports-httpserver/main/module.xml 2011-05-10 07:51:02 UTC (rev 14339)
@@ -40,6 +40,6 @@
<include path="META-INF/"/>
</imports>
</module>
- <module name="com.sun.httpserver"/>
+ <module name="org.jboss.com.sun.httpserver"/>
</dependencies>
</module>
Modified: stack/cxf/trunk/modules/resources/src/main/resources/modules/org/jboss/ws/jaxws-httpserver-httpspi/main/module.xml
===================================================================
--- stack/cxf/trunk/modules/resources/src/main/resources/modules/org/jboss/ws/jaxws-httpserver-httpspi/main/module.xml 2011-05-10 07:04:52 UTC (rev 14338)
+++ stack/cxf/trunk/modules/resources/src/main/resources/modules/org/jboss/ws/jaxws-httpserver-httpspi/main/module.xml 2011-05-10 07:51:02 UTC (rev 14339)
@@ -30,6 +30,6 @@
<dependencies>
<module name="javax.xml.ws.api" />
- <module name="com.sun.httpserver"/>
+ <module name="org.jboss.com.sun.httpserver"/>
</dependencies>
</module>
14 years, 8 months
JBossWS SVN: r14338 - in stack/cxf/trunk/modules/testsuite/cxf-spring-tests: src/test/java/org/jboss and 2 other directories.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2011-05-10 03:04:52 -0400 (Tue, 10 May 2011)
New Revision: 14338
Added:
stack/cxf/trunk/modules/testsuite/cxf-spring-tests/src/test/java/org/jboss/wsf/
stack/cxf/trunk/modules/testsuite/cxf-spring-tests/src/test/java/org/jboss/wsf/test/
stack/cxf/trunk/modules/testsuite/cxf-spring-tests/src/test/java/org/jboss/wsf/test/ClientHelper.java
stack/cxf/trunk/modules/testsuite/cxf-spring-tests/src/test/java/org/jboss/wsf/test/JBossWSCXFTestSetup.java
stack/cxf/trunk/modules/testsuite/cxf-spring-tests/src/test/java/org/jboss/wsf/test/TestServlet.java
Modified:
stack/cxf/trunk/modules/testsuite/cxf-spring-tests/pom.xml
Log:
[JBWS-3289] Fixing build w/ spring testsuite
Modified: stack/cxf/trunk/modules/testsuite/cxf-spring-tests/pom.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-spring-tests/pom.xml 2011-05-10 06:36:54 UTC (rev 14337)
+++ stack/cxf/trunk/modules/testsuite/cxf-spring-tests/pom.xml 2011-05-10 07:04:52 UTC (rev 14338)
@@ -21,11 +21,6 @@
<version>${project.version}</version>
</dependency>
<dependency>
- <groupId>org.jboss.ws.cxf</groupId>
- <artifactId>jbossws-cxf-specific-tests</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
<groupId>org.picketbox</groupId>
<artifactId>picketbox-bare</artifactId>
<scope>test</scope>
Added: stack/cxf/trunk/modules/testsuite/cxf-spring-tests/src/test/java/org/jboss/wsf/test/ClientHelper.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-spring-tests/src/test/java/org/jboss/wsf/test/ClientHelper.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-spring-tests/src/test/java/org/jboss/wsf/test/ClientHelper.java 2011-05-10 07:04:52 UTC (rev 14338)
@@ -0,0 +1,27 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.wsf.test;
+
+public interface ClientHelper
+{
+ public void setTargetEndpoint(String address);
+}
Added: stack/cxf/trunk/modules/testsuite/cxf-spring-tests/src/test/java/org/jboss/wsf/test/JBossWSCXFTestSetup.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-spring-tests/src/test/java/org/jboss/wsf/test/JBossWSCXFTestSetup.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-spring-tests/src/test/java/org/jboss/wsf/test/JBossWSCXFTestSetup.java 2011-05-10 07:04:52 UTC (rev 14338)
@@ -0,0 +1,78 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.wsf.test;
+
+import junit.framework.Test;
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.BusFactory;
+import org.jboss.logging.Logger;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+public class JBossWSCXFTestSetup extends JBossWSTestSetup
+{
+ private Bus defaultBus;
+
+ public JBossWSCXFTestSetup(Class<?> testClass, String archiveList)
+ {
+ super(testClass, archiveList);
+ }
+
+ public JBossWSCXFTestSetup(Test test, String archiveList)
+ {
+ super(test, archiveList);
+ }
+
+ public JBossWSCXFTestSetup(Test test)
+ {
+ super(test);
+ }
+
+ @Override
+ protected void setUp() throws Exception {
+ defaultBus = BusFactory.getDefaultBus(false);
+ super.setUp();
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ try
+ {
+ Bus afterTestsDefaultBus = BusFactory.getDefaultBus(false);
+
+ if (defaultBus == null && afterTestsDefaultBus != null)
+ {
+ Logger.getLogger(this.getClass()).info("Default CXF bus has been set during test execution");
+ }
+ else if (defaultBus != afterTestsDefaultBus)
+ {
+ throw new Exception("CXF Default bus changed during test: \nBEFORE: " + defaultBus + "\nAFTER: "
+ + afterTestsDefaultBus);
+ }
+ }
+ finally
+ {
+ defaultBus = null; //remove reference, to help GC
+ super.tearDown();
+ }
+ }
+}
Added: stack/cxf/trunk/modules/testsuite/cxf-spring-tests/src/test/java/org/jboss/wsf/test/TestServlet.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-spring-tests/src/test/java/org/jboss/wsf/test/TestServlet.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-spring-tests/src/test/java/org/jboss/wsf/test/TestServlet.java 2011-05-10 07:04:52 UTC (rev 14338)
@@ -0,0 +1,135 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.wsf.test;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+
+import javax.servlet.ServletException;
+import javax.servlet.annotation.WebServlet;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 01-Apr-2011
+ *
+ */
+@WebServlet(name = "TestServlet", urlPatterns = "/*")
+public class TestServlet extends HttpServlet
+{
+ private static final long serialVersionUID = 1L;
+
+ @Override
+ protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
+ {
+ String helperClassName = req.getParameter("helper");
+ if (helperClassName == null || helperClassName.length() == 0)
+ throw new ServletException("helper not specified!");
+ String path = req.getParameter("path");
+ if (path == null || path.length() == 0)
+ throw new ServletException("path not specified!");
+ try
+ {
+ ClientHelper helper = (ClientHelper) Class.forName(helperClassName).newInstance();
+ helper.setTargetEndpoint("http://" + System.getProperty("jboss.bind.address", "localhost") + ":8080" + path);
+ List<String> failedTests = new LinkedList<String>();
+ List<String> errorTests = new LinkedList<String>();
+ Method[] methods = helper.getClass().getMethods();
+ String methodName = req.getParameter("method");
+ int testsRun = 0;
+ if (methodName != null && methodName.length() > 0)
+ {
+ Method m = null;
+ m = helper.getClass().getMethod(methodName);
+ testsRun++;
+ invokeMethod(m, helper, failedTests, errorTests);
+ }
+ else
+ {
+ for (Method m : methods)
+ {
+ if (m.getName().startsWith("test") && m.getParameterTypes().length == 0
+ && m.getReturnType().equals(boolean.class))
+ {
+ testsRun++;
+ invokeMethod(m, helper, failedTests, errorTests);
+ }
+ }
+ }
+ if (failedTests.isEmpty() && errorTests.isEmpty())
+ {
+ res.getWriter().print(testsRun);
+ }
+ else
+ {
+ PrintWriter w = res.getWriter();
+ w.print("# Failed tests: ");
+ for (Iterator<String> it = failedTests.iterator(); it.hasNext();)
+ {
+ w.print(it.next());
+ if (it.hasNext())
+ w.print(", ");
+ }
+ res.getWriter().print(" # Error tests: ");
+ for (Iterator<String> it = errorTests.iterator(); it.hasNext();)
+ {
+ w.print(it.next());
+ if (it.hasNext())
+ w.print(", ");
+ }
+ }
+ }
+ catch (Exception e)
+ {
+ throw new ServletException(e);
+ }
+ }
+
+ private void invokeMethod(Method m, ClientHelper helper, List<String> failedTests, List<String> errorTests) throws ServletException
+ {
+ try
+ {
+ if (!(Boolean)m.invoke(helper))
+ {
+ failedTests.add(m.getName());
+ }
+ }
+ catch (InvocationTargetException e)
+ {
+ Throwable thrownException = e.getTargetException();
+ errorTests.add(m.getName() + ": " + thrownException.getClass().getName() + " " + thrownException.getMessage());
+ thrownException.printStackTrace();
+ }
+ catch (Exception e)
+ {
+ throw new ServletException(e);
+ }
+ }
+}
14 years, 8 months