Modifier and Type | Field and Description |
---|---|
protected Call |
_call |
protected URL |
cachedEndpoint |
protected String |
cachedPassword |
protected QName |
cachedPortName |
protected Properties |
cachedProperties |
protected Integer |
cachedTimeout |
protected String |
cachedUsername |
protected boolean |
maintainSession |
protected boolean |
maintainSessionSet |
protected Service |
service |
ENDPOINT_ADDRESS_PROPERTY, PASSWORD_PROPERTY, SESSION_MAINTAIN_PROPERTY, USERNAME_PROPERTY
Constructor and Description |
---|
Stub() |
Modifier and Type | Method and Description |
---|---|
Call |
_createCall()
Creates a call from the service.
|
Call |
_getCall()
Returns last Call object associated with this stub.
|
Object |
_getProperty(String name)
Gets the value of a named property.
|
Iterator |
_getPropertyNames()
Return the names of configurable properties for this stub class.
|
Service |
_getService()
Provide access to the service object.
|
void |
_setProperty(String name,
Object value)
Sets the value for a named property.
|
void |
addAttachment(Object handler)
Add an attachment
|
void |
clearAttachments()
This method clears the request attachments.
|
void |
clearHeaders()
This method clears both requestHeaders and responseHeaders hashtables.
|
void |
extractAttachments(Call call)
Extract attachments
|
protected boolean |
firstCall()
Is this the first time the type mappings are being registered?
|
Object[] |
getAttachments()
Get the array of attachments
The attachment array is cleared after this, so it is a destructive operation.
|
SOAPHeaderElement |
getHeader(String namespace,
String partName)
Get the header element
|
SOAPHeaderElement[] |
getHeaders()
Get the array of header elements
|
String |
getPassword()
Get the password
|
QName |
getPortName()
Get the port name.
|
SOAPHeaderElement |
getResponseHeader(String namespace,
String partName)
Get a response header element
|
SOAPHeaderElement[] |
getResponseHeaders()
Get the array of response header elements
|
protected void |
getResponseHeaders(Call call)
Deprecated.
This method has been changed to a no-op but remains
in the code to keep compatibility with pre-1.1
generated stubs.
|
int |
getTimeout()
Get the timeout value in milliseconds. 0 means no timeout.
|
String |
getUsername()
Get the user name
|
Object |
removeProperty(String name)
Remove a property from this instance of the Stub
NOTE: This is NOT part of JAX-RPC and is an Axis extension.
|
protected void |
setAttachments(Call call)
copy the attachments from the stub to the call object.
|
void |
setHeader(SOAPHeaderElement header)
Set the header
|
void |
setHeader(String namespace,
String partName,
Object headerValue)
Set the header
|
void |
setMaintainSession(boolean session)
If set to true, session is maintained; if false, it is not.
|
void |
setPassword(String password)
Set the password.
|
void |
setPortName(QName portName)
Set the port QName.
|
void |
setPortName(String portName)
Set the port name.
|
protected void |
setRequestHeaders(Call call) |
void |
setTimeout(int timeout)
Set the timeout in milliseconds.
|
void |
setUsername(String username)
Set the username.
|
protected Service service
protected boolean maintainSessionSet
protected boolean maintainSession
protected Properties cachedProperties
protected String cachedUsername
protected String cachedPassword
protected URL cachedEndpoint
protected Integer cachedTimeout
protected QName cachedPortName
protected Call _call
protected boolean firstCall()
public void _setProperty(String name, Object value)
_setProperty
in interface Stub
name
- - Name of the propertyvalue
- - Value of the propertypublic Object _getProperty(String name)
_getProperty
in interface Stub
name
- public Object removeProperty(String name)
name
- the name of the property to removepublic Iterator _getPropertyNames()
_getPropertyNames
in interface Stub
java.lang.String
public void setUsername(String username)
public String getUsername()
public void setPassword(String password)
public String getPassword()
public int getTimeout()
public void setTimeout(int timeout)
public QName getPortName()
public void setPortName(QName portName)
public void setPortName(String portName)
public void setMaintainSession(boolean session)
public void setHeader(String namespace, String partName, Object headerValue)
namespace
- partName
- that uniquely identify a header object.headerValue
- Object that is sent in the request as a SOAPHeaderpublic void setHeader(SOAPHeaderElement header)
public void extractAttachments(Call call)
call
- public void addAttachment(Object handler)
handler
- public SOAPHeaderElement getHeader(String namespace, String partName)
public SOAPHeaderElement getResponseHeader(String namespace, String partName)
public SOAPHeaderElement[] getHeaders()
public SOAPHeaderElement[] getResponseHeaders()
public Object[] getAttachments()
public void clearHeaders()
public void clearAttachments()
protected void setAttachments(Call call) throws AxisFault
call
- call object to configureAxisFault
public Service _getService()
public Call _createCall() throws ServiceException
ServiceException
public Call _getCall()
protected void getResponseHeaders(Call call) throws AxisFault
AxisFault
Copyright © The Apache Software Foundation. All Rights Reserved.