Skip to content

Commit

Permalink
Merge pull request #27 from WURFL/develop
Browse files Browse the repository at this point in the history
[1.0.15] More javadoc fixed part 2
  • Loading branch information
andreacastello authored Jun 8, 2021
2 parents b9fa830 + 677cbcf commit 39acc28
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class CloudClient extends Loggable implements ICloudClientRequest, Consta
private static final int HTTP_ERROR_JSON_KEY = 500;

/**
* The HTTP Headers that will be used to query the WURFL Cloud Server in Map<String, String> format.
* The HTTP Headers that will be used to query the WURFL Cloud Server in Map format.
*/
private final Map<String, String> reqHeaders = new LinkedHashMap<String, String>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,22 @@ public class CloudClientManager extends Loggable implements CloudListener, IClou

/**
* CloudClientManager constructor.
* @param authenticationManager
* @param config
* @param cache
* @param proxy
* @param authenticationManager the auth manager
* @param config cloud config object
* @param cache cache implementation
* @param proxy proxy used for connection
*/
public CloudClientManager(IAuthenticationManager authenticationManager, CloudClientConfig config, IWurflCloudCache cache, Proxy proxy) {
this(authenticationManager, config, cache, proxy, null);
}

/**
* Full constructor.
* @param authenticationManager
* @param config
* @param cache
* @param proxy
* @param parsedCapabilities
* @param authenticationManager the auth manager
* @param config cloud config object
* @param cache cache implementation
* @param proxy proxy used for connection
* @param parsedCapabilities array of capabilities to be used
*/
public CloudClientManager(IAuthenticationManager authenticationManager, CloudClientConfig config, IWurflCloudCache cache, Proxy proxy, String[] parsedCapabilities) {
this.config = config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public interface IWurflCloudCache extends Constants {

/**
* Get the device capabilities for the given user agent from the cache provider
* @param request HTTP request object
* @param client wurfl cloud client request object
* @return a detected AbstractDevice implementation
*/
public AbstractDevice getDevice(HttpServletRequest request, ICloudClientRequest client);
/**
Expand Down Expand Up @@ -64,7 +67,6 @@ public interface IWurflCloudCache extends Constants {

/**
* Sets the last loaded WURFL timestamp in the cache provider
* @link IWurflCloudCache.#getMtime()
*
* @param server_mtime The new time to set
* @return True if the new time was set successfully, false otherwise
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ public AbstractDevice getDeviceFromID(String key) {
/**
* Sets a cookie in the response, with max age default cache expiration.
*
* @param response
* @param key
* @param device
* @param response the HTTP servlet response object
* @param key cookie key
* @param device the device object to use to set the cookie
* @return true if device has been set properly, false if any error occurred
*/
public boolean setDevice(HttpServletResponse response, String key, AbstractDevice device) {
Expand Down

0 comments on commit 39acc28

Please sign in to comment.