Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-06

weblogic.jws.jaxws.client.async
Class AsyncClientTransportFeature.AsyncResponseEndpointRegistry.EndpointInfo

java.lang.Object
  extended by weblogic.jws.jaxws.client.async.AsyncClientTransportFeature.AsyncResponseEndpointRegistry.EndpointInfo
Enclosing interface:
AsyncClientTransportFeature.AsyncResponseEndpointRegistry

public static class AsyncClientTransportFeature.AsyncResponseEndpointRegistry.EndpointInfo
extends Object


Constructor Summary
AsyncClientTransportFeature.AsyncResponseEndpointRegistry.EndpointInfo()
           
 
Method Summary
 Endpoint getEndpoint()
           
 Map<String> getSuspendedThreadRegistry()
           
 boolean isPublished()
           
 boolean requestPublishRights(AsyncClientTransportFeature feature, weblogic.jws.jaxws.client.async.AsyncClientTransportFeature.EndpointPublishedListener listener)
          Called by AsyncClientTransportFeature as it reaches the point of publishing it's endpoint.
 void setPublishedEndpointInfo(AsyncClientTransportFeature feature, Map<String> suspendedThreadRegistry, Endpoint endpoint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncClientTransportFeature.AsyncResponseEndpointRegistry.EndpointInfo

public AsyncClientTransportFeature.AsyncResponseEndpointRegistry.EndpointInfo()
Method Detail

requestPublishRights

public boolean requestPublishRights(AsyncClientTransportFeature feature,
                                    weblogic.jws.jaxws.client.async.AsyncClientTransportFeature.EndpointPublishedListener listener)
Called by AsyncClientTransportFeature as it reaches the point of publishing it's endpoint. Only one feature can do the publish. This method will allow in only one feature for publishing, and will return to that feature a true return value. The winning feature should remember that it has one and publish the endpoint when asked to via it's initProvider method. The 'losing' features will get false returned, and at a later time, when the endpoint is published by the winning feature, they will get a callback on their EndpointPublishedListener implementation passed to this method.

Parameters:
feature - The feature that is requesting publish rights.
listener - The listener to notify when the shared endpoint for a client identity is
Returns:
True if the calling feature is the 'winner' of the right to publish the endpoint. False otherwise. If false is returned, the caller can expect a call on their listener when the winner has completed publishing the endpoint. If true is returned, the winning feature should call the setPublishedEndpointInfo method with the newly published endpoint info. Note, this method checks the passed 'feature' arg against the stored 'winner' feature reference and rejects any attempt by a losing feature to register the published endpoint.

setPublishedEndpointInfo

public void setPublishedEndpointInfo(AsyncClientTransportFeature feature,
                                     Map<String> suspendedThreadRegistry,
                                     Endpoint endpoint)

isPublished

public boolean isPublished()

getSuspendedThreadRegistry

public Map<String> getSuspendedThreadRegistry()

getEndpoint

public Endpoint getEndpoint()

Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-06