1
2
3
4
5
6
7 package org.mule.transport.file;
8
9 import org.mule.api.endpoint.MalformedEndpointException;
10 import org.mule.endpoint.AbstractEndpointURIBuilder;
11
12 import java.net.URI;
13 import java.util.Properties;
14
15
16
17
18
19
20
21 public class FileEndpointURIBuilder extends AbstractEndpointURIBuilder
22 {
23 @Override
24 protected void setEndpoint(URI uri, Properties props) throws MalformedEndpointException
25 {
26 address = uri.getSchemeSpecificPart();
27 if (address.startsWith("//"))
28 {
29 address = address.substring(2);
30 }
31
32 int i = address.indexOf("?");
33 if (i > -1)
34 {
35 address = address.substring(0, i);
36 }
37 }
38 }