public class ESRegistryMarshalling extends Object
| Constructor and Description |
|---|
ESRegistryMarshalling() |
| Modifier and Type | Method and Description |
|---|---|
static org.elasticsearch.common.xcontent.XContentBuilder |
marshall(io.apiman.gateway.engine.beans.Application bean)
Marshals the given bean into the given map.
|
static org.elasticsearch.common.xcontent.XContentBuilder |
marshall(io.apiman.gateway.engine.beans.Service bean)
Marshals the given bean into the given map.
|
static org.elasticsearch.common.xcontent.XContentBuilder |
marshall(io.apiman.gateway.engine.beans.ServiceContract bean)
Marshals the given bean into the given map.
|
protected static void |
marshallInto(io.apiman.gateway.engine.beans.Service bean,
org.elasticsearch.common.xcontent.XContentBuilder builder) |
static io.apiman.gateway.engine.beans.Application |
unmarshallApplication(Map<String,Object> source)
Unmarshals the given map source into a bean.
|
static io.apiman.gateway.engine.beans.Service |
unmarshallService(Map<String,Object> source)
Unmarshals the given map source into a bean.
|
static io.apiman.gateway.engine.beans.ServiceContract |
unmarshallServiceContract(Map<String,Object> source)
Unmarshals the given map source into a bean.
|
public static org.elasticsearch.common.xcontent.XContentBuilder marshall(io.apiman.gateway.engine.beans.Service bean)
throws Exception
bean - the service beanException - when json marshalling failsprotected static void marshallInto(io.apiman.gateway.engine.beans.Service bean,
org.elasticsearch.common.xcontent.XContentBuilder builder)
throws IOException
bean - builder - IOExceptionpublic static io.apiman.gateway.engine.beans.Service unmarshallService(Map<String,Object> source)
source - the source mappingspublic static org.elasticsearch.common.xcontent.XContentBuilder marshall(io.apiman.gateway.engine.beans.Application bean)
throws Exception
bean - the application beanException - when json marshalling failspublic static io.apiman.gateway.engine.beans.Application unmarshallApplication(Map<String,Object> source)
source - the source mappingspublic static org.elasticsearch.common.xcontent.XContentBuilder marshall(io.apiman.gateway.engine.beans.ServiceContract bean)
throws Exception
bean - the service contractException - when json marshalling failsCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.