1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.search.backend.smo;
20
21 import org.apache.maven.search.backend.smo.internal.SmoSearchBackendImpl;
22 import org.apache.maven.search.backend.smo.internal.SmoSearchTransportSupplier;
23
24
25
26
27 public class SmoSearchBackendFactory {
28 public static final String DEFAULT_BACKEND_ID = "central-smo";
29
30 public static final String DEFAULT_REPOSITORY_ID = "central";
31
32 public static final String DEFAULT_SMO_URI = "https://search.maven.org/solrsearch/select";
33
34
35
36
37 public SmoSearchBackend createDefault() {
38 return create(
39 DEFAULT_BACKEND_ID, DEFAULT_REPOSITORY_ID, DEFAULT_SMO_URI, new SmoSearchTransportSupplier().get());
40 }
41
42
43
44
45 public SmoSearchBackend create(
46 String backendId, String repositoryId, String smoUri, SmoSearchTransport transportSupport) {
47 return new SmoSearchBackendImpl(backendId, repositoryId, smoUri, transportSupport);
48 }
49 }