Class ServiceNowClient
- java.lang.Object
-
- org.apache.camel.component.servicenow.ServiceNowClient
-
public final class ServiceNowClient extends Object
-
-
Constructor Summary
Constructors Constructor Description ServiceNowClient(org.apache.camel.CamelContext camelContext, ServiceNowConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceNowClientaccept(String... types)ServiceNowClientaccept(javax.ws.rs.core.MediaType... types)javax.ws.rs.core.Responseinvoke(String httpMethod)javax.ws.rs.core.Responseinvoke(String httpMethod, Object body)ServiceNowClientpath(Object path)ServiceNowClientquery(Class<?> model)ServiceNowClientquery(String name, Object... values)ServiceNowClientquery(ServiceNowParam param, org.apache.camel.Message message)ServiceNowClientqueryF(String name, String format, Object... values)ServiceNowClientreset()<T> Ttrasform(String httpMethod, Object body, Function<javax.ws.rs.core.Response,T> function)<T> Ttrasform(String httpMethod, Function<javax.ws.rs.core.Response,T> function)ServiceNowClienttype(String type)ServiceNowClienttype(javax.ws.rs.core.MediaType ct)ServiceNowClienttypes(javax.ws.rs.core.MediaType type)ServiceNowClienttypes(javax.ws.rs.core.MediaType accept, javax.ws.rs.core.MediaType type)
-
-
-
Constructor Detail
-
ServiceNowClient
public ServiceNowClient(org.apache.camel.CamelContext camelContext, ServiceNowConfiguration configuration)
-
-
Method Detail
-
types
public ServiceNowClient types(javax.ws.rs.core.MediaType type)
-
types
public ServiceNowClient types(javax.ws.rs.core.MediaType accept, javax.ws.rs.core.MediaType type)
-
path
public ServiceNowClient path(Object path)
-
type
public ServiceNowClient type(javax.ws.rs.core.MediaType ct)
-
type
public ServiceNowClient type(String type)
-
accept
public ServiceNowClient accept(javax.ws.rs.core.MediaType... types)
-
accept
public ServiceNowClient accept(String... types)
-
query
public ServiceNowClient query(String name, Object... values)
-
queryF
public ServiceNowClient queryF(String name, String format, Object... values)
-
query
public ServiceNowClient query(ServiceNowParam param, org.apache.camel.Message message)
-
query
public ServiceNowClient query(Class<?> model)
-
invoke
public javax.ws.rs.core.Response invoke(String httpMethod) throws Exception
- Throws:
Exception
-
invoke
public javax.ws.rs.core.Response invoke(String httpMethod, Object body) throws Exception
- Throws:
Exception
-
trasform
public <T> T trasform(String httpMethod, Function<javax.ws.rs.core.Response,T> function) throws Exception
- Throws:
Exception
-
trasform
public <T> T trasform(String httpMethod, Object body, Function<javax.ws.rs.core.Response,T> function) throws Exception
- Throws:
Exception
-
reset
public ServiceNowClient reset()
-
-