Java Doc for SVNURL.java in  » Source-Control » tmatesoft-SVN » org » tmatesoft » svn » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Source Control » tmatesoft SVN » org.tmatesoft.svn.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.tmatesoft.svn.core.SVNURL

SVNURL
public class SVNURL (Code)
The SVNURL class is used for representing urls. Those SVNKit API methods, that need repository locations to carry out an operation, receive a repository location url represented by SVNURL. This class does all the basic work for a caller: parses an original url string (splitting it to components), encodes/decodes a path component to/from the UTF-8 charset, checks for validity (such as protocol support - if SVNKit does not support a particular protocol, SVNURL throws a corresponding exception).

To create a new SVNURL representation, pass an original url string (like "http://userInfo@host:port/path") to a corresponding parse method of this class.
version:
   1.1.1
author:
   TMate Software Ltd.
See Also:    Examples





Method Summary
public  SVNURLappendPath(String segment, boolean uriEncoded)
     Constructs a new SVNURL representation appending a new path segment to the path component of this representation.
public static  SVNURLcreate(String protocol, String userInfo, String host, int port, String path, boolean uriEncoded)
     Creates a new SVNURL representation from the given url components.
public  booleanequals(Object obj)
     Compares this object with another one.
public static  SVNURLfromFile(File repositoryPath)
     Creates a "file:///" SVNURL representation given a filesystem style repository path.
public static  intgetDefaultPortNumber(String protocol)
     Returns the default port number for the specified protocol.
public  StringgetHost()
     Returns the host component of the url represented by this object.
public  StringgetPath()
    
public  intgetPort()
     Returns the port number specified (or default) for the host.
public  StringgetProtocol()
     Returns the protocol component of the url represented by this object.
public  StringgetURIEncodedPath()
    
public  StringgetUserInfo()
     Returns the user info component of the url represented by this object.
public  booleanhasPort()
     Says if the url is provided with a non-default port number or not.
public  inthashCode()
     Calculates and returns a hash code for this object.
public static  SVNURLparseURIDecoded(String url)
     Parses the given decoded (not UTF-8 encoded) url string and creates a new SVNURL representation for this url.
public static  SVNURLparseURIEncoded(String url)
     Parses the given UTF-8 encoded url string and creates a new SVNURL representation for this url.
public static  voidregisterProtocol(String protocolName, int defaultPort)
    
public  SVNURLremovePathTail()
     Constructs a new SVNURL representation removing a tail path segment from the path component of this representation.
public  SVNURLsetPath(String path, boolean uriEncoded)
     Creates a new SVNURL object replacing a path component of this object with a new provided one.
public  StringtoDecodedString()
     Returns a string representing a decoded url.
public  StringtoString()
     Returns a string representing a UTF-8 encoded url.



Method Detail
appendPath
public SVNURL appendPath(String segment, boolean uriEncoded) throws SVNException(Code)
Constructs a new SVNURL representation appending a new path segment to the path component of this representation.
Parameters:
  segment - a new path segment
Parameters:
  uriEncoded - true if segment is UTF-8 encoded,false otherwise a new SVNURL representation
throws:
  SVNException - if a parse error occurred



create
public static SVNURL create(String protocol, String userInfo, String host, int port, String path, boolean uriEncoded) throws SVNException(Code)
Creates a new SVNURL representation from the given url components.
Parameters:
  protocol - a protocol component
Parameters:
  userInfo - a user info component
Parameters:
  host - a host component
Parameters:
  port - a port number
Parameters:
  path - a path component
Parameters:
  uriEncoded - true if path is UTF-8 encoded,false otherwise a new SVNURL representation
throws:
  SVNException - if the resultant url (composed of the given components) is malformed



equals
public boolean equals(Object obj)(Code)
Compares this object with another one.
Parameters:
  obj - an object to compare with true if objis an instance of SVNURL and has got the sameurl components as this object has



fromFile
public static SVNURL fromFile(File repositoryPath) throws SVNException(Code)
Creates a "file:///" SVNURL representation given a filesystem style repository path.
Parameters:
  repositoryPath - a repository path as a filesystem path an SVNURL representation
throws:
  SVNException -



getDefaultPortNumber
public static int getDefaultPortNumber(String protocol)(Code)
Returns the default port number for the specified protocol.
Parameters:
  protocol - a particular access protocol default port number



getHost
public String getHost()(Code)
Returns the host component of the url represented by this object. a host name



getPath
public String getPath()(Code)
Returns the path component of the url represented by this object as a uri-decoded string a uri-decoded path



getPort
public int getPort()(Code)
Returns the port number specified (or default) for the host. a port number



getProtocol
public String getProtocol()(Code)
Returns the protocol component of the url represented by this object. a protocol name (like http)



getURIEncodedPath
public String getURIEncodedPath()(Code)
Returns the path component of the url represented by this object as a uri-encoded string a uri-encoded path



getUserInfo
public String getUserInfo()(Code)
Returns the user info component of the url represented by this object. a user info part of the url (if it was provided)



hasPort
public boolean hasPort()(Code)
Says if the url is provided with a non-default port number or not. true if the urlcomes with a non-default port number, false otherwise
See Also:   SVNURL.getPort()



hashCode
public int hashCode()(Code)
Calculates and returns a hash code for this object. a hash code value



parseURIDecoded
public static SVNURL parseURIDecoded(String url) throws SVNException(Code)
Parses the given decoded (not UTF-8 encoded) url string and creates a new SVNURL representation for this url.
Parameters:
  url - an input url string (like 'http://myhost/mypath') a new SVNURL representation of url
throws:
  SVNException - if url is malformed



parseURIEncoded
public static SVNURL parseURIEncoded(String url) throws SVNException(Code)
Parses the given UTF-8 encoded url string and creates a new SVNURL representation for this url.
Parameters:
  url - an input url string (like 'http://myhost/my%20path') a new SVNURL representation of url
throws:
  SVNException - if url is malformed



registerProtocol
public static void registerProtocol(String protocolName, int defaultPort)(Code)



removePathTail
public SVNURL removePathTail() throws SVNException(Code)
Constructs a new SVNURL representation removing a tail path segment from the path component of this representation. a new SVNURL representation
throws:
  SVNException -



setPath
public SVNURL setPath(String path, boolean uriEncoded) throws SVNException(Code)
Creates a new SVNURL object replacing a path component of this object with a new provided one.
Parameters:
  path - a path component
Parameters:
  uriEncoded - true if path is UTF-8 encoded a new SVNURL representation
throws:
  SVNException - if a parse error occurred



toDecodedString
public String toDecodedString()(Code)
Returns a string representing a decoded url. a decoded url string



toString
public String toString()(Code)
Returns a string representing a UTF-8 encoded url. an encoded url string



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.