Package com.nirima.jenkins.webdav.interfaces

Examples of com.nirima.jenkins.webdav.interfaces.MethodException


                Class c = Class.forName(impl);
                IMethod method = (IMethod) c.newInstance();
                //method.init(request, response, null, repo, root);
                return method;
            } catch (Exception e) {
                throw new MethodException("Exception in creating method " + methodName, e);
            }
        } catch (Exception e) {
            throw new MethodException("Exception in creating method " + methodName, e);
        }
    }
View Full Code Here


                    } catch (IndexOutOfBoundsException e) {
                        s_logger.warn("Failed to parse If header: " + strIf);
                    }
                } else {
                    m_response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
                    throw new MethodException("Bad Request");
                }

                // print a warning if there are other tokens detected
                if (strIf.length() > idx + 2) {
                    s_logger.warn("The If header contained more than one lock token, only one is supported");
View Full Code Here

            this.getResponse().setHeader("Content-Type", contentType);
            this.getResponse().setHeader("Content-Length", Long.toString(fileItem.getContentLength()));

            writeContent(fileItem);
        } catch (Exception e) {
            throw new MethodException("Exception", e);
        }
    }
View Full Code Here

                this.getResponse().setStatus(HttpServletResponse.SC_CREATED);
            else
                this.getResponse().setStatus(HttpServletResponse.SC_NO_CONTENT);

        } catch (Exception e) {
            throw new MethodException("Error creating collection", e);
        }

    }
View Full Code Here

            }

            this.getResponse().setStatus(HttpServletResponse.SC_NO_CONTENT);

        } catch (Exception e) {
            throw new MethodException("Error deleting object", e);
        }

    }
View Full Code Here

            }

            this.getResponse().setStatus(HttpServletResponse.SC_CONFLICT);

        } catch (Exception e) {
            throw new MethodException("Error putting object", e);
        }

    }
View Full Code Here

TOP

Related Classes of com.nirima.jenkins.webdav.interfaces.MethodException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.