Java Doc for RegistryContext.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » jndi » provider » rmi » registry » 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 » Apache Harmony Java SE » org package » org.apache.harmony.jndi.provider.rmi.registry 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.harmony.jndi.provider.rmi.registry.RegistryContext

RegistryContext
public class RegistryContext implements Context,Referenceable(Code)
RMI Registry context implementation.


Field Summary
final public static  StringADDRESS_TYPE
     Address type for RMI context references.
final public static  StringCLIENT_SOCKET_FACTORY
     System property used to supply the name of the RMIClientSocketFactory to use.
final public static  StringRMI_URL_PREFIX
     Prefix for RMI URLs.
final public static  StringSECURITY_MANAGER
     System property used to state whether the RMI security manager should be installed.
protected  RMIClientSocketFactorycsf
     RMI client socket factory, stored to produce copies of this context.
protected  Hashtable<Object, Object>environment
     Local environment.
protected  Stringhost
     Registry host, stored to produce copies of this context.
final protected static  NameParsernameParser
     Name parser.
protected  intport
     Registry port, stored to produce copies of this context.
protected  Referencereference
     Reference for this context, initialized by RegistryContextFactory.getObjectInstance(ObjectNameContextHashtable) .
protected  Registryregistry
     RMI Registry.

Constructor Summary
public  RegistryContext(String host, int port, Hashtable environment)
     Creates RMI registry context bound to RMI Registry operating on the specified host and port.
Parameters:
  host - Host.
protected  RegistryContext(RegistryContext context)
     Creates RMI registry context by copying the specified context.

Method Summary
public  ObjectaddToEnvironment(String propName, Object propVal)
    
public  voidbind(Name name, Object obj)
    
public  voidbind(String name, Object obj)
    
protected  RegistryContextcloneContext()
     Returns a clone of this context.
public  voidclose()
    
public  NamecomposeName(Name name, Name prefix)
    
public  StringcomposeName(String name, String prefix)
    
public  ContextcreateSubcontext(Name name)
    
public  ContextcreateSubcontext(String name)
    
public  voiddestroySubcontext(Name name)
    
public  voiddestroySubcontext(String name)
    
public  HashtablegetEnvironment()
    
protected  StringgetMyComponents(Name name)
     Verifies that the specified name is valid for this context and returns string representation of that name for this provider. Returns returns first component of a CompositeName or a string representation of a name otherwise.
Parameters:
  name - Name to verify.
public  StringgetNameInNamespace()
    
public  NameParsergetNameParser(Name name)
    
public  NameParsergetNameParser(String name)
    
protected  ObjectgetObjectInstance(String name, Remote remote)
     Processes object returned from .
public  ReferencegetReference()
    
protected  RegistrygetRegistry(String host, int port, RMIClientSocketFactory csf)
     Creates reference to the located on the specified host and port.
Parameters:
  host - Host.
protected  RemotegetStateToBind(String name, Object obj)
     Prepares object for binding.
protected  voidinstallSecurityManager()
     Installs RMISecurityManager if it is not already installed.
public  NamingEnumeration<NameClassPair>list(Name name)
    
public  NamingEnumeration<NameClassPair>list(String name)
    
public  NamingEnumeration<Binding>listBindings(Name name)
    
public  NamingEnumeration<Binding>listBindings(String name)
    
public  Objectlookup(Name name)
    
public  Objectlookup(String name)
    
public  ObjectlookupLink(Name name)
    
public  ObjectlookupLink(String name)
    
protected  NamingExceptionnewNamingException(Throwable e)
     Prepares a new NamingException wrapping the specified RemoteException source exception.
public  voidrebind(Name name, Object obj)
    
public  voidrebind(String name, Object obj)
    
public  ObjectremoveFromEnvironment(String propName)
    
public  voidrename(Name oldName, Name newName)
    
public  voidrename(String oldName, String newName)
    
protected  voidsetReference(Reference reference)
     Initializes reference for this context instance.
public  voidunbind(Name name)
    
public  voidunbind(String name)
    

Field Detail
ADDRESS_TYPE
final public static String ADDRESS_TYPE(Code)
Address type for RMI context references.



CLIENT_SOCKET_FACTORY
final public static String CLIENT_SOCKET_FACTORY(Code)
System property used to supply the name of the RMIClientSocketFactory to use.



RMI_URL_PREFIX
final public static String RMI_URL_PREFIX(Code)
Prefix for RMI URLs.



SECURITY_MANAGER
final public static String SECURITY_MANAGER(Code)
System property used to state whether the RMI security manager should be installed.



csf
protected RMIClientSocketFactory csf(Code)
RMI client socket factory, stored to produce copies of this context.



environment
protected Hashtable<Object, Object> environment(Code)
Local environment.



host
protected String host(Code)
Registry host, stored to produce copies of this context.



nameParser
final protected static NameParser nameParser(Code)
Name parser.



port
protected int port(Code)
Registry port, stored to produce copies of this context.



reference
protected Reference reference(Code)
Reference for this context, initialized by RegistryContextFactory.getObjectInstance(ObjectNameContextHashtable) .



registry
protected Registry registry(Code)
RMI Registry.




Constructor Detail
RegistryContext
public RegistryContext(String host, int port, Hashtable environment) throws NamingException(Code)
Creates RMI registry context bound to RMI Registry operating on the specified host and port.
Parameters:
  host - Host. If null, localhost is assumed.
Parameters:
  port - Port. If 0, default registry port (1099)is assumed.
Parameters:
  environment - Context environment, may be null which denotesempty environment.
throws:
  NamingException - If some naming error occurs.



