JavaTM 2 Platform
Standard Ed. 5.0

org.omg.PortableInterceptor
ÀÎÅÍÆäÀ̽º ServerRequestInfoOperations

¸ðµç ½´ÆÛ ÀÎÅÍÆäÀ̽º:
RequestInfoOperations
¾Ë·ÁÁø ¼­ºê ÀÎÅÍÆäÀ̽º ¸ñ·Ï :
ServerRequestInfo

public interface ServerRequestInfoOperations
extends RequestInfoOperations

¼­¹öÃøÀÇ ¿ä±¸ ÀΟ¼¼ÇÁŸ¸¦ ¾×¼¼½º ÇÒ ¼ö ÀÖ´Â ¿ä±¸ Á¤º¸ÀÔ´Ï´Ù.

ServerRequestInfo¿¡ ´ëÇÑ ÀϺÎÀÇ ¼Ó¼ºÀ̳ª Á¶ÀÛÀº ¸ðµç Â÷´ÜÁ¡À¸·Î½á À¯È¿ÇÏ´Ù¶ó°í´Â ÇÑÁ¤ÇÏÁö ¾Ê½À´Ï´Ù. ´ÙÀ½ÀÇ °Ñ(Ç¥)¿¡ °¢ ¼Ó¼º ¶Ç´Â Á¶ÀÛÀÇ À¯È¿¼ºÀ» ³ªÅ¸³À´Ï´Ù. À¯È¿ÇÏÁö ¾ÊÀº ¼Ó¼ºÀ̳ª Á¶ÀÛ¿¡ ¾×¼¼½º ÇÏ·Á°í Çϸé, Ç¥ÁØ ¸¶ÀÌ³Ê ÄÚµå 14°¡ ¼³Á¤µÈ BAD_INV_ORDER°¡ ¹ß»ý µË´Ï´Ù.

  receive_request_
service_contexts
receive_request send_reply send_exception send_other
RequestInfo ·ÎºÎÅÍ »ó¼ÓµÈ´Ù:

request_id

³× ³× ³× ³× ³×

operation

³× ³× ³× ³× ³×

arguments

¾Æ´Ï¿À ³×1 ³× ¾Æ´Ï¿À2 ¾Æ´Ï¿À2

exceptions

¾Æ´Ï¿À ³× ³× ³× ³×

contexts

¾Æ´Ï¿À ³× ³× ³× ³×

operation_context

¾Æ´Ï¿À ³× ³× ¾Æ´Ï¿À ¾Æ´Ï¿À

result

¾Æ´Ï¿À ¾Æ´Ï¿À ³× ¾Æ´Ï¿À ¾Æ´Ï¿À

response_expected

³× ³× ³× ³× ³×

sync_scope

