Author: heiko.braun(a)jboss.com
Date: 2008-06-04 09:07:52 -0400 (Wed, 04 Jun 2008)
New Revision: 7336
Added:
spi/trunk/src/main/java/org/jboss/wsf/spi/transport/HttpListenerRef.java
Modified:
spi/trunk/spi.iml
Log:
JBWS-2202: Container integration has a dpendency on framework
Modified: spi/trunk/spi.iml
===================================================================
--- spi/trunk/spi.iml 2008-06-04 13:05:13 UTC (rev 7335)
+++ spi/trunk/spi.iml 2008-06-04 13:07:52 UTC (rev 7336)
@@ -166,6 +166,33 @@
<SOURCES />
</library>
</orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep:
javax.annotation:jsr250-api:jar:1.0:provided">
+ <CLASSES>
+ <root
url="jar://$MODULE_DIR$/../../../../../.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar!/"
/>
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep: javax.xml.soap:saaj-api:jar:1.3:provided">
+ <CLASSES>
+ <root
url="jar://$MODULE_DIR$/../../../../../.m2/repository/javax/xml/soap/saaj-api/1.3/saaj-api-1.3.jar!/"
/>
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep: javax.jws:jsr181-api:jar:1.0-MR1:provided">
+ <CLASSES>
+ <root
url="jar://$MODULE_DIR$/../../../../../.m2/repository/javax/jws/jsr181-api/1.0-MR1/jsr181-api-1.0-MR1.jar!/"
/>
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
<orderEntryProperties />
</component>
</module>
Added: spi/trunk/src/main/java/org/jboss/wsf/spi/transport/HttpListenerRef.java
===================================================================
--- spi/trunk/src/main/java/org/jboss/wsf/spi/transport/HttpListenerRef.java
(rev 0)
+++ spi/trunk/src/main/java/org/jboss/wsf/spi/transport/HttpListenerRef.java 2008-06-04
13:07:52 UTC (rev 7336)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.spi.transport;
+
+import java.net.URI;
+
+/**
+ * @author Heiko.Braun <heiko.braun(a)jboss.com>
+ */
+public class HttpListenerRef implements ListenerRef
+{
+ private String webContext;
+ private String urlPattern;
+ private URI address;
+
+ public HttpListenerRef(String webContext, String urlPattern, URI address)
+ {
+ if(!webContext.startsWith("/"))
+ webContext = "/"+webContext;
+
+ if(!urlPattern.startsWith("/"))
+ urlPattern = "/"+urlPattern;
+
+ this.webContext = webContext;
+ this.urlPattern = urlPattern;
+ this.address = address;
+ }
+
+ public Protocol getProtocol()
+ {
+ return Protocol.HTTP;
+ }
+
+ public URI getAddress()
+ {
+ return address;
+ }
+
+ public String getUUID()
+ {
+ return this.webContext+this.urlPattern;
+ }
+
+
+ public String toString()
+ {
+ return getAddress().toString();
+ }
+}
Property changes on:
spi/trunk/src/main/java/org/jboss/wsf/spi/transport/HttpListenerRef.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF