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


java.lang.Object
   org.restlet.util.Engine
      com.noelios.restlet.Engine

Engine
public class Engine extends org.restlet.util.Engine (Code)
Restlet factory supported by the engine.
author:
   Jerome Louvel (contact@noelios.com)


Field Summary
final public static  StringVERSION
     Complete version.
final public static  StringVERSION_HEADER
     Complete version header.

Constructor Summary
public  Engine()
     Constructor that will automatically attempt to discover connectors.
public  Engine(boolean discoverConnectors)
     Constructor.

Method Summary
public  ResourcecreateDirectoryResource(Directory handler, Request request, Response response)
     Creates a directory resource.
Parameters:
  handler - The parent directory handler.
Parameters:
  request - The request to handle.
Parameters:
  response - The response to return.
public  HelpercreateHelper(Application application, Context parentContext)
     Creates a new helper for a given component.
Parameters:
  application - The application to help.
Parameters:
  parentContext - The parent context, typically the component's context.
public  HelpercreateHelper(Client client)
     Creates a new helper for a given client connector.
Parameters:
  client - The client to help.
public  HelpercreateHelper(Component component)
     Creates a new helper for a given component.
Parameters:
  component - The component to help.
public  HelpercreateHelper(Server server)
     Creates a new helper for a given server connector.
Parameters:
  server - The server to help.
public static  intgetJavaMajorVersion()
     Parses the "java.version" system property and returns the first digit of the version number of the Java Runtime Environment (e.g.
public static  intgetJavaMinorVersion()
     Parses the "java.version" system property and returns the second digit of the version number of the Java Runtime Environment (e.g.
public static  intgetJavaUpdateVersion()
     Parses the "java.version" system property and returns the update release number of the Java Runtime Environment (e.g.
public  VariantgetPreferredVariant(ClientInfo client, List<Variant> variants, Language defaultLanguage)
     Returns the preferred variant representation for a given resource according the the client preferences.
Parameters:
  client - The client preferences.
Parameters:
  variants - The list of variants to compare.
public  List<ConnectorHelper>getRegisteredClients()
     Returns the list of available client connectors.
public  List<ConnectorHelper>getRegisteredServers()
     Returns the list of available server connectors.
public  voidparse(Logger logger, Form form, Representation webForm)
     Parses an URL encoded Web form.
public  voidparse(Logger logger, Form form, String queryString, CharacterSet characterSet)
     Parses an URL encoded query string into a given form.
public static  voidregister()
     Registers a new Noelios Restlet Engine.

Field Detail
VERSION
final public static String VERSION(Code)
Complete version.



VERSION_HEADER
final public static String VERSION_HEADER(Code)
Complete version header.




Constructor Detail
Engine
public Engine()(Code)
Constructor that will automatically attempt to discover connectors.



Engine
public Engine(boolean discoverConnectors)(Code)
Constructor.
Parameters:
  discoverConnectors - True if connectors should be automatically discovered.




Method Detail
createDirectoryResource
public Resource createDirectoryResource(Directory handler, Request request, Response response) throws IOException(Code)
Creates a directory resource.
Parameters:
  handler - The parent directory handler.
Parameters:
  request - The request to handle.
Parameters:
  response - The response to return. A new directory resource.
throws:
  IOException -



createHelper
public Helper createHelper(Application application, Context parentContext)(Code)
Creates a new helper for a given component.
Parameters:
  application - The application to help.
Parameters:
  parentContext - The parent context, typically the component's context. The new helper.



createHelper
public Helper createHelper(Client client)(Code)
Creates a new helper for a given client connector.
Parameters:
  client - The client to help. The new helper.



createHelper
public Helper createHelper(Component component)(Code)
Creates a new helper for a given component.
Parameters:
  component - The component to help. The new helper.



createHelper
public Helper createHelper(Server server)(Code)
Creates a new helper for a given server connector.
Parameters:
  server - The server to help. The new helper.



getJavaMajorVersion
public static int getJavaMajorVersion()(Code)
Parses the "java.version" system property and returns the first digit of the version number of the Java Runtime Environment (e.g. "1" for "1.3.0").
See Also:    Official * Java versioning The major version number of the Java Runtime Environment.



getJavaMinorVersion
public static int getJavaMinorVersion()(Code)
Parses the "java.version" system property and returns the second digit of the version number of the Java Runtime Environment (e.g. "3" for "1.3.0").
See Also:    Official * Java versioning The minor version number of the Java Runtime Environment.



getJavaUpdateVersion
public static int getJavaUpdateVersion()(Code)
Parses the "java.version" system property and returns the update release number of the Java Runtime Environment (e.g. "10" for "1.3.0_10").
See Also:    Official * Java versioning The release number of the Java Runtime Environment or 0 if itdoes not exist.



getPreferredVariant
public Variant getPreferredVariant(ClientInfo client, List<Variant> variants, Language defaultLanguage)(Code)
Returns the preferred variant representation for a given resource according the the client preferences.
Parameters:
  client - The client preferences.
Parameters:
  variants - The list of variants to compare. The preferred variant.
See Also:    Apache * content negotiation algorithm



getRegisteredClients
public List<ConnectorHelper> getRegisteredClients()(Code)
Returns the list of available client connectors. The list of available client connectors.



getRegisteredServers
public List<ConnectorHelper> getRegisteredServers()(Code)
Returns the list of available server connectors. The list of available server connectors.



parse
public void parse(Logger logger, Form form, Representation webForm)(Code)
Parses an URL encoded Web form.
Parameters:
  logger - The logger to use.
Parameters:
  form - The target form.
Parameters:
  webForm - The posted form.



parse
public void parse(Logger logger, Form form, String queryString, CharacterSet characterSet)(Code)
Parses an URL encoded query string into a given form.
Parameters:
  logger - The logger to use.
Parameters:
  form - The target form.
Parameters:
  queryString - Query string.
Parameters:
  characterSet - The supported character encoding.



register
public static void register()(Code)
Registers a new Noelios Restlet Engine.



Fields inherited from org.restlet.util.Engine
final public static String MAJOR_NUMBER(Code)(Java Doc)
final public static String MINOR_NUMBER(Code)(Java Doc)
final public static String RELEASE_NUMBER(Code)(Java Doc)
final public static String VERSION(Code)(Java Doc)

Methods inherited from org.restlet.util.Engine
abstract public Resource createDirectoryResource(Directory handler, Request request, Response response) throws IOException(Code)(Java Doc)
abstract public Helper createHelper(Application application, Context parentContext)(Code)(Java Doc)
abstract public Helper createHelper(Client client)(Code)(Java Doc)
abstract public Helper createHelper(Component component)(Code)(Java Doc)
abstract public Helper createHelper(Server server)(Code)(Java Doc)
public static ClassLoader getClassLoader()(Code)(Java Doc)
public static Engine getInstance()(Code)(Java Doc)
abstract public Variant getPreferredVariant(ClientInfo client, List<Variant> variants, Language defaultLanguage)(Code)(Java Doc)
public static int hashCode(Object... objects)(Code)(Java Doc)
abstract public void parse(Logger logger, Form form, Representation representation)(Code)(Java Doc)
abstract public void parse(Logger logger, Form form, String queryString, CharacterSet characterSet)(Code)(Java Doc)
public static void setClassLoader(ClassLoader newClassloader)(Code)(Java Doc)
public static void setInstance(Engine engine)(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.