Java Doc for CannotProceedException.java in  » Apache-Harmony-Java-SE » javax-package » javax » naming » 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 » javax package » javax.naming 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         javax.naming.NamingException
            javax.naming.CannotProceedException

CannotProceedException
public class CannotProceedException extends NamingException (Code)
Naming operations throw a CannotProceedException when the service provider context implementation is resolving a name but reaches a name component that does not belong to the namespace of the current context.

The service provider is able to create a CannotProceedException object and use methods on that object (including baseclass methods) to provide full details of how far name resolution had progressed.

Typically, the methods used might include:

  • setEnvironment to record the environment from the current context
  • setAltNameCtx to record the current context
  • setResolvedObj to record the resolved object for the next naming system
  • setAltName to record the name of the resolved object
  • setRemainingName to record the remaining unresolved name

If the incomplete naming operation is rename, the service provider should also use the setRemainingNewName method to record the unresolved part of the new name.

The service provider can pass the CannotProceedException as a parameter to NamingManager methods such as getContinuationContext to attempt to locate another service provider for the next naming system. If successful, that service provider can return a new Context object on which the naming operation can proceed further. If unsuccessful, the CannotProceedException can be thrown by the service provider so that the JNDI application can handle it and take appropriate action.

Multithreaded access to a single CannotProceedException instance is only safe when client code uses appropriate synchronization and locking.



Field Summary
protected  NamealtName
     Contains a composite name that is the name of the resolved object which is relative to the context in altNameCtx.
protected  ContextaltNameCtx
     Contains the context to which the altName field is relative.
protected  Hashtableenvironment
     Contains the environment of the context in which name resolution for the naming operation could not proceed further.
protected  NameremainingNewName
     Contains a composite name that is the unresolved part of the new name that was specified in a Context.rename operation and may be used to continue the rename operation.

Constructor Summary
public  CannotProceedException()
     Constructs a CannotProceedException object.
public  CannotProceedException(String s)
     Constructs a CannotProceedException object with an optionally specified String parameter containing a detailed explanation message.

Method Summary
public  NamegetAltName()
     Retrieves the value of the altName field.
public  ContextgetAltNameCtx()
     Retrieves the value of the altNameCtx field.
public  HashtablegetEnvironment()
     Retrieves the value of the protected field environment which may be null.
public  NamegetRemainingNewName()
     Retrieves the value of the remainingNewName field.
public  voidsetAltName(Name name)
     Modifies the value of the altName field to the specified Name parameter which is a composite name and may be null.
public  voidsetAltNameCtx(Context context)
     Modifies the value of the altNameCtx field to the specified Context parameter which may be null.
public  voidsetEnvironment(Hashtable hashtable)
     Sets the value of the protected field environment from the environment parameter which may be null.
public  voidsetRemainingNewName(Name name)
     Modifies the value of the remainingNewName field to the specified parameter which may be null.

Field Detail
altName
protected Name altName(Code)
Contains a composite name that is the name of the resolved object which is relative to the context in altNameCtx. This field may be null and is initially null. This field should be accessed and modified using only getAltName and setAltName.



altNameCtx
protected Context altNameCtx(Code)
Contains the context to which the altName field is relative. This field may be null and is initially null. A null value implies the default initial context. This field should be accessed and modified using only getAltNameCtx and setAltNameCtx.



environment
protected Hashtable environment(Code)
Contains the environment of the context in which name resolution for the naming operation could not proceed further. Initially null. Should only be manipulated using getEnvironment and setEnvironment methods.



remainingNewName
protected Name remainingNewName(Code)
Contains a composite name that is the unresolved part of the new name that was specified in a Context.rename operation and may be used to continue the rename operation. This field may be null and is initially null. This field should be accessed and modified using only getRemainingNewName and setRemainingNewName.




Constructor Detail
CannotProceedException
public CannotProceedException()(Code)
Constructs a CannotProceedException object. All unspecified fields are initialized to null.



