package com.voxeo.moho.voicexml;

import java.net.MalformedURLException;

import com.voxeo.moho.Endpoint;
import com.voxeo.moho.spi.SpiFramework;
import com.voxeo.moho.spi.VoiceXMLDriver;

public class VoiceXMLDriverImpl implements VoiceXMLDriver {
  protected static final String[] SCHEMAS = new String[]{"file", "http", "https"};
  protected SpiFramework _framework;
  
  void init(SpiFramework framework) {
    _framework = framework;
  }
  
  @Override
  public String getProtocolFamily() {
    return "vxml";
  }

  @Override
  public String[] getEndpointSchemas() {
    return SCHEMAS;
  }

  @Override
  public SpiFramework getFramework() {
    return _framework;
  }

  @Override
  public Endpoint createEndpoint(String addr) {
    try {
      return new VoiceXMLEndpointImpl(_framework.getExecutionContext(), addr);
    }
    catch(MalformedURLException e) {
      throw new IllegalArgumentException(e);
    }
  }

}

@@ -322,16 +322,31 @@
  %22https%22
+, %22ftp%22, %22ftps%22
 %7D;%0A  pro
@@ -382,16 +382,23 @@
 k;%0A  %0A  
+public 
 void ini
@@ -525,14 +525,21 @@
 urn 
-%22vxml%22
+PROTOCOL_VXML
 ;%0A  
@@ -946,10 +946,53 @@
  %7D%0A  %7D%0A%0A
+  @Override%0A  public void destroy() %7B%0A  %7D%0A%0A
 %7D%0A

fix the vxml driver schema to include ftp