RegistryContext
protected RegistryContext(RegistryContext context)(Code)
Creates RMI registry context by copying the specified context.
Parameters:
  context - Context to copy.




Method Detail
addToEnvironment
public Object addToEnvironment(String propName, Object propVal) throws NoPermissionException(Code)



bind
public void bind(Name name, Object obj) throws NamingException(Code)



bind
public void bind(String name, Object obj) throws NamingException(Code)



cloneContext
protected RegistryContext cloneContext()(Code)
Returns a clone of this context. Clone of this context.



close
public void close()(Code)



composeName
public Name composeName(Name name, Name prefix) throws NamingException(Code)



composeName
public String composeName(String name, String prefix) throws NamingException(Code)



createSubcontext
public Context createSubcontext(Name name) throws OperationNotSupportedException(Code)



createSubcontext
public Context createSubcontext(String name) throws NamingException(Code)



destroySubcontext
public void destroySubcontext(Name name) throws OperationNotSupportedException(Code)



destroySubcontext
public void destroySubcontext(String name) throws NamingException(Code)



getEnvironment
public Hashtable getEnvironment()(Code)



getMyComponents
protected String getMyComponents(Name name)(Code)
Verifies that the specified name is valid for this context and returns string representation of that name for this provider. Returns returns first component of a CompositeName or a string representation of a name otherwise.
Parameters:
  name - Name to verify. CompositeName.get(int) CompositeName#get(0) ifname is a CompositeName,Object.toString name.toString() otherwise.



getNameInNamespace
public String getNameInNamespace()(Code)



getNameParser
public NameParser getNameParser(Name name)(Code)



getNameParser
public NameParser getNameParser(String name) throws NamingException(Code)



getObjectInstance
protected Object getObjectInstance(String name, Remote remote) throws NamingException, RemoteException(Code)
Processes object returned from . It unwraps RemoteReference if necessary and calls NamingManager.getObjectInstance(ObjectNameContextHashtable) .
Parameters:
  name - Object name.
Parameters:
  remote - Returned object. Processed object.
throws:
  NamingException - If some naming error occurs.
throws:
  RemoteException - If remote exception occurs.



getReference
public Reference getReference() throws NamingException(Code)



getRegistry
protected Registry getRegistry(String host, int port, RMIClientSocketFactory csf) throws NamingException(Code)
Creates reference to the located on the specified host and port.
Parameters:
  host - Host. If null, localhost is assumed. May notbe null if csf is notnull.
Parameters:
  port - Port. If 0, default registry port (1099)is assumed. May not be 0 if csfis not null.
Parameters:
  csf - RMIClientSocketFactory that is used to create socketconnections to the registry. If null, defaultsocket factory is used. SeeLocateRegistry.getRegistry(StringintRMIClientSocketFactory). Registry reference.
throws:
  NamingException - If getting registry failed.



getStateToBind
protected Remote getStateToBind(String name, Object obj) throws NamingException, RemoteException(Code)
Prepares object for binding. It calls NamingManager.getStateToBind(ObjectNameContextHashtable) and makes the resulting object Remote by wrapping it into RemoteReferenceWrapper .
Parameters:
  name - Object name.
Parameters:
  obj - Object to prepare for binding. Object ready for binding.
throws:
  NamingException - If some naming error occurs.
throws:
  RemoteException - If remote exception occurs.



installSecurityManager
protected void installSecurityManager() throws NoPermissionException(Code)
Installs RMISecurityManager if it is not already installed.
throws:
  NoPermissionException - If security manager other than RMISecurityManager isinstalled and prohibits installing a new security manager.



list
public NamingEnumeration<NameClassPair> list(Name name) throws NamingException(Code)



list
public NamingEnumeration<NameClassPair> list(String name) throws NamingException(Code)



listBindings
public NamingEnumeration<Binding> listBindings(Name name) throws NamingException(Code)



listBindings
public NamingEnumeration<Binding> listBindings(String name) throws NamingException(Code)



lookup
public Object lookup(Name name) throws NamingException(Code)



lookup
public Object lookup(String name) throws NamingException(Code)



lookupLink
public Object lookupLink(Name name) throws NamingException(Code)



lookupLink
public Object lookupLink(String name) throws NamingException(Code)



newNamingException
protected NamingException newNamingException(Throwable e)(Code)
Prepares a new NamingException wrapping the specified RemoteException source exception. Source exception becomes a of the generated exception. The particular subclass of NamingException returned depends on the particular subclass of source RemoteException . If source exception is not of a specific class or is not a RemoteException or is null, then plain NamingException is returned. Note: Throwable.fillInStackTrace should be called before throwing the generated exception, to provide the proper (not including this method) stack trace for the exception. Example of use: try { ... } catch (RemoteException e) { throw (NamingException) newNamingException(e).fillInStackTrace(); }
Parameters:
  e - Source RemoteException. Generated NamingException exception.



rebind
public void rebind(Name name, Object obj) throws NamingException(Code)



rebind
public void rebind(String name, Object obj) throws NamingException(Code)



removeFromEnvironment
public Object removeFromEnvironment(String propName)(Code)



rename
public void rename(Name oldName, Name newName) throws NamingException(Code)



rename
public void rename(String oldName, String newName) throws NamingException(Code)



setReference
protected void setReference(Reference reference)(Code)
Initializes reference for this context instance. Called by RegistryContextFactory.getObjectInstance(ObjectNameContextHashtable) .
Parameters:
  reference - Reference for this context instance.



unbind
public void unbind(Name name) throws NamingException(Code)



unbind
public void unbind(String name) throws NamingException(Code)



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)

ww__w_.j_a___v___a__2s__.c__o__m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.