Java Doc for LocalReference.java in  » Web-Services » restlet-1.0.8 » org » restlet » data » 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 » Web Services » restlet 1.0.8 » org.restlet.data 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.restlet.data.Reference
      org.restlet.data.LocalReference

LocalReference
final public class LocalReference extends Reference (Code)
Reference to a local (i.e. non remote) resource. It has helper methods for the three following schemes: Protocol.CLAP , Protocol.FILE and Protocol.JAR .
author:
   Jerome Louvel (contact@noelios.com)


Field Summary
final public static  intCLAP_CLASS
     The resources will be resolved from the classloader associated with the local class.
final public static  intCLAP_SYSTEM
     The resources will be resolved from the system's classloader.
final public static  intCLAP_THREAD
     The resources will be resolved from the current thread's classloader.

Constructor Summary
public  LocalReference(Reference localRef)
     Constructor.
public  LocalReference(String localUri)
     Constructor.

Method Summary
public static  LocalReferencecreateClapReference(int authorityType, String path)
     Constructor.
public static  LocalReferencecreateFileReference(File file)
     Constructor.
public static  LocalReferencecreateFileReference(String filePath)
     Constructor.
public static  LocalReferencecreateFileReference(String hostName, String filePath)
     Constructor.
public static  LocalReferencecreateJarReference(Reference jarFile, String entryPath)
     Constructor.
public static  StringgetAuthorityName(int authority)
     Returns an authority name.
Parameters:
  authority - The authority.
public  intgetClapAuthorityType()
     Returns the type of authority.
public  FilegetFile()
     Gets the local file corresponding to the reference.
public  StringgetJarEntryPath()
     Returns the JAR entry path.
public  ReferencegetJarFileRef()
     Returns the JAR file reference.
public static  StringlocalizePath(String path)
     Localize a path by converting all the separator characters to the system-dependant separator character.
Parameters:
  path - The path to localize.
public static  StringnormalizePath(String path)
     Normalize a path by converting all the system-dependant separator characters to the standard '/' separator character.
Parameters:
  path - The path to normalize.

Field Detail
CLAP_CLASS
final public static int CLAP_CLASS(Code)
The resources will be resolved from the classloader associated with the local class. Examples: clap://class/rootPkg/subPkg/myClass.class or clap://class/rootPkg/file.html
See Also:   java.lang.Class.getClassLoader



CLAP_SYSTEM
final public static int CLAP_SYSTEM(Code)
The resources will be resolved from the system's classloader. Examples: clap://system/rootPkg/subPkg/myClass.class or clap://system/rootPkg/file.html
See Also:   java.lang.ClassLoader.getSystemClassLoader



CLAP_THREAD
final public static int CLAP_THREAD(Code)
The resources will be resolved from the current thread's classloader. Examples: clap://thread/rootPkg/subPkg/myClass.class or clap://thread/rootPkg/file.html
See Also:   java.lang.Thread.getContextClassLoader




Constructor Detail
LocalReference
public LocalReference(Reference localRef)(Code)
Constructor.
Parameters:
  localRef - The local reference.



LocalReference
public LocalReference(String localUri)(Code)
Constructor.
Parameters:
  localUri - The local URI.




Method Detail
createClapReference
public static LocalReference createClapReference(int authorityType, String path)(Code)
Constructor.
Parameters:
  authorityType - The authority type for the resource path.
Parameters:
  path - The resource path.



createFileReference
public static LocalReference createFileReference(File file)(Code)
Constructor.
Parameters:
  file - The file whose path must be used.



createFileReference
public static LocalReference createFileReference(String filePath)(Code)
Constructor.
Parameters:
  filePath - The local file path.



createFileReference
public static LocalReference createFileReference(String hostName, String filePath)(Code)
Constructor.
Parameters:
  hostName - The authority (can be a host name or the special"localhost" or an empty value).
Parameters:
  filePath - The file path.



createJarReference
public static LocalReference createJarReference(Reference jarFile, String entryPath)(Code)
Constructor.
Parameters:
  jarFile - The JAR file reference.
Parameters:
  entryPath - The entry path inside the JAR file.



getAuthorityName
public static String getAuthorityName(int authority)(Code)
Returns an authority name.
Parameters:
  authority - The authority. The name.



