Ignore:
Timestamp:
Feb 28, 2011, 7:40:53 PM (13 years ago)
Author:
mlg
Message:

Modifications to handle proxy error.
Two types of error are handled : proxy address error and proxy authentication error.
Connecting to jiwigo via a proxy seems to work (tried with my own server... gonna have to try with an external server).
version is 0.13.1.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo-ws-api/src/main/java/fr/mael/jiwigo/dao/CategoryDao.java

    r9392 r9430  
    1111import fr.mael.jiwigo.transverse.enumeration.CategoryEnum;
    1212import fr.mael.jiwigo.transverse.enumeration.MethodsEnum;
     13import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException;
    1314import fr.mael.jiwigo.transverse.session.SessionManager;
    1415import fr.mael.jiwigo.transverse.util.Tools;
     
    8182     * @return the list of categories
    8283     * @throws IOException
     84     * @throws ProxyAuthenticationException
    8385     */
    84     public List<Category> list(boolean recursive) throws IOException {
     86    public List<Category> list(boolean recursive) throws IOException, ProxyAuthenticationException {
    8587        Document doc = sessionManager.executeReturnDocument(MethodsEnum.LISTER_CATEGORIES.getLabel(), "recursive",
    8688                String.valueOf(recursive));
     
    112114     * @param category the category to create
    113115     * @return true if the category is successfully created
     116     * @throws ProxyAuthenticationException
    114117     */
    115     public boolean create(Category category) {
     118    public boolean create(Category category) throws ProxyAuthenticationException {
    116119        try {
    117120            if (category.getDirectParent() != null) {
Note: See TracChangeset for help on using the changeset viewer.