java.lang.Object
org.cruk.clarity.api.debugging.RestClientSnoopingAspect
Aspect used to examine calls from the REST template to the
Clarity API. If logging is set to DEBUG, this class will print the
information being sent to the API and the response received.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionJoin point for the rest template'sexchange
operations.Join point for the rest template'sexchange
operations.Join point for the rest template'sget
operations.Join point for the rest template'sput
andpost
operations.void
setMarshaller
(JaxbMarshallingTool marshaller) Set the tool to convert an object back into XML for printing.
-
Constructor Details
-
RestClientSnoopingAspect
public RestClientSnoopingAspect()
-
-
Method Details
-
setMarshaller
@Autowired @Qualifier("clarityMarshallingTool") public void setMarshaller(JaxbMarshallingTool marshaller) Set the tool to convert an object back into XML for printing.- Parameters:
marshaller
- The marshalling tool.
-
checkGet
Join point for the rest template'sget
operations. Logs the URI being fetched and the reply received.- Parameters:
pjp
- The AspectJ join point object.- Returns:
- The reply object.
- Throws:
Throwable
- if there is any failure from the operation. This is also logged if logging is set to DEBUG.- See Also:
-
checkPutOrPost
Join point for the rest template'sput
andpost
operations. Logs the XML being sent and the reply received.- Parameters:
pjp
- The AspectJ join point object.- Returns:
- The reply object.
- Throws:
Throwable
- if there is any failure from the operation. This is also logged if logging is set to DEBUG.- See Also:
-
checkExchange
Join point for the rest template'sexchange
operations. Logs the XML being sent and the reply received.- Parameters:
pjp
- The AspectJ join point object.- Returns:
- The reply object.
- Throws:
Throwable
- if there is any failure from the operation. This is also logged if logging is set to DEBUG.- See Also:
-
checkDelete
Join point for the rest template'sexchange
operations. Logs the URI being deleted.- Parameters:
pjp
- The AspectJ join point object.- Returns:
- The reply object.
- Throws:
Throwable
- if there is any failure from the operation. This is also logged if logging is set to DEBUG.- See Also:
-