getClapAuthorityType
public int getClapAuthorityType()(Code)
Returns the type of authority. The type of authority.



getFile
public File getFile()(Code)
Gets the local file corresponding to the reference. Only URIs referring to the "localhost" or to an empty authority are supported. The local file corresponding to the reference.



getJarEntryPath
public String getJarEntryPath()(Code)
Returns the JAR entry path. The JAR entry path.



getJarFileRef
public Reference getJarFileRef()(Code)
Returns the JAR file reference. The JAR file reference.



localizePath
public static String localizePath(String path)(Code)
Localize a path by converting all the separator characters to the system-dependant separator character.
Parameters:
  path - The path to localize. The localized path.



normalizePath
public static String normalizePath(String path)(Code)
Normalize a path by converting all the system-dependant separator characters to the standard '/' separator character.
Parameters:
  path - The path to normalize. The normalize path.



Methods inherited from org.restlet.data.Reference
public static String decode(String toDecode)(Code)(Java Doc)
public static String decode(String toDecode, CharacterSet characterSet)(Code)(Java Doc)
public static String encode(String toEncode)(Code)(Java Doc)
public static String encode(String toEncode, CharacterSet characterSet)(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
public String getAuthority()(Code)(Java Doc)
public Reference getBaseRef()(Code)(Java Doc)
public String getFragment()(Code)(Java Doc)
public String getHierarchicalPart()(Code)(Java Doc)
public String getHostDomain()(Code)(Java Doc)
public String getHostIdentifier()(Code)(Java Doc)
public int getHostPort()(Code)(Java Doc)
public String getIdentifier()(Code)(Java Doc)
public String getLastSegment()(Code)(Java Doc)
public Reference getParentRef()(Code)(Java Doc)
public String getPath()(Code)(Java Doc)
public String getQuery()(Code)(Java Doc)
public Form getQueryAsForm()(Code)(Java Doc)
public Form getQueryAsForm(CharacterSet characterSet)(Code)(Java Doc)
public String getRelativePart()(Code)(Java Doc)
public Reference getRelativeRef()(Code)(Java Doc)
public Reference getRelativeRef(Reference base)(Code)(Java Doc)
public String getRemainingPart()(Code)(Java Doc)
public String getScheme()(Code)(Java Doc)
public Protocol getSchemeProtocol()(Code)(Java Doc)
public String getSchemeSpecificPart()(Code)(Java Doc)
public List<String> getSegments()(Code)(Java Doc)
public Reference getTargetRef()(Code)(Java Doc)
public String getUserInfo()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isAbsolute()(Code)(Java Doc)
public boolean isEquivalentTo(Reference ref)(Code)(Java Doc)
public boolean isHierarchical()(Code)(Java Doc)
public boolean isOpaque()(Code)(Java Doc)
public boolean isParent(Reference childRef)(Code)(Java Doc)
public boolean isRelative()(Code)(Java Doc)
public Reference normalize()(Code)(Java Doc)
public void setAuthority(String authority)(Code)(Java Doc)
public void setBaseRef(String baseUri)(Code)(Java Doc)
public void setBaseRef(Reference baseRef)(Code)(Java Doc)
public void setFragment(String fragment)(Code)(Java Doc)
public void setHostDomain(String domain)(Code)(Java Doc)
public void setHostPort(Integer port)(Code)(Java Doc)
public void setIdentifier(String identifier)(Code)(Java Doc)
public void setPath(String path)(Code)(Java Doc)
public void setProtocol(Protocol protocol)(Code)(Java Doc)
public void setQuery(String query)(Code)(Java Doc)
public void setRelativePart(String relativePart)(Code)(Java Doc)
public void setScheme(String scheme)(Code)(Java Doc)
public void setSchemeSpecificPart(String schemeSpecificPart)(Code)(Java Doc)
public void setSegments(List<String> segments)(Code)(Java Doc)
public void setUserInfo(String userInfo)(Code)(Java Doc)
public static String toString(String scheme, String hostName, Integer hostPort, String path, String query, String fragment)(Code)(Java Doc)
public static String toString(String relativePart, String query, String fragment)(Code)(Java Doc)
public static String toString(String scheme, String host, String path, String query, String fragment)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String toString(boolean query, boolean fragment)(Code)(Java Doc)

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.