|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.naming.NamingException
javax.naming.ReferralException
public abstract class ReferralException
ÀÌ abstract Ŭ·¡½º´Â LDAP v3 ¼¹ö¿¡ ÀÇÇØ ¸®ÅϵÈÀÎ °æ¿ìµîÀÇ ¡¸ÂüÁ¶¡¹¿¡ ÀÀ´äÇØ »ý¼ºµÇ´Â ÂüÁ¶ ¿¹¿Ü¸¦ ³ªÅ¸³»´Âµ¥ »ç¿ëµË´Ï´Ù.
¼ºñ½º ÇÁ·Î¹ÙÀÌ´õ´Â getReferralInfo()¿Í getReferralContext() ( ¹× ÀûÀýÇÑ »ý¼ºÀÚ ¶Ç´Â ´ëÀÀÇÏ´Â 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,
getCause,
getExplanation,
getRemainingName,
getResolvedName,
getResolvedObj,
getRootCause,
initCause,
setRemainingName,
setResolvedName,
setResolvedObj,
setRootCause,
toString,
toString |
Ŭ·¡½º java.lang. Throwable ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
fillInStackTrace,
getLocalizedMessage,
getMessage,
getStackTrace,
printStackTrace,
printStackTrace,
printStackTrace,
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 Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.