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
diff --git a/enunciate.xml b/enunciate.xml | |
index 070bc89..db20f66 100644 | |
--- a/enunciate.xml | |
+++ b/enunciate.xml | |
@@ -21,6 +21,8 @@ | |
<convert from="com.ifyouwannabecool" to="com.ifyouwannabecool.client"/> | |
</package-conversions> | |
</java-xml-client> | |
+ <jackson disabled="true"/> | |
+ <jackson1 disabled="true"/> |
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 org.familysearch.api.client; | |
import org.gedcomx.rs.client.PersonState; | |
/** | |
* @author Ryan Heaton | |
*/ | |
public class Main { | |
public static void main(String[] args) { |
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 org.codehaus.enunciate.domain.login; | |
import javax.xml.bind.JAXBContext; | |
import javax.xml.bind.annotation.XmlRootElement; | |
import java.io.StringReader; | |
/** | |
* @author Ryan Heaton | |
*/ | |
@XmlRootElement |
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
/** | |
* | |
* | |
* Generated by <a href="http://enunciate.codehaus.org">Enunciate</a>. | |
*/ | |
#import <libxml/xmlwriter.h> | |
#import <libxml/xmlreader.h> | |
#import <Foundation/Foundation.h> | |
#ifndef DEBUG_ENUNCIATE |
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
/** | |
* Copyright 2011-2012 Intellectual Reserve, Inc. | |
* | |
* 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 |
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
# nvidia-xconfig: X configuration file generated by nvidia-xconfig | |
# nvidia-xconfig: version 285.05.09 ([email protected]) Fri Sep 23 17:55:57 PDT 2011 | |
Section "ServerLayout" | |
Identifier "Layout0" | |
Screen 0 "Screen0" | |
InputDevice "Keyboard0" "CoreKeyboard" | |
InputDevice "Mouse0" "CorePointer" | |
EndSection |
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
@Path("/path/to/my/changes") | |
public class ChangeHistoryResource { | |
public static final String START_DEFAULT = "0"; | |
public static final String COUNT_DEFAULT = "100"; | |
... | |
public ChangeListOrWhateverItsCalled getChangeList(@QueryParam("start") @DefaultValue(START_DEFAULT) String start, | |
@QueryParam("count") @DefaultValue(COUNT_DEFAULT) Integer count) { |
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
KeyStore ks = KeyStore.getInstance("JKS"); | |
char[] password = "mypassword".toCharArray(); | |
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("mykeystore.jks"); | |
ks.load(is, password); | |
is.close(); | |
PrivateKey privateKey = (PrivateKey)ks.getKey("mykey", password); | |
// Create the secret with the private key | |
Security.addProvider(new BouncyCastleProvider()); | |
long timestamp = System.currentTimeMillis(); |
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 User { | |
private Date dtBirth; | |
@JsonIgnore | |
public Date getDtBirth() { return dtBirth; } | |
@JsonIgnore | |
public void setDtBirth(Date dtBirth) { this.dtBirth = dtBirth; } |
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 javax.activation.DataHandler; | |
import javax.activation.DataSource; | |
import javax.ws.rs.Consumes; | |
import javax.ws.rs.WebApplicationException; | |
import javax.ws.rs.core.MediaType; | |
import javax.ws.rs.core.MultivaluedMap; | |
import javax.ws.rs.ext.MessageBodyReader; | |
import javax.ws.rs.ext.Provider; | |
import java.io.IOException; |