Context
Provides access to container services that support web services
(JWS files). Represents the execution context of the web service.
Methods in this interface can be used to access out-of-band data for
communication with other web service architectures and to manage
conversations.
For more information on building web services, see
Building Web Services.
Related Topics
Context
Context
, Serializable
JpdContext
Nested Class Summary |
public static interface | JwsContext.Callback
The Callback interface defines events that can be received through the Context object.
|
Nested classes from interface weblogic.jws.control. |
Context.Callback |
Method Summary |
public |
|
public |
|
public |
|
public |
|
public |
|
public boolean |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
Methods from interface weblogic.jws.control. |
finishConversation, getCallerPrincipal, getCurrentAge, getCurrentIdleTime, getLogger, getMaxAge, getMaxIdleTime, getService, isCallerInRole, isFinished, resetIdleTime, setMaxAge, setMaxAge, setMaxIdleTime, setMaxIdleTime |
Method Detail |
DEPRECATED Supported for backward compatibility only; as of WebLogic Platform 8.1,
replaced by com.bea.control.ServiceControl.getEndPoint()
.
public String
getCallbackLocation()
Retrieves the URL set by a setCallbackLocation method, or
retrieves the callback URL if it was set via SOAP headers.
DEPRECATED Supported for backward compatibility only; as of WebLogic Platform 8.1,
replaced by com.bea.control.ServiceControl.getPassword()
.
public String
getCallbackPassword()
Gets the password used for credentials in
callbacks. The password may have been specified by the
client as part of the callbackLocation conversation start
SOAP header, or it may have been set by a call to
JwsContext.setCallbackPassword().
DEPRECATED Supported for backward compatibility only; as of WebLogic Platform 8.1,
replaced by com.bea.control.ServiceControl.getUsername()
.
public String
getCallbackUsername()
Gets the user name used for credentials in
callbacks. The username may have been specified by
the client as part of the callbackLocation conversation
start SOAP header, or it may have been set by a call to
JwsContext.setCallbackUsername().
public Element
[] getInputHeaders()
Returns the SOAP headers that arrived with the current
method invocation message. The SOAP headers used by WebLogic Workshop
to manage conversations are included in the list of headers returned.
public Protocol
getProtocol()
Gets the protocol of the current request.
public boolean getUnderstoodInputHeaders()Returns the value most recently set by a call to
setUnderstoodInputHeaders
.
false
if
JwsContext.setUnderstoodInputHeaders() has not been called.
DEPRECATED Supported for backward compatibility only; as of WebLogic Platform 8.1,
replaced by com.bea.control.ServiceControl.setEndPoint(java.net.URL)
.
public void setCallbackLocation(Specifies the URL to which a web service callback should be sent. Call this method before sending callbacks for conversations with clients that do not implicitly provide callback information via SOAP headers.String
url)
throwsMalformedURLException
MalformedURLException
DEPRECATED Supported for backward compatibility only; as of WebLogic Platform 8.1,
replaced by com.bea.control.ServiceControl.setEndPoint(java.net.URL)
.
public void setCallbackLocation(URL
url)
Specifies the URL to which a web service callback should be sent.
Call this method before sending callbacks for conversations with
clients that do not implicitly provide callback information via
SOAP headers.
DEPRECATED Supported for backward compatibility only; as of WebLogic Platform 8.1,
replaced by com.bea.control.ServiceControl.setPassword(java.lang.String)
.
public void setCallbackPassword(String
password)
Sets the password to use for credentials in
callbacks. Use the setCallbackUsername and setCallbackPassword
methods if the callback's recipient is secure, and if no
credentials were specified in the callback URL.
DEPRECATED Supported for backward compatibility only; as of WebLogic Platform 8.1,
replaced by com.bea.control.ServiceControl.setUsername(java.lang.String)
.
public void setCallbackUsername(String
username)
Sets the user name to use for credentials in
callbacks. Use the setCallbackUsername and setCallbackPassword
methods if the callback's recipient is secure, and if no
credentials were specified in the callback URL.
public void setOutputHeaders(Element
[] headers)
Set the SOAP headers to be sent with outgoing messages to the client.
public void setUnderstoodInputHeaders(boolean understood)Indicates whether input headers were understood. If any input headers are marked with the mustUnderstand attribute value of "1" or "true" and this method is not called with the value
true
,
then a SOAP fault will be generated.
true
to indicate that "mustUnderstand"
headers were understood; false
to indicate they weren't.