|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--javax.naming.NamingException | +--javax.naming.ReferralException
ÀÌ abstract Ŭ·¡½º´Â LDAP v3 ¼¹ö¿¡ ÀÇÇØ µ¹·ÁÁÖ¾îÁö´Â °æ¿ìµîÀÇÂüÁ¶¿¡ ÀÀ´äÇØ »ý¼ºµÇ´Â ÂüÁ¶ ¿¹¿Ü¸¦ ³ªÅ¸³»´Âµ¥ »ç¿ëµË´Ï´Ù.
¼ºñ½º ÇÁ·Î¹ÙÀÌ´õ´Â getReferralInfo() ¿Í getReferralContext() ( ¹× ÀûÀýÇÑ constructor ¶Ç´Â ´ëÀÀÇÏ´Â ¡¸set¡¹¸Þ¼Òµå ¹× ±× ¾çÂÊ ¸ðµÎ)ÀÇ ±¸ÇöÀ» Á¦°øÇØ,ReferralException ÀÇ ¼ºê Ŭ·¡½º¸¦ Á¦°øÇÕ´Ï´Ù.
ReferralException ÀÇ »ç¿ë ¹æ¹ýÀ» ³ªÅ¸³»´Â ÄÚµù¿¹¸¦ ´ÙÀ½¿¡ ³ªÅ¸³À´Ï´Ù.
while (true) { try { bindings = ctx.listBindings(name); while (bindings.hasMore()) { b = bindings.next(); ... } break; } catch (ReferralException e) { ctx = e.getReferralContext(); } }
ReferralException ´Â abstract Ŭ·¡½ºÀÔ´Ï´Ù. °íÁ¤ ±¸Çö¿¡ ÀÇÇØ, ±× µ¿±â ¹× Á÷·ÄÈ ÇÁ·ÎÆÛƼ°¡ °áÁ¤µË´Ï´Ù.
getReferralContext() ¸Þ¼Òµå¿¡°Ô °Ç³×Áö´Â ȯ°æ ÆÄ¶ó¹ÌÅʹ ȣÃâÇØ ¿·ÀÌ ¼ÒÀ¯ÇÕ´Ï´Ù. ¼ºñ½º ÇÁ·Î¹ÙÀÌ´õ´Â ¿ÀºêÁ§Æ®¸¦ º¯°æÇϰųª ±× ¿ÀºêÁ§Æ®¿¡ ´ëÇÑ ÂüÁ¶¸¦ º¸°ü À¯ÁöÇÕ´Ï´Ù¸¸, ±× º¹Á¦¿¡ ´ëÇÑ ÂüÁ¶´Â º¸°ü À¯ÁöÇÕ´Ï´Ù.
ÇʵåÀÇ °³¿ä |
Ŭ·¡½º javax.naming. NamingException ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
remainingName , resolvedName , resolvedObj , rootException |
»ý¼ºÀÚÀÇ °³¿ä | |
protected |
ReferralException ()
ReferralException ÀÇ ÀνºÅϽº¸¦ »õ·Ó°Ô ±¸ÃàÇÕ´Ï´Ù. |
protected |
ReferralException (String explanation)
ÁöÁ¤µÈ ¼³¸íÀ» »ç¿ëÇØ, ReferralException ÀÇ ÀνºÅϽº¸¦ »õ·Ó°Ô ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
abstract Context |
getReferralContext ()
¸Þ¼Òµå¸¦ °è¼ÓÇÏ´Â ½ÃÁ¡ÀÇ ¹®¸ÆÀ» ²¨³À´Ï´Ù. |
abstract Context |
getReferralContext (Hashtable env)
ȯ°æ ÇÁ·ÎÆÛƼ¸¦ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸¦ °è¼ÓÇÏ´Â ½ÃÁ¡ÀÇ ¹®¸ÆÀ» ²¨³À´Ï´Ù. |
abstract Object |
getReferralInfo ()
ÀÌ ÂüÁ¶¿¡ °ü·ÃÇÏ´Â Á¤º¸ (URL µî)¸¦ ²¨³À´Ï´Ù. |
abstract void |
retryReferral ()
ÇöÀç ó¸®ÁßÀÇ ÂüÁ¶¸¦ ²¨³À´Ï´Ù. |
abstract boolean |
skipReferral ()
󸮵Ǵ ÂüÁ¶¸¦ ÆÄ±âÇÕ´Ï´Ù. |
Ŭ·¡½º javax.naming. NamingException ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
appendRemainingComponent , appendRemainingName , getExplanation , getRemainingName , getResolvedName , getResolvedObj , getRootCause , printStackTrace , printStackTrace , printStackTrace , setRemainingName , setResolvedName , setResolvedObj , setRootCause , toString , toString |
Ŭ·¡½º java.lang. Throwable ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
fillInStackTrace , getCause , getLocalizedMessage , getMessage , getStackTrace , initCause , setStackTrace |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
»ý¼ºÀÚÀÇ »ó¼¼ |
protected ReferralException(String explanation)
explanation
- ÀÌ ¿¹¿Ü¿¡ °üÇÑ Ãß°¡ »ó¼¼. null ¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ´ÂThrowable.getMessage()
protected ReferralException()
¸Þ¼ÒµåÀÇ »ó¼¼ |
public abstract Object getReferralInfo()
public abstract Context getReferralContext() throws NamingException
Á¶ÀÛÀ» °è¼ÓÇÏ·Á¸é , Ŭ¶óÀÌ¾ðÆ® ÇÁ·Î±×·¥À¸·Î, ¿øÀÇ È£Ãâ°ú °°Àº Àμö¸¦ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸¦ ÀçÂ÷ È£ÃâÇÕ´Ï´Ù.
NamingException
- ³×ÀÌ¹Ö ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì. retryReferral() ¶Ç´Â skipReferral() ÀÇ ¾î´À ÂÊÀÎÁö¸¦ È£ÃâÇØ, ÂüÁ¶ÀÇ Ã³¸®¸¦ °è¼ÓÇÕ´Ï´Ù. public abstract Context getReferralContext(Hashtable env) throws NamingException
ÂüÁ¶ ¹®¸ÆÀº ȯ°æ ÇÁ·ÎÆÛƼ·Î¼ env ¸¦ »ç¿ëÇØ ÀÛ¼ºµË´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ÄÝÃøÀÌ ÂüÁ¶ ¹®¸Æ¿¡ ´Ù¸¥ ȯ°æ ÇÁ·ÎÆÛƼ¸¦ »ç¿ëÇÒ Çʿ䰡 ÀÖ´Â °æ¿ì¿¡ Àμö ¾øÀ½ÀÇ overload µÈ Çü½Ä ´ë½Å¿¡ »ç¿ëµË´Ï´Ù. ÀÌ ¹æ¹ýÀ» ½ÇÇàÇÒ Çʿ䰡 ÀÖ´Â °ÍÀº ÂüÁ¶ ¹®¸ÆÀ» ÀÛ¼ºÇϱâ À§Çؼ, ÂüÁ¶µÈ ¼¹ö¿¡ ´ëÇØ¼ ´Ù¸¥ ÀÎÁõ Á¤º¸¸¦ Á¦°øÇÒ Çʿ䰡 ÀÖ´Â °æ¿ìÀÔ´Ï´Ù.
Á¶ÀÛÀ» °è¼ÓÇÏ·Á¸é , Ŭ¶óÀÌ¾ðÆ® ÇÁ·Î±×·¥À¸·Î, ¿øÀÇ È£Ãâ°ú °°Àº Àμö¸¦ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸¦ ÀçÂ÷ È£ÃâÇÕ´Ï´Ù.
env
- null ÀÇ °¡´É¼ºÀÌ ÀÖ´Â ÂüÁ¶ ¹®¸ÆÀ» ²¨³¾ ¶§ »ç¿ëÇϴ ȯ°æ. null ÀÇ °æ¿ì´Â ȯ°æ ÇÁ·ÎÆÛƼ´Â »ç¿ëµÇÁö ¾Ê½À´Ï´Ù.
NamingException
- ³×ÀÌ¹Ö ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì. retryReferral() ¶Ç´Â skipReferral() ÀÇ ¾î´À ÂÊÀÎÁö¸¦ È£ÃâÇØ, ÂüÁ¶ÀÇ Ã³¸®¸¦ °è¼ÓÇÕ´Ï´Ù. public abstract boolean skipReferral()
getReferralContext
¸¦ È£ÃâÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. Åë»óÀÇ »ç¿ë ÆÐÅÏÀ» ³ªÅ¸³»´Â Äڵ带 ´ÙÀ½¿¡ ³ªÅ¸³À´Ï´Ù.
} catch (ReferralException e) { if (! shallIFollow(e.getReferralInfo())) { if (! e.skipReferral()) { return; } } ctx = e.getReferralContext(); }
public abstract void retryReferral()
getReferralContext
¸¦ È£ÃâÇÕ´Ï´Ù. Åë»óÀÇ »ç¿ë¹ýÆÐÅÏÀ» ³ªÅ¸³»´Â Äڵ带 ´ÙÀ½¿¡ ³ªÅ¸³À´Ï´Ù.
} catch (ReferralException e) { while (true) { try { ctx = e.getReferralContext(env); break; } catch (NamingException ne) { if (! shallIRetry()) { return; } // modify environment properties (env), if necessary e.retryReferral(); } } }
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.