³× ³× ³× ³× ³×
request_id ³× ³× ³× ³× ³×
operation ³× ³× ³× ³× ³×
arguments ¾Æ´Ï¿À ³×1³× ¾Æ´Ï¿À2 ¾Æ´Ï¿À2
exceptions ¾Æ´Ï¿À ³× ³× ³× ³×
contexts ¾Æ´Ï¿À ³× ³× ³× ³×
operation_context ¾Æ´Ï¿À ³× ³× ¾Æ´Ï¿À ¾Æ´Ï¿À
result ¾Æ´Ï¿À ¾Æ´Ï¿À ³× ¾Æ´Ï¿À ¾Æ´Ï¿À
response_expected ³× ³× ³× ³× ³×
sync_scope ³× ³× ³× ³× ³×
reply_status ¾Æ´Ï¿À ¾Æ´Ï¿À ³× ³× ³×
forward_reference ¾Æ´Ï¿À ¾Æ´Ï¿À ¾Æ´Ï¿À ¾Æ´Ï¿À ³×2
get_slot ³× ³× ³× ³× ³×
get_request_service_context ³× ¾Æ´Ï¿À ³× ³× ³×
get_reply_service_context ¾Æ´Ï¿À ¾Æ´Ï¿À ³× ³× ³×
ServerRequestInfo °íÀ¯:
sending_exception ¾Æ´Ï¿À ¾Æ´Ï¿À ¾Æ´Ï¿À ³× ¾Æ´Ï¿À
object_id ¾Æ´Ï¿À ³× ³× ³×3 ³×3
adapter_id ¾Æ´Ï¿À ³× ³× ³×3 ³×3
server_id ¾Æ´Ï¿À ³× ³× ³× ³×
orb_id ¾Æ´Ï¿À ³× ³× ³× ³×
adapter_name ¾Æ´Ï¿À ³× ³× ³× ³×
target_most_derived_interface ¾Æ´Ï¿À ³× ¾Æ´Ï¿À4 ¾Æ´Ï¿À4 ¾Æ´Ï¿À4
get_server_policy ³× ³× ³× ³× ³×
set_slot ³× ³× ³× ³× ³×
target_is_a ¾Æ´Ï¿À ³× ¾Æ´Ï¿À4 ¾Æ´Ï¿À4 ¾Æ´Ï¿À4
add_reply_service_context ³× ³× ³× ³× ³×
  1. ServerRequestInfo°¡ receive_request¿¡ °Ô °Ç³×Áú ¶§´Â °¢ ÀμöÀÇ ¸®½ºÆ®¿¡ in, inout, out ¾î¶² °ÍÀΰ¡ÀÇ ¿£Æ®¸®°¡ ÀÖ½À´Ï´Ù¸¸, »ç¿ëÇÒ ¼ö ÀÖ´Â °ÍÀº in¿Í inout Àμö »ÓÀÔ´Ï´Ù.
  2. reply_status ¼Ó¼ºÀÌ LOCATION_FORWARD°¡ ¾Æ´Ñ °æ¿ì´Â ÀÌ ¼Ó¼º¿¡ ¾×¼¼½º Çϸé, Ç¥ÁØ ¸¶ÀÌ³Ê ÄÚµå 14°¡ ¼³Á¤µÈ BAD_INV_ORDER°¡ ¹ß»ý µË´Ï´Ù.
  3. ¼­¹øÆ® locator¿¡ ÀÇÇØ À§Ä¡ Àü¼ÛÀ» Çß´ÂÁö, ¿¹¿Ü°¡ Throw µÇ¾úÀ» °æ¿ì, ÀÌ ¼Ó¼º/Á¶ÀÛÀÌ ÀÌ Â÷´ÜÁ¡À¸·Î½á »ç¿ëÇÒ ¼ö ¾ø°Ô µÉ °¡´É¼ºÀÌ ÀÖ½À´Ï´Ù. »ç¿ëÇÒ ¼ö ¾ø´Â °æ¿ì´Â Ç¥ÁØ ¸¶ÀÌ³Ê ÄÚµå 1 ÀÌ ¼³Á¤µÈ NO_RESOURCES°¡ ¹ß»ý µË´Ï´Ù.
  4. ÇÊ¿äÇÑ Á¤º¸°¡ Ÿ°Ù °´Ã¼ÀÇ ¼­¹øÆ®¿¡°Ô ¾×¼¼½º ÇÒ ÇÊ¿ä°¡ Àִµ¥, ORB°¡ ´õ ÀÌ»ó ±× ¼­¹øÆ®¸¦ »ç¿ëÇÒ ¼ö ¾øÀ» °¡´É¼ºÀÌ Àֱ⠶§¹®¿¡ ÀÌ Á¶ÀÛÀº ÀÌ Â÷´ÜÁ¡À¸·Î½á »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. ¿¹¸¦ µé¾î °´Ã¼ÀÇ ¾î´ðÅÍ°¡ ServantLocator¸¦ »ç¿ëÇÏ´Â POA ÀÎ °æ¿ì, ORB´Â ServantLocator.postinvoke()¸¦ È£ÃâÇÑ ÈÄ¿¡ ÀÌ Â÷´ÜÁ¡À» È£ÃâÇÕ´Ï´Ù.

