⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webdavrequestimpl.java

📁 jsr170接口的java实现。是个apache的开源项目。
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
     */    public Position getPosition() {        String h = getHeader(OrderingConstants.HEADER_POSITION);        Position pos = null;        if (h != null) {            String[] typeNSegment = h.split("\\s");            if (typeNSegment.length == 2) {                try {                    pos = new Position(typeNSegment[0], typeNSegment[1]);                } catch (IllegalArgumentException e) {                    log.error("Cannot parse Position header: " + e.getMessage());                }            }        }        return pos;    }    /**     * @return <code>OrderPatch</code> object representing the orderpatch request     *         body or <code>null</code> if the     * @see org.apache.jackrabbit.webdav.ordering.OrderingDavServletRequest#getOrderPatch()     */    public OrderPatch getOrderPatch() throws DavException {        OrderPatch op = null;        Document requestDocument = getRequestDocument();        if (requestDocument != null) {            Element root = requestDocument.getDocumentElement();            op = OrderPatch.createFromXml(root);        } else {            log.error("Error while building xml document from ORDERPATH request body.");        }        return op;    }    //-------------------------------------< DeltaVServletRequest interface >---    /**     * @see org.apache.jackrabbit.webdav.version.DeltaVServletRequest#getLabel()     */    public String getLabel() {        LabelHeader label = LabelHeader.parse(this);        if (label != null) {            return label.getLabel();        }        return null;    }    /**     * @see org.apache.jackrabbit.webdav.version.DeltaVServletRequest#getLabelInfo()     */    public LabelInfo getLabelInfo() throws DavException {        LabelInfo lInfo = null;        Document requestDocument = getRequestDocument();        if (requestDocument != null) {            Element root = requestDocument.getDocumentElement();            int depth = getDepth(DEPTH_0);            lInfo = new LabelInfo(root, depth);        }        return lInfo;    }    /**     * @see org.apache.jackrabbit.webdav.version.DeltaVServletRequest#getMergeInfo()     */    public MergeInfo getMergeInfo()  throws DavException {        MergeInfo mInfo = null;        Document requestDocument = getRequestDocument();        if (requestDocument != null) {            mInfo = new MergeInfo(requestDocument.getDocumentElement());        }        return mInfo;    }    /**     * @see org.apache.jackrabbit.webdav.version.DeltaVServletRequest#getUpdateInfo()     */    public UpdateInfo getUpdateInfo() throws DavException  {        UpdateInfo uInfo = null;        Document requestDocument = getRequestDocument();        if (requestDocument != null) {            uInfo = new UpdateInfo(requestDocument.getDocumentElement());        }        return uInfo;    }    /**     * @see org.apache.jackrabbit.webdav.version.DeltaVServletRequest#getReportInfo()     */    public ReportInfo getReportInfo() throws DavException  {        ReportInfo rInfo = null;        Document requestDocument = getRequestDocument();        if (requestDocument != null) {            rInfo = new ReportInfo(requestDocument.getDocumentElement(), getDepth(DEPTH_0));        }        return rInfo;    }    /**     * @see org.apache.jackrabbit.webdav.version.DeltaVServletRequest#getOptionsInfo()     */    public OptionsInfo getOptionsInfo() throws DavException {        OptionsInfo info = null;        Document requestDocument = getRequestDocument();        if (requestDocument != null) {            info = OptionsInfo.createFromXml(requestDocument.getDocumentElement());        }        return info;    }    //---------------------------------------< HttpServletRequest interface >---    public String getAuthType() {        return httpRequest.getAuthType();    }    public Cookie[] getCookies() {        return httpRequest.getCookies();    }    public long getDateHeader(String s) {        return httpRequest.getDateHeader(s);    }    public String getHeader(String s) {        return httpRequest.getHeader(s);    }    public Enumeration getHeaders(String s) {        return httpRequest.getHeaders(s);    }    public Enumeration getHeaderNames() {        return httpRequest.getHeaderNames();    }    public int getIntHeader(String s) {        return httpRequest.getIntHeader(s);    }    public String getMethod() {        return httpRequest.getMethod();    }    public String getPathInfo() {        return httpRequest.getPathInfo();    }    public String getPathTranslated() {        return httpRequest.getPathTranslated();    }    public String getContextPath() {        return httpRequest.getContextPath();    }    public String getQueryString() {        return httpRequest.getQueryString();    }    public String getRemoteUser() {        return httpRequest.getRemoteUser();    }    public boolean isUserInRole(String s) {        return httpRequest.isUserInRole(s);    }    public Principal getUserPrincipal() {        return httpRequest.getUserPrincipal();    }    public String getRequestedSessionId() {        return httpRequest.getRequestedSessionId();    }    public String getRequestURI() {        return httpRequest.getRequestURI();    }    public StringBuffer getRequestURL() {        return httpRequest.getRequestURL();    }    public String getServletPath() {        return httpRequest.getServletPath();    }    public HttpSession getSession(boolean b) {        return httpRequest.getSession(b);    }    public HttpSession getSession() {        return httpRequest.getSession();    }    public boolean isRequestedSessionIdValid() {        return httpRequest.isRequestedSessionIdValid();    }    public boolean isRequestedSessionIdFromCookie() {        return httpRequest.isRequestedSessionIdFromCookie();    }    public boolean isRequestedSessionIdFromURL() {        return httpRequest.isRequestedSessionIdFromURL();    }    public boolean isRequestedSessionIdFromUrl() {        return httpRequest.isRequestedSessionIdFromUrl();    }    public Object getAttribute(String s) {        return httpRequest.getAttribute(s);    }    public Enumeration getAttributeNames() {        return httpRequest.getAttributeNames();    }    public String getCharacterEncoding() {        return httpRequest.getCharacterEncoding();    }    public void setCharacterEncoding(String s) throws UnsupportedEncodingException {        httpRequest.setCharacterEncoding(s);    }    public int getContentLength() {        return httpRequest.getContentLength();    }    public String getContentType() {        return httpRequest.getContentType();    }    public ServletInputStream getInputStream() throws IOException {        return httpRequest.getInputStream();    }    public String getParameter(String s) {        return httpRequest.getParameter(s);    }    public Enumeration getParameterNames() {        return httpRequest.getParameterNames();    }    public String[] getParameterValues(String s) {        return httpRequest.getParameterValues(s);    }    public Map getParameterMap() {        return httpRequest.getParameterMap();    }    public String getProtocol() {        return httpRequest.getProtocol();    }    public String getScheme() {        return httpRequest.getScheme();    }    public String getServerName() {        return httpRequest.getServerName();    }    public int getServerPort() {        return httpRequest.getServerPort();    }    public BufferedReader getReader() throws IOException {        return httpRequest.getReader();    }    public String getRemoteAddr() {        return httpRequest.getRemoteAddr();    }    public String getRemoteHost() {        return httpRequest.getRemoteHost();    }    public void setAttribute(String s, Object o) {        httpRequest.setAttribute(s, o);    }    public void removeAttribute(String s) {        httpRequest.removeAttribute(s);    }    public Locale getLocale() {        return httpRequest.getLocale();    }    public Enumeration getLocales() {        return httpRequest.getLocales();    }    public boolean isSecure() {        return httpRequest.isSecure();    }    public RequestDispatcher getRequestDispatcher(String s) {        return httpRequest.getRequestDispatcher(s);    }    public String getRealPath(String s) {        return httpRequest.getRealPath(s);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -