Skip to content

ServiceStack/ServiceStack.Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Follow @ServiceStack or join the Google+ Community for updates, or StackOverflow or the Customer Forums for support.

ServiceStack.Java

This repository contains the source for ServiceStack plugins for the leading Android Studio, IntelliJ and Eclipse Java IDE's providing Java developers a highly productive development experience for consuming Typed ServiceStack Services by leveraging Add ServiceStack Reference directly within their IDE!

v1.1.5 Changes

  • Rename FileUpload to UploadFile to match other ServiceStack libraries

v1.1.4 Changes

Added new ServiceClient APIs:

<T> T postFileWithRequest(IReturn<T> request, FileUpload file);
<T> T postFileWithRequest(Object request, FileUpload file, Object responseType);
<T> T postFileWithRequest(String path, Object request, FileUpload file, Object responseType);

<T> T postFilesWithRequest(IReturn<T> request, FileUpload[] files);
<T> T postFilesWithRequest(Object request, FileUpload[] files, Object responseType);
<T> T postFilesWithRequest(String path, Object request, FileUpload[] files, Object responseType);

Added new AsyncServiceClient APIs:

<T> void postFileWithRequestAsync(IReturn<T> request, FileUpload file, final AsyncResult<T> asyncResult);
<T> void postFileWithRequestAsync(Object request, FileUpload file, Object responseType, final AsyncResult<T> asyncResult);
<T> void postFileWithRequestAsync(String path, Object request, FileUpload file, Object responseType, final AsyncResult<T> asyncResult);

<T> void postFilesWithRequestAsync(IReturn<T> request, FileUpload[] files, final AsyncResult<T> asyncResult);
<T> void postFilesWithRequestAsync(Object request, FileUpload[] files, Object responseType, final AsyncResult<T> asyncResult);
<T> void postFilesWithRequestAsync(String path, Object request, FileUpload[] files, Object responseType, final AsyncResult<T> asyncResult);

v1.1.0 Changes

Switched to use /api pre-defined route by default, revert to legacy /json/reply pre-defined route with:

const client = new JsonServiceClient(baseUrl);
client.setBasePath();

Install

Issues

Please submit issues to https://github.com/ServiceStack/Issues

Usage

For information on the different code-generation configuration options available and examples of using the JsonServiceClient refer to the Java ServiceStack Reference Documentation.

For information on using the generic Java JSON Service Client Typed API's see the JsonServiceClient Documentation or jump to the interested sections directly:

Contains information on how Java Add ServiceStack Reference ensures a high-fidelity, idiomatic translation within the constraints of Java language and its built-in libraries, where .NET Server DTO's are translated into clean, conventional Java POJO's where .NET built-in Value Types mapped to their equivalent Java data Type. Use the links below to jump directly to the sections you're interested in:

To demonstrate Java Native Types in action we've ported the Swift TechStacks iOS App to a native Java Android App to showcase the responsiveness and easy-of-use of leveraging Java Add ServiceStack Reference in Android Projects.

Checkout the TechStacks Android App repository for a nice overview of how it leverages Java Native Types, Functional Java Utils and iOS-inspired Data Binding to easily develop services-heavy Mobile Apps.