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 ServiceNowClient
accept(String... types)
ServiceNowClient
accept(javax.ws.rs.core.MediaType... types)
javax.ws.rs.core.Response
invoke(String httpMethod)
javax.ws.rs.core.Response
invoke(String httpMethod, Object body)
ServiceNowClient
path(Object path)
ServiceNowClient
query(Class<?> model)
ServiceNowClient
query(String name, Object... values)
ServiceNowClient
query(ServiceNowParam param, org.apache.camel.Message message)
ServiceNowClient
queryF(String name, String format, Object... values)
ServiceNowClient
reset()
<T> T
trasform(String httpMethod, Object body, Function<javax.ws.rs.core.Response,T> function)
<T> T
trasform(String httpMethod, Function<javax.ws.rs.core.Response,T> function)
ServiceNowClient
type(String type)
ServiceNowClient
type(javax.ws.rs.core.MediaType ct)
ServiceNowClient
types(javax.ws.rs.core.MediaType type)
ServiceNowClient
types(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()
-
-