°ü·Ã Ç׸ñ:
ServerRequestInterceptor

¸Þ¼­µå °³¿ä
 byte[] adapter_id ()
          °´Ã¼ ¾î´ðÅÍÀÇ ºÒÅõ¸íÇÑ ½Äº°ÀÚ¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 String [] adapter_name ()
          ÀÌ ¿ä±¸¸¦ ó¸®ÁßÀÇ °´Ã¼ ¾î´ðÅÍ ÀνºÅϽº¸¦ ½Äº°ÇÏ´Â ÀÏ·ÃÀÇ Ä³¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù.
 void add_reply_service_context (ServiceContext  service_context, boolean replace)
          ÀΟ¼¼ÇÁŸ°¡ ¼­ºñ½º ÄÁÅؽºÆ®¸¦ ¿ä±¸¿¡ Ãß°¡ÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.
 Policy get_server_policy (int type)
          ÀÌ Á¶ÀÛ¿¡ À¯È¿ÇÑ ÁöÁ¤µÈ Á¤Ã¥ ÇüÀÇ Á¤Ã¥¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 byte[] object_id ()
          Á¶ÀÛ È£ÃâÀÇ Å¸°ÙÀ» ³ªÅ¸³»°í ÀÖ´Â ºÒÅõ¸íÇÑ object_id¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 String orb_id ()
          ORB¸¦ ÀÛ¼ºÇϴµ¥ »ç¿ëµÈ ID¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 Any sending_exception ()
          Å¬¶óÀ̾ðÆ®¿¡ ¸®ÅÏµÈ ¿¹¿Ü¸¦ Æ÷ÇÔÇÏ´Â any¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 String server_id ()
          -ORBServerId Àμö¸¦ »ç¿ëÇØ ORB::init ·Î ÁöÁ¤µÈ ¼­¹ö ID¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 void set_slot (int id, Any  data)
          ÀΟ¼¼ÇÁŸ°¡ ¿ä±¸ÀÇ ¹üÀ§³»¿¡ ÀÖ´Â PortableInterceptor.Current¿¡ ½½·ÔÀ» ¼³Á¤ÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.
 boolean target_is_a (String  id)
          ¼­¹øÆ®°¡ ÁöÁ¤µÈ ¸®Æ÷ÁöÅ͸®(repository) ID ÀÎ °æ¿ì´Â true¸¦ µ¹·ÁÁÖ°í, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 String target_most_derived_interface ()
          ¼­¹øÆ®ÀÇ ÃÖ»óÁ¤µµÀÇ ÆÄ»ý ÀÎÅÍÆäÀ̽ºÀÇ ¸®Æ÷ÁöÅ͸®(repository) ID¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 
ÀÎÅÍÆäÀ̽º org.omg.PortableInterceptor. RequestInfoOperations ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
arguments, contexts, exceptions, forward_reference, get_reply_service_context, get_request_service_context, get_slot, operation_context, operation, reply_status, request_id, response_expected, result, sync_scope
 

¸Þ¼­µåÀÇ »ó¼¼

sending_exception

Any  sending_exception()
Ŭ¶óÀ̾ðÆ®¿¡ ¸®ÅÏµÈ ¿¹¿Ü¸¦ Æ÷ÇÔÇÏ´Â any¸¦ ¸®ÅÏÇÕ´Ï´Ù.

¿¹¿Ü°¡ any¿¡ »ðÀÔÇÒ ¼ö ¾ø´Â »ç¿ëÀÚ ¿¹¿Ü (¿¹¿Ü°¡ ºÒ¸íÇϰųª ¹ÙÀεù¿¡ ÀÇÇØ TypeCode°¡ Á¦°øµÇÁö ¾Ê´Â µî)ÀÎ °æ¿ì, ÀÌ ¼Ó¼ºÀº Ç¥ÁØ ¸¶ÀÌ³Ê ÄÚµå 1 ÀÌ ¼³Á¤µÈ ½Ã½ºÅÛ ¿¹¿Ü UNKNOWN¸¦ Æ÷ÇÔÇÑ any°¡ µË´Ï´Ù.

