<commit_before># SeaCat client bridge for Hessian on Android

The small bridge that enables Android developers to use Hessian over SeaCat.

More about SeaCat at [TeskaLabs.com](http://teskalabs.com/).

## The client bridge

The package name is `com.teskalabs.seacat.android.hessian` and it is available in the folder '**/client**'.

Client bridge depends on `flamingo-android-hessian-client-2.2.0.jar` that is also present in the folder '**/client**'.


## The example

...


### FAQ

#### How to launch simple Hessian Server

The folder '**/server**' contains very simple Hello servlet that can be accessed using Hessian client. Deploy this into an Apache TomCat.

Servlet API will be available at:  
`http://[your-server]:8080/HessianHelloServer/HelloServlet`

#### How to add the Hessian client into your Android app

1. Copy `flamingo-android-hessian-client-2.2.0.jar` into `app/lib` folder of our Android application.
2. Use Android Studio 'Project view', go to `app/lib` folder, right-click on `flamingo-android-hessian-client-2.2.0.jar` file and select `Add as Libary ...`
3. Confirm module (app) of your Android project into which the library is to be added.

##### Simple example of the Hessian client usage in the Android app:

```
public class MainActivity extends ActionBarActivity {

    HessianProxyFactory hessianFactory = new HessianProxyFactory();
...

	private void doHessianRequest() throws IOException
	{
		String hessianURL = "http://[your-server]:8080/HessianServer/HelloServlet";

		HelloService hello = (HelloService) hessianFactory.create(HelloService.class, hessianURL);
		
		final String output = hello.sayHelloTo("Android test");
    }

```

<commit_msg>Tuning the code example.<commit_after># SeaCat client bridge for Hessian on Android

The small bridge that enables Android developers to use Hessian over SeaCat.

More about SeaCat at [TeskaLabs.com](http://teskalabs.com/).

## The client bridge

The package name is `com.teskalabs.seacat.android.hessian` and it is available in the folder '**/client**'.

Client bridge depends on `flamingo-android-hessian-client-2.2.0.jar` that is also present in the folder '**/client**'.


## The example

...


### FAQ

#### How to launch simple Hessian Server

The folder '**/server**' contains very simple Hello servlet that can be accessed using Hessian client. Deploy this into an Apache TomCat.

Servlet API will be available at:  
`http://[your-server]:8080/HessianHelloServer/HelloServlet`

#### How to add the Hessian client into your Android app

1. Copy `flamingo-android-hessian-client-2.2.0.jar` into `app/lib` folder of our Android application.
2. Use Android Studio 'Project view', go to `app/lib` folder, right-click on `flamingo-android-hessian-client-2.2.0.jar` file and select `Add as Libary ...`
3. Confirm module (app) of your Android project into which the library is to be added.

##### Simple example of the Hessian client usage in the Android app:

```java
public class MainActivity extends ActionBarActivity {

    HessianProxyFactory hessianFactory = new HessianProxyFactory();
    String hessianURL = "http://[your-server]:8080/HessianServer/HelloServlet";

...

	private void doHessianRequest() throws IOException
	{
		HelloService hello = (HelloService) hessianFactory.create(HelloService.class, hessianURL);
		
		final String output = hello.sayHelloTo("Android test");
    }

```


{'fraction_non_alphanumeric': 0.10677314404022478, 'fraction_numerical': 0.011830819284235433, 'mean_word_length': 4.325984251968504, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3151012', 'n_tokens_mistral': 1051, 'n_tokens_neox': 989, 'n_words': 372}