Package org.apache.webdav.lib.properties

Examples of org.apache.webdav.lib.properties.ResourceTypeProperty


                long length = currentResource.getGetContentLength();
                // getcontentlength
                longFormat[1] = new Long(length).toString();
                // resourcetype
                ResourceTypeProperty resourceTypeProperty =
                    currentResource.getResourceType();
                // getcontenttype
                String getContentType =
                    currentResource.getGetContentType();
                longFormat[2] = resourceTypeProperty.isCollection() ?
                    "COLLECTION" : getContentType ;
                Date date = new Date(currentResource.getGetLastModified());
                // getlastmodified
                // Save the dummy what if failed.
                longFormat[3] = (date == null) ? "-- -- ----" :
View Full Code Here


                    } else {
                        workingResource.setGetContentLength(getContentLength);
                    }
                } else
                if (property.getLocalName().equals(RESOURCETYPE)) {
                    ResourceTypeProperty resourceType =
                        (ResourceTypeProperty) property;
                    if (itself) {
                        setResourceType(resourceType);
                    } else {
                        workingResource.setResourceType(resourceType);
View Full Code Here

                long length = currentResource.getGetContentLength();
                // getcontentlength
                longFormat[1] = new Long(length).toString();
                // resourcetype
                ResourceTypeProperty resourceTypeProperty =
                    currentResource.getResourceType();
                // getcontenttype
                String getContentType =
                    currentResource.getGetContentType();
                longFormat[2] = resourceTypeProperty.isCollection() ?
                    "COLLECTION" : getContentType ;
                Date date = new Date(currentResource.getGetLastModified());
                // getlastmodified
                // Save the dummy what if failed.
                longFormat[3] = (date == null) ? "-- -- ----" :
View Full Code Here

                        } else {
                            workingResource.setGetContentLength(getContentLength);
                        }
                    } else
                        if (property.getLocalName().equals(RESOURCETYPE)) {
                            ResourceTypeProperty resourceType =
                                (ResourceTypeProperty) property;
                            if (itself) {
                                setResourceType(resourceType);
                            } else {
                                workingResource.setResourceType(resourceType);
View Full Code Here

               
                long length = currentResource.getGetContentLength();
                // getcontentlength
                longFormat[1] = new Long(length).toString();
                // resourcetype
                ResourceTypeProperty resourceTypeProperty =
                    currentResource.getResourceType();
                // getcontenttype
                String getContentType =
                    currentResource.getGetContentType();
                longFormat[2] = resourceTypeProperty.isCollection() ?
                    "COLLECTION" : getContentType ;
                Date date = new Date(currentResource.getGetLastModified());
                // getlastmodified
                // Save the dummy what if failed.
                longFormat[3] = (date == null) ? "-- -- ----" :
View Full Code Here

                    } else {
                        workingResource.setGetContentLength(getContentLength);
                    }
                } else
                if (property.getLocalName().equals(RESOURCETYPE)) {
                    ResourceTypeProperty resourceType =
                        (ResourceTypeProperty) property;
                    if (itself) {
                        setResourceType(resourceType);
                    } else {
                        workingResource.setResourceType(resourceType);
View Full Code Here

                long length = currentResource.getGetContentLength();
                // getcontentlength
                longFormat[1] = new Long(length).toString();
                // resourcetype
                ResourceTypeProperty resourceTypeProperty =
                    currentResource.getResourceType();
                // getcontenttype
                String getContentType =
                    currentResource.getGetContentType();
                longFormat[2] = resourceTypeProperty.isCollection() ?
                    "COLLECTION" : getContentType ;
                Date date = new Date(currentResource.getGetLastModified());
                // getlastmodified
                // Save the dummy what if failed.
                longFormat[3] = (date == null) ? "-- -- ----" :
View Full Code Here

                long length = currentResource.getGetContentLength();
                // getcontentlength
                longFormat[1] = new Long(length).toString();
                // resourcetype
                ResourceTypeProperty resourceTypeProperty =
                    currentResource.getResourceType();
                // getcontenttype
                String getContentType =
                    currentResource.getGetContentType();
                longFormat[2] = resourceTypeProperty.isCollection() ?
                    "COLLECTION" : getContentType ;
                Date date = new Date(currentResource.getGetLastModified());
                // getlastmodified
                // Save the dummy what if failed.
                longFormat[3] = (date == null) ? "-- -- ----" :
View Full Code Here

        else if (property.getLocalName().equals(GETCONTENTLENGTH)) {
            String getContentLength = property.getPropertyAsString();
            setGetContentLength(getContentLength);
        }
        else if (property.getLocalName().equals(RESOURCETYPE)) {
            ResourceTypeProperty resourceType =
                (ResourceTypeProperty) property;
            setResourceType(resourceType);
        }
        else if (property.getLocalName().equals(GETCONTENTTYPE)) {
            String getContentType = property.getPropertyAsString();
View Full Code Here

            {
              optionsMethod.releaseConnection();
            }
        }

        ResourceTypeProperty resourceType = resource.getResourceType();
        if (resourceType == null) {
          //This should not happen because resource has been checked for its existence
          //and DAV:resourcetype property MUST be defined on all DAV compliant resources.
          //However there may be a non-compliant server.
          injectType(FileType.FILE_OR_FOLDER);
         
        } else if (resourceType.isCollection())
        {
            injectType(FileType.FOLDER);
        }
        else
        {
View Full Code Here

TOP

Related Classes of org.apache.webdav.lib.properties.ResourceTypeProperty

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.