File tree Expand file tree Collapse file tree 6 files changed +354
-11
lines changed
main/java/io/github/easybill/xrviz Expand file tree Collapse file tree 6 files changed +354
-11
lines changed Original file line number Diff line number Diff line change 1
- currentVersion =0.1.5
1
+ currentVersion =0.1.6
2
2
mainClassName =io.github.easybill.xrviz.App
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public class XslTransformer {
33
33
public static final String CII_VALIDATION_STRING = "CrossIndustryInvoice" ;
34
34
public static final String UBL_I_VALIDATION_STRING = "Invoice" ;
35
35
public static final String UBL_C_VALIDATION_STRING = "CreditNote" ;
36
- public static final Pattern REGEX = Pattern .compile ("[<:](CrossedustryInvoice |Invoice|CreditNote)" );
36
+ public static final Pattern REGEX = Pattern .compile ("[<:](CrossIndustryInvoice |Invoice|CreditNote)" );
37
37
38
38
enum DocumentType {
39
39
CII ("cii-xr.xsl" ),
Original file line number Diff line number Diff line change 3
3
import com .sun .net .httpserver .HttpExchange ;
4
4
5
5
import java .io .IOException ;
6
+ import java .net .HttpURLConnection ;
6
7
import java .nio .charset .StandardCharsets ;
7
8
import java .util .Optional ;
8
-
9
- import java .net .HttpURLConnection ;
10
9
import java .util .logging .Logger ;
11
10
import java .util .regex .Pattern ;
12
11
13
- import static io .github .easybill .xrviz .XslTransformer .*;
14
-
15
12
public abstract class XmlRequestExtractor {
16
13
static final Logger logger = Logger .getGlobal ();
17
- static final Pattern REGEX = Pattern .compile ("[<:](CrossedustryInvoice |Invoice|CreditNote)" );
14
+ static final Pattern REGEX = Pattern .compile ("[<:](CrossIndustryInvoice |Invoice|CreditNote)" );
18
15
19
16
Optional <String > validate (HttpExchange exchange ) throws IOException {
20
17
if (!exchange .getRequestMethod ().equalsIgnoreCase ("POST" )) {
Original file line number Diff line number Diff line change 3
3
### GET request for status
4
4
GET {{baseUrl }}/health
5
5
6
- ### Generate a HTML file from a XML file
6
+ ### Generate a HTML file from a CrossIndustryInvoice file
7
7
POST {{baseUrl }}/convert.html
8
8
Content-Type: application/xml
9
9
Accept-Language: de
10
10
11
11
< ./EN16931_Einfach.xml
12
12
13
+ ### Generate a HTML file from another CrossIndustryInvoice file
14
+ POST {{baseUrl }}/convert.html
15
+ Content-Type: application/xml
16
+ Accept-Language: de
17
+
18
+ < ./cii-xrechnung.xml
19
+
13
20
### Generate a HTML file from a UBL Invoice file
14
21
POST {{baseUrl }}/convert.html
15
22
Content-Type: application/xml
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments