public interface Transfer
service provider interfaceresponsible for conversion of JSON objects to Java ones and vice-versa. Since introduction of
technology identifiersone can choose between different background implementations to handle the conversion and communication requests. The known providers include
org.netbeans.html:ko4jmodule which registers a native browser implementation called xhr, and a
org.netbeans.html:ko-ws-tyrusmodule which registers Java based implementation named tyrus.
|Modifier and Type||Method and Description|
Starts the JSON or JSONP query.
Reads content of a stream and creates its JSON representation.
obj- the object to inspect
props- the names of properties to check on the object
values- array of the same length as
propsshould be filled by values of properties on the
obj. If a property is not defined, a
nullvalue should be stored in the array
Object toJSON(InputStream is) throws IOException
extractmethod. If the stream contains representation or a JSON array, an Object should be returned - each of its members should, by itself be acceptable argument to the
is- input stream to read data from
IOException- if something goes wrong
void loadJSON(JSONCall call)
call- description of the call to make
Copyright © 2015 NetBeans. All Rights Reserved.