°ü·Ã Ç׸ñ:
PortableInterceptor package comments for limitations / unimplemented features

object_id

byte[] object_id()
Á¶ÀÛ È£ÃâÀÇ Å¸°ÙÀ» ³ªÅ¸³»°í ÀÖ´Â ºÒÅõ¸íÇÑ object_id¸¦ ¸®ÅÏÇÕ´Ï´Ù.


adapter_id

byte[] adapter_id()
°´Ã¼ ¾î´ðÅÍÀÇ ºÒÅõ¸íÇÑ ½Äº°ÀÚ¸¦ ¸®ÅÏÇÕ´Ï´Ù.


server_id

String  server_id()
-ORBServerId Àμö¸¦ »ç¿ëÇØ ORB::init ·Î ÁöÁ¤µÈ ¼­¹ö ID¸¦ ¸®ÅÏÇÕ´Ï´Ù.


orb_id

String  orb_id()
ORB¸¦ ÀÛ¼ºÇϴµ¥ »ç¿ëµÈ ID¸¦ ¸®ÅÏÇÕ´Ï´Ù.


adapter_name

String [] adapter_name()
ÀÌ ¿ä±¸¸¦ ó¸®ÁßÀÇ °´Ã¼ ¾î´ðÅÍ ÀνºÅϽº¸¦ ½Äº°ÇÏ´Â ÀÏ·ÃÀÇ Ä³¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù.


target_most_derived_interface

String  target_most_derived_interface()
¼­¹øÆ®ÀÇ ÃÖ»óÁ¤µµÀÇ ÆÄ»ý ÀÎÅÍÆäÀ̽ºÀÇ ¸®Æ÷ÁöÅ͸®(repository) ID¸¦ ¸®ÅÏÇÕ´Ï´Ù.


get_server_policy

Policy  get_server_policy(int type)
ÀÌ Á¶ÀÛ¿¡ À¯È¿ÇÑ ÁöÁ¤µÈ Á¤Ã¥ ÇüÀÇ Á¤Ã¥¸¦ ¸®ÅÏÇÕ´Ï´Ù. ¸®ÅÏµÈ CORBA.Policy°´Ã¼´Â register_policy_factory¸¦ °³ÀÔ½ÃÄÑ ÇüÅ°¡ µî·ÏµÇ¾î ÀÖ´Â À¯ÀÏÇÑ Á¤Ã¥ ÀÔ´Ï´Ù.

ÆĶó¹ÌÅÍ:
type - ¸®ÅÏµÈ Á¤Ã¥¸¦ ÁöÁ¤ÇÏ´Â CORBA.PolicyType
¹Ýȯ°ª:
ÁöÁ¤µÈ Á¤Ã¥ ÇüÀ» »ç¿ëÇØ ÃëµæµÈ CORBA.Policy
¿¹¿Ü:
INV_POLICY - ÁöÁ¤µÈ ÇüÅÂÀÇ Á¤Ã¥°¡ register_policy_factory¸¦ °³ÀÔ½ÃÄÑ µî·ÏµÇÁö ¾Ê¾Ò´ø °æ¿ì, Ç¥ÁØ ¸¶ÀÌ³Ê ÄÚµå 2 ·Î ¹ß»ýµÇ´Â
°ü·Ã Ç׸ñ:
ORBInitInfoOperations.register_policy_factory(int, org.omg.PortableInterceptor.PolicyFactory)

set_slot

void set_slot(int id,
              Any  data)
              throws InvalidSlot 
