This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2013 Syntea software group a.s. | |
* | |
* This file may be used, copied, modified and distributed only in accordance | |
* with the terms of the limited licence contained in the accompanying | |
* file LICENSE.TXT. | |
* | |
* Tento soubor muze byt pouzit, kopirovan, modifikovan a siren pouze v souladu | |
* s licencnimi podminkami uvedenymi v prilozenem souboru LICENSE.TXT. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cz.syntea.common.apmsvr.jtalk2ad; | |
import java.util.ArrayList; | |
import java.util.Enumeration; | |
import java.util.Hashtable; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
import javax.naming.Context; | |
import javax.naming.NamingEnumeration; | |
import javax.naming.NamingException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# sudo apt-get install libnss3-tools | |
# To trust a root CA certificate for issuing SSL server certificates, use | |
certutil -d sql:$HOME/.pki/nssdb -A -t "C,," -n isdn.syntea.cz -i isdn.syntea.cz.pem | |
# To import an intermediate CA certificate, use | |
certutil -d sql:$HOME/.pki/nssdb -A -t ",," -n isdn.syntea.cz -i isdn.syntea.cz.pem | |
# To trust a self-signed server certificate, we should use |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Authenticator myAuth = new Authenticator(){ | |
@Override | |
protected PasswordAuthentication getPasswordAuthentication(){ | |
return new PasswordAuthentication("jmeno", "heslo".toCharArray()); | |
} | |
}; | |
Authenticator.setDefault(myAuth); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT verze.IDVERZE, | |
zosoba.zranena | |
FROM DN.DN_VERZE verze | |
LEFT JOIN DN.DN_DN dn ON verze.IDDN = dn.IDDN | |
LEFT JOIN cc.cc_ndnZaznamPlatSchval dnPlat ON dn.idNdnZaznamPlatSchval = dnPlat.idNdnZaznamPlatSchval | |
LEFT JOIN cc.cc_ndnKvalUdalost dnUdalost ON verze.idNdnKvalUdalost = dnUdalost.idNdnKvalUdalost | |
FULL JOIN OR.OR_VERZEEXPORTDAVKA verzeExportDavka ON verze.IDVERZE = verzeExportDavka.IDVERZE | |
LEFT JOIN ( | |
SELECT | |
osoba.idVerze, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT verze.IDVERZE, | |
zosoba.zranena | |
FROM DN.DN_VERZE verze | |
LEFT JOIN DN.DN_DN dn ON verze.IDDN = dn.IDDN | |
LEFT JOIN cc.cc_ndnZaznamPlatSchval dnPlat ON dn.idNdnZaznamPlatSchval = dnPlat.idNdnZaznamPlatSchval | |
LEFT JOIN cc.cc_ndnKvalUdalost dnUdalost ON verze.idNdnKvalUdalost = dnUdalost.idNdnKvalUdalost | |
LEFT JOIN ( | |
SELECT | |
osoba.idVerze, | |
--osoba |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cz.syntea.dn.web2.server; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package xmldiff; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import javax.xml.parsers.DocumentBuilder; | |
import javax.xml.parsers.DocumentBuilderFactory; | |
import javax.xml.parsers.ParserConfigurationException; | |
import javax.xml.xpath.XPath; | |
import javax.xml.xpath.XPathConstants; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ExceptionUtils { | |
public static void throwUncheckedException(Throwable t) { | |
ExceptionUtils.<RuntimeException>throwWithTypeErasure(t); | |
} | |
@SuppressWarnings("unchecked") | |
private static <T extends Throwable> void throwWithTypeErasure(Throwable t) throws T { | |
throw (T) t; | |
} |
OlderNewer