org.glassfish.jersey.client.oauth1.internal.LocalizationMessages Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jersey-all Show documentation
Show all versions of jersey-all Show documentation
jersey-all is a rebundled verison of Jersey as one OSGi bundle.
package org.glassfish.jersey.client.oauth1.internal;
import org.glassfish.jersey.internal.l10n.Localizable;
import org.glassfish.jersey.internal.l10n.LocalizableMessageFactory;
import org.glassfish.jersey.internal.l10n.Localizer;
/**
* Defines string formatting method for each constant in the resource file
*
*/
public final class LocalizationMessages {
private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory("org.glassfish.jersey.client.oauth1.internal.localization");
private final static Localizer localizer = new Localizer();
public static Localizable localizableERROR_REQUEST_ACCESS_TOKEN_NULL() {
return messageFactory.getMessage("error.request.accessToken.null");
}
/**
* Error occurred in the oauth client support. Returned Access Token is null.
*
*/
public static String ERROR_REQUEST_ACCESS_TOKEN_NULL() {
return localizer.localize(localizableERROR_REQUEST_ACCESS_TOKEN_NULL());
}
public static Localizable localizableERROR_REQUEST_SIGNATURE() {
return messageFactory.getMessage("error.request.signature");
}
/**
* Error occurred in the oauth client support. Error signing the request.
*
*/
public static String ERROR_REQUEST_SIGNATURE() {
return localizer.localize(localizableERROR_REQUEST_SIGNATURE());
}
public static Localizable localizableERROR_REQUEST_REQUEST_TOKEN(Object arg0) {
return messageFactory.getMessage("error.request.requestToken", arg0);
}
/**
* Error occurred in the oauth client support. Error requesting Request Token. Response status {0} returned.
*
*/
public static String ERROR_REQUEST_REQUEST_TOKEN(Object arg0) {
return localizer.localize(localizableERROR_REQUEST_REQUEST_TOKEN(arg0));
}
public static Localizable localizableERROR_CONFIGURATION_MISSING_CONSUMER() {
return messageFactory.getMessage("error.configuration.missing.consumer");
}
/**
* Error occurred in the oauth client support. Consumer secret and consumer key must not be null.
*
*/
public static String ERROR_CONFIGURATION_MISSING_CONSUMER() {
return localizer.localize(localizableERROR_CONFIGURATION_MISSING_CONSUMER());
}
public static Localizable localizableERROR_REQUEST_ACCESS_TOKEN(Object arg0) {
return messageFactory.getMessage("error.request.accessToken", arg0);
}
/**
* Error occurred in the oauth client support. Error requesting Access Token. Response status {0} returned.
*
*/
public static String ERROR_REQUEST_ACCESS_TOKEN(Object arg0) {
return localizer.localize(localizableERROR_REQUEST_ACCESS_TOKEN(arg0));
}
public static Localizable localizableERROR_FLOW_NOT_FINISHED() {
return messageFactory.getMessage("error.flow.not.finished");
}
/**
* Authorization is not finished and access token was not received. Call start() and then finish() to perform the authorization.
*
*/
public static String ERROR_FLOW_NOT_FINISHED() {
return localizer.localize(localizableERROR_FLOW_NOT_FINISHED());
}
public static Localizable localizableERROR_CONFIGURATION_MISSING_TOKEN_SECRET() {
return messageFactory.getMessage("error.configuration.missing.tokenSecret");
}
/**
* Error occurred in the oauth client support. Token is not null but token secret is null.
*
*/
public static String ERROR_CONFIGURATION_MISSING_TOKEN_SECRET() {
return localizer.localize(localizableERROR_CONFIGURATION_MISSING_TOKEN_SECRET());
}
}