Skip to content

Instantly share code, notes, and snippets.

View bclozel's full-sized avatar

Brian Clozel bclozel

View GitHub Profile
@bclozel
bclozel / UriTemplateCollectionExamples.java
Created December 23, 2013 12:30
Comparing what RFC6570 based and "simple" URI template implementations can do.
/*
* RFC6570
*/
Map<String, Object> values = new HashMap<String, Object>();
values.put("count", Arrays.asList("one","two","three"));
UriComponentsBuilder.fromPath("{/count*}")
.buildAndExpand(values).encode().toUriString(); // "/one/two/three"
@bclozel
bclozel / websocket-config-broker-customchannels.xml
Last active August 29, 2019 00:58
xml configuration for websocket / sockjs SPR-11063
<!--
~ Copyright 2002-2013 the original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
@bclozel
bclozel / resthub-2-0.md
Created October 31, 2012 16:54
RESThub 2.0 released

RESThub 2.0 released

We are pleased to announce the second major release of the RESThub framework!

(Insert picture here)

RESThub is a framework stack based on Spring and Backbone.js, designed to build HTML5 applications easily and efficiently. RESThub focuses on modular web applications, made of stateless REST/Websockets web services and client-side state managed by MVVM JavaScript clients.

<html>
<head></head>
<body>
<script>
/* commented the whole thing
var el1 = document.createElement('iframe');
var el2 = document.createElement('iframe');
el1.style.visibility="hidden";
el2.style.visibility="hidden";
el1.src = "http://twitter.com/share/update?status=WTF:%20" + window.location;