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/bash | |
STRING=$(echo -n "(request-target): get /signature-prototype-1.0-SNAPSHOT/api/colors/preferred | |
date: Tue, 07 Jun 2014 20:51:35 GMT" | base64) | |
SIGNATURE=$( | |
echo -n "(request-target): get /signature-prototype-1.0-SNAPSHOT/api/colors/preferred | |
date: Tue, 07 Jun 2014 20:51:35 GMT" | openssl dgst -binary -sha256 -hmac "PennyLunaLuka" | base64) |
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
@ApplicationPath("api") | |
public class PerformaApiApplication extends Application { | |
@Override | |
public Set<Class<?>> getClasses() { | |
final ClassLoader loader = this.getClass().getClassLoader(); | |
final Set<Class<?>> services = new HashSet<Class<?>>(); | |
for (String className : readClasses()) { | |
try { | |
final Class<?> clazz = loader.loadClass(className); |
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
package localdomain.localhost; | |
/* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you 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 | |
* |