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/TagDao.java

    r9392 r9430  
    1212import fr.mael.jiwigo.transverse.enumeration.MethodsEnum;
    1313import fr.mael.jiwigo.transverse.enumeration.TagEnum;
     14import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException;
    1415import fr.mael.jiwigo.transverse.session.SessionManager;
    1516import fr.mael.jiwigo.transverse.util.Tools;
     
    5354     * @return the list of tags
    5455     * @throws IOException
     56     * @throws ProxyAuthenticationException
    5557     */
    56     public List<Tag> list() throws IOException {
     58    public List<Tag> list() throws IOException, ProxyAuthenticationException {
    5759        Document doc = sessionManager.executeReturnDocument(MethodsEnum.TAGS_ADMIN_LIST.getLabel());
    5860        //      System.out.println(Outil.documentToString(doc));
     
    8486     * @param tag the tag to create
    8587     * @return true if the tag as been successfully created
     88     * @throws ProxyAuthenticationException
    8689     */
    87     public boolean create(Tag tag) {
     90    public boolean create(Tag tag) throws ProxyAuthenticationException {
    8891        try {
    8992            return Tools.checkOk(sessionManager.executeReturnDocument(MethodsEnum.ADD_TAG.getLabel(), "name", tag
     
    100103     * @return the tags list
    101104     * @throws IOException
     105     * @throws ProxyAuthenticationException
    102106     */
    103     public List<Tag> tagsForImage(Image image) throws IOException {
     107    public List<Tag> tagsForImage(Image image) throws IOException, ProxyAuthenticationException {
    104108        Document doc = sessionManager.executeReturnDocument(MethodsEnum.GET_INFO.getLabel(), "image_id", String
    105109                .valueOf(image.getIdentifier()));
Note: See TracChangeset for help on using the changeset viewer.