Author: heiko.braun(a)jboss.com
Date: 2008-04-07 10:12:17 -0400 (Mon, 07 Apr 2008)
New Revision: 6253
Modified:
spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/HttpSpec.java
Log:
Added servlet spec properties to HttpSpec
Modified: spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/HttpSpec.java
===================================================================
--- spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/HttpSpec.java 2008-04-07
14:11:16 UTC (rev 6252)
+++ spi/branches/hbraun/src/main/java/org/jboss/wsf/spi/transport/HttpSpec.java 2008-04-07
14:12:17 UTC (rev 6253)
@@ -21,14 +21,26 @@
*/
package org.jboss.wsf.spi.transport;
+import java.util.HashMap;
+import java.util.Map;
+
/**
* @author Heiko.Braun <heiko.braun(a)jboss.com>
*/
public class HttpSpec implements TransportSpec
{
+ public static final String PROPERTY_GENERATED_WEBAPP =
"org.jboss.ws.generated.webapp";
+ public static final String PROPERTY_WEBAPP_CONTEXT_PARAMETERS =
"org.jboss.ws.webapp.ContextParameterMap";
+ public static final String PROPERTY_WEBAPP_SERVLET_CLASS =
"org.jboss.ws.webapp.ServletClass";
+ public static final String PROPERTY_WEBAPP_SERVLET_CONTEXT_LISTENER =
"org.jboss.ws.webapp.ServletContextListener";
+ public static final String PROPERTY_WEBAPP_URL = "org.jboss.ws.webapp.url";
+
private String webContext;
private String urlPattern;
+ private String servletClass;
+ private Map<String,String> contextParameter = new
HashMap<String,String>();
+
public HttpSpec(String webContext, String urlPattern)
{
if(!webContext.startsWith("/"))
@@ -52,4 +64,19 @@
{
return urlPattern;
}
+
+ public void setServletClass(String servletClass)
+ {
+ this.servletClass = servletClass;
+ }
+
+ public String getServletClass()
+ {
+ return servletClass;
+ }
+
+ public Map<String, String> getContextParameter()
+ {
+ return contextParameter;
+ }
}
Show replies by date