Package de.pisa.psa.rst.hdl.out
Klasse PsaRstApiEvtHdlOut
java.lang.Object
de.pisa.psa.rst.hdl.PsaRstApiEvtHdl
de.pisa.psa.rst.hdl.out.PsaRstApiEvtHdlOut
- Alle implementierten Schnittstellen:
AutoCloseable
- Bekannte direkte Unterklassen:
PsaRstApiEvtHdlOutDelete
,PsaRstApiEvtHdlOutGet
,PsaRstApiEvtHdlOutPatch
,PsaRstApiEvtHdlOutPost
,PsaRstApiEvtHdlOutPut
REST API: outgoing event handler
- Seit:
- 07.08.2023
- Autor:
- weiland
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen de.pisa.psa.rst.hdl.PsaRstApiEvtHdl
PsaRstApiEvtHdl.EurekaHighlighting
-
Feldübersicht
Von Klasse geerbte Felder de.pisa.psa.rst.hdl.PsaRstApiEvtHdl
Default_External_Language, Default_User, Force_IAM_User, Max_Records
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected void
bufferEntity
(javax.ws.rs.core.Response response) Buffer the response entity.
In case of an exception, the exception is logged.protected javax.ws.rs.client.Entity
<?> get an entityset the key for the IAM propertiesget the request bodyget the request headerget the request pathprotected de.pisa.psc.srv.rst.PscRstCli
newRestClient
(String url) create a new REST clientprotected javax.ws.rs.core.Response
sendDeleteRequest
(de.pisa.psc.srv.rst.PscRstCli client, Object entity, javax.ws.rs.core.MediaType type) send a DELETE requestprotected javax.ws.rs.core.Response
sendGetRequest
(de.pisa.psc.srv.rst.PscRstCli client, Object entity, javax.ws.rs.core.MediaType type) send a GET requestprotected javax.ws.rs.core.Response
sendPatchRequest
(de.pisa.psc.srv.rst.PscRstCli client, Object entity, javax.ws.rs.core.MediaType type) send a PATCH requestprotected javax.ws.rs.core.Response
sendPostRequest
(de.pisa.psc.srv.rst.PscRstCli client, Object entity, javax.ws.rs.core.MediaType type) send a POST requestprotected javax.ws.rs.core.Response
sendPutRequest
(de.pisa.psc.srv.rst.PscRstCli client, Object entity, javax.ws.rs.core.MediaType type) send a PUT requestjavax.ws.rs.core.Response
sendRequest
(Object entity, javax.ws.rs.core.MediaType type) send a REST requestjavax.ws.rs.core.Response
sendRequest
(javax.ws.rs.core.Response data) send a REST requestprotected void
setAuthorization
(de.pisa.psc.srv.rst.PscRstCli client) set the authorization for the REST clientvoid
setBufferResponseEntity
(boolean buffer) Control whether the received response entity should be buffered or notvoid
get the key for the IAM propertiesvoid
setRequest
(de.pisa.psc.srv.rst.PscRstCli client, Object entity) set the request datavoid
setRequestBody
(Object body) set the request bodyvoid
setRequestHeader
(String header) set the request headervoid
setRequestPath
(String path) set the request pathVon Klasse geerbte Methoden de.pisa.psa.rst.hdl.PsaRstApiEvtHdl
addJsonMixin, buildResponse, cloneRecords, close, fetchContact, fetchEureka, fetchEurekaRecords, fetchIAMContact, fetchRecord, fetchRecord, fetchRecords, findEmail, getActiveEventHandler, getContinuation, getData, getEurekaDtoQuery, getEurekaHighlighting, getEurekaQueryField, getExternalCommunicationLanguage, getFetchRecordKeyField, getField, getIAMUser, getJsonIncludeEmpty, getMaxRecords, getMessage, getQuery, getSsn, getSsnUsr, getSysSsn, getValueBuffer, handleEvent, isIAMUser, loadRecord, mapQuery, newDto, newObject, newPsaRstApiObjLis, noEventLogging, queryEureka, queryEurekaRecords, queryRecord, queryRecords, queryRecordsAddSort, queryRecordsSetQuery, setActiveEventHandler, setExternalLanguage, setJsonIncludeEmpty, toJson
-
Konstruktordetails
-
PsaRstApiEvtHdlOut
Constructor- Parameter:
data
- event data
-
-
Methodendetails
-
setBufferResponseEntity
public void setBufferResponseEntity(boolean buffer) Control whether the received response entity should be buffered or not- Parameter:
buffer
- if true it will be buffered (default=false)
-
setRequest
set the request data- Parameter:
client
- REST cliententity
- payload entity
-
setRequestPath
set the request path- Parameter:
path
- path
-
getRequestPath
get the request path- Gibt zurück:
- path
-
setRequestBody
set the request body- Parameter:
body
- body
-
getRequestBody
get the request body- Gibt zurück:
- body
-
setRequestHeader
set the request header- Parameter:
header
- header
-
getRequestHeader
get the request header- Gibt zurück:
- header
-
setIAMKey
get the key for the IAM properties- Parameter:
key
- key
-
getIAMKey
set the key for the IAM properties- Gibt zurück:
- key
-
sendRequest
send a REST request- Parameter:
data
- record data to send- Gibt zurück:
- response of the called end point
- Löst aus:
Exception
-
newRestClient
create a new REST client- Parameter:
url
- target URL- Gibt zurück:
- client
- Löst aus:
URISyntaxException
-
sendRequest
public javax.ws.rs.core.Response sendRequest(Object entity, javax.ws.rs.core.MediaType type) throws Exception send a REST request- Parameter:
entity
- payload entitytype
- media type of the entity- Gibt zurück:
- response of the called end point
- Löst aus:
Exception
-
setAuthorization
set the authorization for the REST client- Parameter:
client
- REST client- Löst aus:
Exception
-
getEntity
get an entity- Parameter:
entity
- entity objecttype
- type of the entity- Gibt zurück:
- entity
-
sendPostRequest
protected javax.ws.rs.core.Response sendPostRequest(de.pisa.psc.srv.rst.PscRstCli client, Object entity, javax.ws.rs.core.MediaType type) throws Exception send a POST request- Parameter:
client
- REST cliententity
- payload entitytype
- media type of the entity- Gibt zurück:
- response of the called end point
- Löst aus:
Exception
-
sendPutRequest
protected javax.ws.rs.core.Response sendPutRequest(de.pisa.psc.srv.rst.PscRstCli client, Object entity, javax.ws.rs.core.MediaType type) throws Exception send a PUT request- Parameter:
client
- REST cliententity
- payload entitytype
- media type of the entity- Gibt zurück:
- response of the called end point
- Löst aus:
Exception
-
sendPatchRequest
protected javax.ws.rs.core.Response sendPatchRequest(de.pisa.psc.srv.rst.PscRstCli client, Object entity, javax.ws.rs.core.MediaType type) throws Exception send a PATCH request- Parameter:
client
- REST cliententity
- payload entitytype
- media type of the entity- Gibt zurück:
- response of the called end point
- Löst aus:
Exception
-
sendGetRequest
protected javax.ws.rs.core.Response sendGetRequest(de.pisa.psc.srv.rst.PscRstCli client, Object entity, javax.ws.rs.core.MediaType type) throws Exception send a GET request- Parameter:
client
- REST cliententity
- payload entitytype
- media type of the entity- Gibt zurück:
- response of the called end point
- Löst aus:
Exception
-
sendDeleteRequest
protected javax.ws.rs.core.Response sendDeleteRequest(de.pisa.psc.srv.rst.PscRstCli client, Object entity, javax.ws.rs.core.MediaType type) throws Exception send a DELETE request- Parameter:
client
- REST cliententity
- payload entitytype
- media type of the entity- Gibt zurück:
- response of the called end point
- Löst aus:
Exception
-
bufferEntity
protected void bufferEntity(javax.ws.rs.core.Response response) Buffer the response entity.
In case of an exception, the exception is logged.- Parameter:
response
- response
-