Skip to content

Instantly share code, notes, and snippets.

View kdelfour's full-sized avatar
😈
Work in progress !!!

Kevin Delfour kdelfour

😈
Work in progress !!!
View GitHub Profile
@kdelfour
kdelfour / ASimpleSOAPClient.java
Created December 23, 2014 15:40
A simple SOAP Client class to send request body to a SOAP Server. Useful when you want to test a SOAP server and you don't want to generate all SOAP client class from the WSDL.
package com.kdstudio.snippets.soap.client;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.MimeHeaders;
@kdelfour
kdelfour / AnSshConnector.java
Last active April 7, 2022 16:47
SSH connector example using JSCH. JSch allows you to connect to an sshd server and use port forwarding, X11 forwarding, file transfer, etc., and you can integrate its functionality into your own Java programs. JSch is licensed under BSD style license.
/**
*
*/
package com.kdstudio.snippets.connector.ssh;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintStream;
@kdelfour
kdelfour / HashCodeEqualsToStringExample.java
Created December 19, 2014 16:18
Lang provides a host of helper utilities for the java.lang API, notably String manipulation methods, basic numerical methods, object reflection, concurrency, creation and serialization and System properties. Additionally it contains basic enhancements to java.util.Date and a series of utilities dedicated to help with building methods, such as ha…
package com.kdstudio.snippets.tips.apache;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Example of using Commons-lang3 utilities.
*