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
var BrowserDetect = { | |
init: function () { | |
this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; | |
this.version = this.searchVersion(navigator.userAgent) | |
|| this.searchVersion(navigator.appVersion) | |
|| "an unknown version"; | |
this.OS = this.searchString(this.dataOS) || "an unknown OS"; | |
}, | |
searchString: function (data) { | |
for (var i=0;i<data.length;i++) { |
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
/** | |
* jQuery AOP - jQuery plugin to add features of aspect-oriented programming (AOP) to jQuery. | |
* http://jquery-aop.googlecode.com/ | |
* | |
* Licensed under the MIT license: | |
* http://www.opensource.org/licenses/mit-license.php | |
* | |
* Version: 1.3 | |
* | |
* Cross-frame type detection based on Daniel Steigerwald's code (http://daniel.steigerwald.cz) |
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 com.integration.rest.service; | |
import javax.ws.rs.Consumes; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.PathParam; | |
import javax.ws.rs.core.MediaType; | |
import org.codehaus.jra.Delete; | |
import org.codehaus.jra.Post; |
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 com.integration.datahandling; | |
import java.io.InputStream; | |
import java.util.List; | |
import com.integration.pojo.FileDTO; | |
/** | |
* | |
* @author Ismael.Santos | |
* |
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 com.integration.datahandling; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.Socket; | |
import java.net.UnknownHostException; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.SocketChannel; | |
import java.util.List; |
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 com.integration.datahandling; | |
import java.io.InputStream; | |
import java.util.List; | |
import com.integration.pojo.FileDTO; | |
public interface IDataHandler { | |
public InputStream getFile(String sharing, String fileId, Integer index, Integer size); |
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 com.integration.pojo; | |
import java.io.Serializable; | |
import java.math.BigInteger; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; |
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 com.integration.rest.client; | |
import java.io.InputStream; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import javax.ws.rs.core.MediaType; | |
import javax.ws.rs.core.UriBuilder; |
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 com.integration.rest.client; | |
import static org.junit.Assert.assertNotNull; | |
import java.util.List; | |
import org.json.JSONException; | |
import org.junit.BeforeClass; | |
import org.junit.Test; |
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 com.integration.rest.service; | |
import org.apache.cxf.jaxrs.JAXRSServerFactoryBean; | |
public class Main { | |
public static void main(String[] args) { | |
JAXRSServerFactoryBean bean = new JAXRSServerFactoryBean(); | |
bean.setServiceClass(RetrieveService.class); |