ÀΟ¼¼ÇÁŸ°¡ ¿ä±¸ÀÇ ¹üÀ§³»¿¡ ÀÖ´Â PortableInterceptor.Current¿¡ ½½·ÔÀ» ¼³Á¤ÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù. ±× ½½·Ô¿¡ µ¥ÀÌÅÍ°¡ ÀÌ¹Ì Á¸ÀçÇÏ´Â °æ¿ì, ±âÁ¸ÀÇ µ¥ÀÌÅÍ´Â µ¡¾²±âµË´Ï´Ù.

ÆĶó¹ÌÅÍ:
id - ½½·ÔÀÇ ID
data - ±× ½½·Ô¿¡ Æ÷ÇÔÇÏ´Â any Çü½ÄÀÇ µ¥ÀÌÅÍ
¿¹¿Ü:
InvalidSlot - ÀÌ ID¿¡ ÀÇÇØ ÇÒ´çÇÏ°í ³¡³­ ½½·ÔÀÌ Á¤ÀǵǾî ÀÖÁö ¾ÊÀº °æ¿ì¿¡ ¹ß»ýµÇ´Â
°ü·Ã Ç׸ñ:
Current

target_is_a

boolean target_is_a(String  id)
¼­¹øÆ®°¡ ÁöÁ¤µÈ ¸®Æ÷ÁöÅ͸®(repository) ID ÀÎ °æ¿ì´Â true¸¦ µ¹·ÁÁÖ°í, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false¸¦ ¸®ÅÏÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
id - È£ÃâÃø¿¡¼­´Â ¼­¹øÆ®°¡ ÀÌ ¸®Æ÷ÁöÅ͸®(repository) ID ÀÏÁö ¾î¶³Áö¸¦ È®ÀÎÇÒ ÇÊ¿ä°¡ ÀÖ´Ù
¹Ýȯ°ª:
¼­¹øÆ®°¡ ÁöÁ¤µÈ RepositoryId Àϱî

add_reply_service_context

void add_reply_service_context(ServiceContext  service_context,
                               boolean replace)
ÀΟ¼¼ÇÁŸ°¡ ¼­ºñ½º ÄÁÅؽºÆ®¸¦ ¿ä±¸¿¡ Ãß°¡ÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.

¼­ºñ½º ÄÁÅؽºÆ® ÀÇ ¼ø¼­ÀÇ ¼±¾ðÀº ¾ø½À´Ï´Ù. ÀÌ ¶§¹®¿¡ Ãß°¡µÈ ¼ø¼­¿¡ Ç¥½ÃµÇ´Â °æ¿ìµµ Ç¥½ÃµÇÁö ¾Ê´Â °æ¿ìµµ ÀÖ½À´Ï´Ù.

ÆĶó¹ÌÅÍ:
service_context - ÀÀ´ä¿¡ Ãß°¡ÇÏ´Â IOP.ServiceContext
replace - ÁöÁ¤µÈ ID¸¦ °¡Áö´Â ¼­ºñ½º ÄÁÅؽºÆ®ÀÌ ÀÌ¹Ì Á¸ÀçÇÏ°í ÀÖÀ» ¶§ÀÇ ÀÌ Á¶ÀÛÀÇ µ¿ÀÛÀ» ³ªÅ¸³½´Ù. falseÀÎ °æ¿ì´Â Ç¥ÁØ ¸¶ÀÌ³Ê ÄÚµå 15°¡ ¼³Á¤µÈ BAD_INV_ORDER°¡ Throw µÈ´Ù. trueÀÎ °æ¿ì´Â ±âÁ¸ÀÇ ¼­ºñ½º ÄÁÅؽºÆ®ÀÌ »õ·Î¿î °Í¿¡ ġȯµÈ´Ù
¿¹¿Ü:
BAD_INV_ORDER - replace°¡ false ÀÏ ¶§, ÁöÁ¤µÈ ID ¼­ºñ½º ÄÁÅؽºÆ®ÀÌ ÀÌ¹Ì Á¸ÀçÇÏ´Â °æ¿ì, Ç¥ÁØ ¸¶ÀÌ³Ê ÄÚµå 15 ·Î Throw µÈ´Ù

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.