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
{ | |
"name": "LogSink", | |
"comment": "Console-based sink for logging information.", | |
"type": "ConsoleLogSink", | |
"config": { | |
"level": "DEBUG" | |
} | |
} |
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
{ | |
"heap": { | |
"objects": [ | |
{ | |
"name": "CapturingChain", | |
"type": "Chain", | |
"config": { | |
"filters": [ "Capture" ], | |
"handler": "Forwarder" | |
} |
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
--- REQUEST 0 ---> | |
GET http://localhost:80/resources/sample.json HTTP/1.1 | |
Authorization: Bearer c9063abd-b1e9-4de4-a21a-06efa75f76b8 | |
Cache-Control: no-cache | |
Accept: */* | |
Connection: keep-alive | |
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.101 Safari/537.36 | |
Host: localhost:8080 | |
Accept-Encoding: gzip,deflate,sdch |
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 groovy.json.JsonOutput | |
println "SESSION BEFORE" | |
println JsonOutput.prettyPrint(JsonOutput.toJson(exchange.session)) | |
next.handle(exchange) | |
println "SESSION AFTER" | |
println JsonOutput.prettyPrint(JsonOutput.toJson(exchange.session)) |
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
{ | |
"heap": { | |
"objects": [ | |
{ | |
"name": "LogSink", | |
"comment": "Default sink for logging information.", | |
"type": "ConsoleLogSink", | |
"config": { | |
"level": "DEBUG" | |
} |
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
{ | |
"heap": { | |
"objects": [ | |
{ | |
"name": "HelloWorldChain", | |
"type": "Chain", | |
"comment": "Intercept the exchange processing", | |
"config": { | |
"filters": [ "AddHelloHeader" ], | |
"handler": "HelloWorld" |
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
{ | |
"heap": { | |
"objects": [ | |
{ | |
"name": "Hello", | |
"type": "StaticResponseHandler", | |
"config": { | |
"status": 200, | |
"entity": "<html><body><h1>Hello World</h1></body></html>" | |
} |
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
guillaume@shelbie$ shelbie:help | |
gogo (16) | |
format | |
getopt | |
new | |
set | |
tac | |
type | |
if | |
not |
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
"[iPOJO] pool-1-thread-3" daemon prio=5 tid=7fb5561c6000 nid=0x1169a9000 in Object.wait() [1169a8000] | |
java.lang.Thread.State: WAITING (on object monitor) | |
at java.lang.Object.wait(Native Method) | |
- waiting on <7f45193a0> (a [Ljava.lang.Object;) | |
at java.lang.Object.wait(Object.java:485) | |
at org.apache.felix.framework.Felix.acquireBundleLock(Felix.java:4481) | |
- locked <7f45193a0> (a [Ljava.lang.Object;) | |
at org.apache.felix.framework.Felix.registerService(Felix.java:2676) | |
at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:252) | |
at org.apache.felix.ipojo.IPojoContext.registerService(IPojoContext.java:385) |
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
#! /bin/sh | |
wget http://gitorious.ow2.org/ow2-utilities.xml | |
option=$1 | |
for tag in clone_url; do | |
repositories=`grep $tag ow2-utilities.xml \ | |
| tr -d [\ ] \ | |
| sed 's/^<.*>\([^<].*\)<.*>$/\1/'` |