[LIB-13] Lazy scanners init, scan by URL and rename API functions
[chesshog-scanner.git] / src / main / java / org / hedgecode / chess / scanner / ChessHogScannerConstants.java
1 /*
2  * Copyright (c) 2019-2020. Developed by Hedgecode.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *   http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.hedgecode.chess.scanner;
18
19 import java.nio.charset.Charset;
20 import java.nio.charset.StandardCharsets;
21
22 /**
23  * Store of ChessHogScanner constants.
24  *
25  * @author Dmitry Samoshin aka gotty
26  */
27 public final class ChessHogScannerConstants {
28
29     public static final Charset CHARSET = StandardCharsets.UTF_8;
30
31     public static final String CRLF = System.getProperty("line.separator");
32
33     public static final String TYPE_CHESSGAMES = "chessgames";
34     public static final String TYPE_LICHESS = "lichess";
35     public static final String TYPE_CHESSBOMB = "chessbomb";
36     public static final String TYPE_CHESS24 = "chess24";
37     public static final String TYPE_CHESSCOM = "chesscom";
38
39     public static final String DOMAIN_CHESSGAMES = "chessgames.com";
40     public static final String DOMAIN_LICHESS = "lichess.org";
41     public static final String DOMAIN_CHESSBOMB = "www.chessbomb.com";
42     public static final String DOMAIN_CHESS24 = "chess24.com";
43     public static final String DOMAIN_CHESSCOM = "chess.com";
44
45     public static final String PROXY_UNDEFINED = "undefined";
46     public static final String PROXY_HTTP = "http";
47     public static final String PROXY_SOCKS = "socks";
48
49     private ChessHogScannerConstants() {
50         throw new AssertionError(
51                 String.format("No %s instances!", getClass().getName())
52         );
53     }
54
55 }