public abstract class JsonService extends Object implements Service
Service
that encodes requests and responses as JSON.Service.CatalogsRequest, Service.CreateStatementRequest, Service.CreateStatementResponse, Service.Factory, Service.PrepareAndExecuteRequest, Service.PrepareRequest, Service.PrepareResponse, Service.Request, Service.Response, Service.ResultSetResponse, Service.SchemasRequest| Modifier and Type | Field and Description |
|---|---|
protected static com.fasterxml.jackson.databind.ObjectMapper |
MAPPER |
| Constructor and Description |
|---|
JsonService() |
| Modifier and Type | Method and Description |
|---|---|
Service.ResultSetResponse |
apply(Service.CatalogsRequest request) |
Service.CreateStatementResponse |
apply(Service.CreateStatementRequest request) |
Service.ResultSetResponse |
apply(Service.PrepareAndExecuteRequest request) |
Service.PrepareResponse |
apply(Service.PrepareRequest request) |
Service.ResultSetResponse |
apply(Service.SchemasRequest request) |
abstract String |
apply(String request)
Derived class should implement this method to transport requests and
responses to and from the peer service.
|
protected RuntimeException |
handle(IOException e) |
public abstract String apply(String request)
protected RuntimeException handle(IOException e)
public Service.ResultSetResponse apply(Service.CatalogsRequest request)
public Service.ResultSetResponse apply(Service.SchemasRequest request)
public Service.PrepareResponse apply(Service.PrepareRequest request)
public Service.ResultSetResponse apply(Service.PrepareAndExecuteRequest request)
public Service.CreateStatementResponse apply(Service.CreateStatementRequest request)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.