All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ebay.sdk.ApiLogging Maven / Gradle / Ivy

Go to download

This SDK enables you to use Java to make API calls in the eBay Trading API, which is an XML API. This maven build is provided by tonicsoft for convenience and is an exact copy of version 981 of the project distributed by eBay via the official eBay SDK website.

The newest version!
/*
Copyright (c) 2013 eBay, Inc.
This program is licensed under the terms of the eBay Common Development and
Distribution License (CDDL) Version 1.0 (the "License") and any subsequent  version 
thereof released by eBay.  The then-current version of the License can be found 
at http://www.opensource.org/licenses/cddl1.php and in the eBaySDKLicense file that 
is under the root directory at /LICENSE.txt.
*/

package com.ebay.sdk;

/**
 * Contains properties to control SDK logging.
 * 
 * 
*

Title:

*

Description:

*

Copyright: Copyright (c) 2004

*

Company: eBay Inc.

* @author Weijun Li * @version 1.0 */ public class ApiLogging { private boolean logExceptions = true; private boolean logSOAPMessages = true; private boolean logHTTPHeaders = false; private ExceptionFilter messageLoggingFilter = null; /** * Constructor. */ public ApiLogging() { } /** * Set to true to enable logging of all exceptions if logging is enabled * (setEnableLogging(true)). * * @param logExceptions boolean */ public void setLogExceptions(boolean logExceptions) { this.logExceptions = logExceptions; } /** * Get LogExceptions property. * @return true means logging of exception is turned on. */ public boolean isLogExceptions() { return this.logExceptions; } /** * Set to true to enable logging of SOAP request and response messages if * logging is enabled (setEnableLogging(true)). * @param logSOAPMessages boolean */ public void setLogSOAPMessages(boolean logSOAPMessages) { this.logSOAPMessages = logSOAPMessages; } /** * Get LogSOAPMessages property. * @return true means logging of SOAP messages is turned on. */ public boolean isLogSOAPMessages() { return this.logSOAPMessages; } /** * Get the message logging filter. * @return the message logging filter object. */ public ExceptionFilter getMessageLoggingFilter() { return this.messageLoggingFilter; } /** * Set the message logging filter. This will only have an effect if logging in general, * and logging of SOAP messages (payload), are already enabled. The message logging filter * allows constrained logging of payload messages for specific exceptions that match the filter. * @param messageLoggingFilter */ public void setMessageLoggingFilter(ExceptionFilter messageLoggingFilter) { this.messageLoggingFilter = messageLoggingFilter; } /** * Get LogHTTPHeaders property. * @return true means logging of HTTP headers is turned on. */ public boolean isLogHTTPHeaders() { return logHTTPHeaders; } /** * Set to true to enable logging of all HTTP request/response headers * if logging is enabled(setEnableLogging(true)). * * @param logHTTPHeaders */ public void setLogHTTPHeaders(boolean logHTTPHeaders) { this.logHTTPHeaders = logHTTPHeaders; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy