Author: richard.opalka(a)jboss.com
Date: 2008-05-16 19:34:05 -0400 (Fri, 16 May 2008)
New Revision: 7083
Modified:
container/jboss50/branches/jbossws-jboss500/src/main/java/org/jboss/wsf/container/jboss50/transport/EJBHttpTransportManager.java
container/jboss50/branches/jbossws-jboss500/src/main/java/org/jboss/wsf/container/jboss50/transport/EndpointAPIHttpTransportManager.java
Log:
final optimization - java code completely backported ;)
Modified:
container/jboss50/branches/jbossws-jboss500/src/main/java/org/jboss/wsf/container/jboss50/transport/EJBHttpTransportManager.java
===================================================================
---
container/jboss50/branches/jbossws-jboss500/src/main/java/org/jboss/wsf/container/jboss50/transport/EJBHttpTransportManager.java 2008-05-16
23:30:27 UTC (rev 7082)
+++
container/jboss50/branches/jbossws-jboss500/src/main/java/org/jboss/wsf/container/jboss50/transport/EJBHttpTransportManager.java 2008-05-16
23:34:05 UTC (rev 7083)
@@ -52,12 +52,13 @@
public ListenerRef createListener(Endpoint endpoint, TransportSpec transportSpec)
{
- assert deploymentFactory!=null;
- assert generator!=null;
+ assert deploymentFactory != null;
+ assert generator != null;
// Resolve the endpoint address
if(! (transportSpec instanceof HttpSpec))
throw new IllegalArgumentException("Unknown TransportSpec " +
transportSpec);
+
HttpSpec httpSpec = (HttpSpec)transportSpec;
// Create JBossWebMetaData and attach it to the DeploymentUnit
Modified:
container/jboss50/branches/jbossws-jboss500/src/main/java/org/jboss/wsf/container/jboss50/transport/EndpointAPIHttpTransportManager.java
===================================================================
---
container/jboss50/branches/jbossws-jboss500/src/main/java/org/jboss/wsf/container/jboss50/transport/EndpointAPIHttpTransportManager.java 2008-05-16
23:30:27 UTC (rev 7082)
+++
container/jboss50/branches/jbossws-jboss500/src/main/java/org/jboss/wsf/container/jboss50/transport/EndpointAPIHttpTransportManager.java 2008-05-16
23:34:05 UTC (rev 7083)
@@ -21,7 +21,6 @@
*/
package org.jboss.wsf.container.jboss50.transport;
-import org.jboss.logging.Logger;
import org.jboss.wsf.framework.transport.HttpListenerRef;
import org.jboss.wsf.spi.SPIProvider;
import org.jboss.wsf.spi.SPIProviderResolver;
@@ -44,10 +43,7 @@
*/
public class EndpointAPIHttpTransportManager implements TransportManager
{
- private static Logger log = Logger.getLogger(EndpointAPIHttpTransportManager.class);
-
private WebAppGenerator generator;
-
private Map<String, Deployment> deploymentRegistry = new HashMap<String,
Deployment>();
public ListenerRef createListener(Endpoint endpoint, TransportSpec transportSpec)
@@ -77,7 +73,6 @@
String ctx = httpSpec.getWebContext();
String pattern = httpSpec.getUrlPattern();
listenerRef = new HttpListenerRef( ctx, pattern, new
URI("http://"+hostAndPort+ctx+pattern) );
-
}
catch (URISyntaxException e)
{
@@ -103,5 +98,4 @@
{
this.generator = generator;
}
-
}
Show replies by date