public boolean canTalkDAV ( ) throws DAVException { IResponse response = null ; try { // Send an options request. response = davClient . options ( locator , newContext ( ) ) ; examineResponse ( response ) ; // Check for at least DAV level 1. String davHeader = response . getContext ( ) . getDAV ( ) ; return ! ( ( davHeader == null ) || ( davHeader . indexOf ( "1" ) == - 1 ) ) ; //$NON-NLS-1$ } catch ( IOException exception ) { throw new SystemException ( exception ) ; } finally { closeResponse ( response ) ; } }
Return a boolean value indicating whether or not the server for this resource is DAV compliant .