This file contains hidden or 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
<nitf:NITF xmlns:nitf="urn:nitf:2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<InvalidData> | |
4E49544630322E3130303342463031695F33303031612020203139393731323137313032363330436865636B7320616E20756E636F6D7072657373 | |
656420313032347831303234203820626974206D6F6E6F20696D61676520776974682047454F63656E7472696320646174612E204169726669656C | |
6455202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020 | |
2020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020 | |
2020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020303030303030303030 | |
3030EF... | |
</InvalidData> | |
</nitf:NITF> |
This file contains hidden or 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 CrmVisitor implements AfterVisitor { | |
private static final Logger LOGGER = LoggerFactory.getLogger(CrmVisitor.class); | |
private AsyncHttpClient asyncHttpClient; | |
@PostConstruct |
This file contains hidden or 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
... | |
import org.milyn.SmooksException; | |
import org.milyn.container.ExecutionContext; | |
import org.milyn.delivery.dom.DOMElementVisitor; | |
import org.milyn.delivery.sax.SAXElement; | |
import org.milyn.delivery.sax.SAXElementVisitor; | |
import org.milyn.delivery.sax.SAXText; | |
import org.w3c.dom.Element; | |
public class MyDomAndSaxVisitor implements SAXElementVisitor, DOMElementVisitor { |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" xmlns:ibmEdiFmt="http://www.ibm.com/dfdl/EDI/Format"> | |
<xsd:import namespace="http://www.ibm.com/dfdl/EDI/Format" | |
schemaLocation="/EDIFACT-Common/IBM_EDI_Format.dfdl.xsd"/> | |
<xsd:annotation> | |
<xsd:appinfo source="http://www.ogf.org/dfdl/"> | |
<dfdl:format ref="ibmEdiFmt:EDIFormat"/> |
This file contains hidden or 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
UNA:+.?*'UNB+UNOC:4+5790000274017:14+5708601000836:14+990420:1137+17++INVOIC++++1' | |
UNH+30+INVOIC:D:03B:UN' | |
BGM+380+539602' | |
DTM+137:19990420:102' | |
RFF+CO:01671727' | |
NAD+BY+5708601000836::9' | |
RFF+VA:UK37499919' | |
NAD+SU++IBM UK' | |
RFF+VA:UK19430839' | |
RFF+ADE:00000767' |
This file contains hidden or 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 * FROM | |
(SELECT *, DENSE_RANK() OVER (ORDER BY name, id) count FROM | |
(SELECT *, DENSE_RANK() OVER (ORDER BY name, id) offset_ FROM | |
(SELECT a.id, a.name, b.title | |
FROM AUTHOR a, BOOK b | |
WHERE a.id = b.authorId) result) result_offset | |
WHERE offset_ > 0) result_offset_count | |
WHERE count <= 2 |
This file contains hidden or 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
CREATE TABLE PERSON ( | |
id bigserial primary key, | |
first_name varchar(255) not null, | |
last_name varchar(255) not null | |
); |
This file contains hidden or 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
import org.jose4j.jwk.RsaJsonWebKey; | |
import org.jose4j.jwk.RsaJwkGenerator; | |
... | |
private void registerPublicKey() throws Exception { | |
TokenServiceContext context = TokenServiceContext.getInstance(); | |
RsaJsonWebKey rsaJsonWebKey = RsaJwkGenerator.generateJwk(2048); | |
rsaJsonWebKey.setKeyId(context.getNodeId()); | |
ConfigurationDataMapper.insertConfiguration(context.getNodeId(), "PUBLIC_KEY", rsaJsonWebKey.toJson()); | |
context.setKey(rsaJsonWebKey); |
This file contains hidden or 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
#%RAML 0.8 | |
title: Secure API | |
version: v1 | |
baseUri: https://opensourcesoftwareandme.blogspot.com/api | |
securedBy: [apiKey] | |
securitySchemes: | |
- apiKey: | |
type: x-custom | |
description: Authentication by API key |
This file contains hidden or 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
Rule highValueOrderRule = new Rule(); | |
Condition highValueOrderCondition = new Condition(); | |
highValueOrderCondition.setField("price"); | |
highValueOrderCondition.setOperator(Condition.Operator.GREATER_THAN); | |
highValueOrderCondition.setValue(5000.0); | |
// In reality, you would have multiple rules for different types of events. | |
// The eventType property would be used to find rules relevant to the event | |
highValueOrderRule.setEventType(Rule.eventType.ORDER); |
NewerOlder