CannotProceedException
public CannotProceedException(String s)(Code)
Constructs a CannotProceedException object with an optionally specified String parameter containing a detailed explanation message. The String parameter may be null. All unspecified fields are initialized to null.
Parameters:
  s - The detailed explanation message for the exception. It may benull.




Method Detail
getAltName
public Name getAltName()(Code)
Retrieves the value of the altName field. the value of the altName field.
See Also:   javax.naming.spi.ObjectFactory.getObjectInstance(ObjectNameContextHashtable)



getAltNameCtx
public Context getAltNameCtx()(Code)
Retrieves the value of the altNameCtx field. the value of the altNameCtx field.
See Also:   javax.naming.spi.ObjectFactory.getObjectInstance(ObjectNameContextHashtable)



getEnvironment
public Hashtable getEnvironment()(Code)
Retrieves the value of the protected field environment which may be null. the value of the protected field environment whichmay be null.



getRemainingNewName
public Name getRemainingNewName()(Code)
Retrieves the value of the remainingNewName field. the value of the remainingNewName field.



setAltName
public void setAltName(Name name)(Code)
Modifies the value of the altName field to the specified Name parameter which is a composite name and may be null.
Parameters:
  name - the name to set.



setAltNameCtx
public void setAltNameCtx(Context context)(Code)
Modifies the value of the altNameCtx field to the specified Context parameter which may be null.
Parameters:
  context - the new context to set.



setEnvironment
public void setEnvironment(Hashtable hashtable)(Code)
Sets the value of the protected field environment from the environment parameter which may be null.
Parameters:
  hashtable - the new environment to set.



setRemainingNewName
public void setRemainingNewName(Name name)(Code)
Modifies the value of the remainingNewName field to the specified parameter which may be null. But otherwise is a composite name. When needing to specify other names, first convert them into a composite name with a single component, and then specify that composite name when invoking this method.

When a non-null name is specified, a clone of the composite name is stored in the remainingNewName field that becomes independent of the specified name.


Parameters:
  name - the new name to set.



Fields inherited from javax.naming.NamingException
protected Name remainingName(Code)(Java Doc)
protected Name resolvedName(Code)(Java Doc)
protected Object resolvedObj(Code)(Java Doc)
protected Throwable rootException(Code)(Java Doc)

Methods inherited from javax.naming.NamingException
public void appendRemainingComponent(String s)(Code)(Java Doc)
public void appendRemainingName(Name n)(Code)(Java Doc)
public Throwable getCause()(Code)(Java Doc)
public String getExplanation()(Code)(Java Doc)
public Name getRemainingName()(Code)(Java Doc)
public Name getResolvedName()(Code)(Java Doc)
public Object getResolvedObj()(Code)(Java Doc)
public Throwable getRootCause()(Code)(Java Doc)
public Throwable initCause(Throwable cause)(Code)(Java Doc)
public void setRemainingName(Name name)(Code)(Java Doc)
public void setResolvedName(Name name)(Code)(Java Doc)
public void setResolvedObj(Object o)(Code)(Java Doc)
public void setRootCause(Throwable t)(Code)(Java Doc)
public String toString(boolean flag)(Code)(Java Doc)
public String toString()(Code)(Java Doc)


Methods inherited from java.lang.Throwable
native public synchronized Throwable fillInStackTrace()(Code)(Java Doc)
public Throwable getCause()(Code)(Java Doc)
public String getLocalizedMessage()(Code)(Java Doc)
public String getMessage()(Code)(Java Doc)
public StackTraceElement[] getStackTrace()(Code)(Java Doc)
public synchronized Throwable initCause(Throwable cause)(Code)(Java Doc)
public void printStackTrace()(Code)(Java Doc)
public void printStackTrace(PrintStream s)(Code)(Java Doc)
public void printStackTrace(PrintWriter s)(Code)(Java Doc)
public void setStackTrace(StackTraceElement[] stackTrace)(Code)(Java Doc)
public String toString()(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.