|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.management.ManageableComponent
flex.messaging.Destination
flex.messaging.services.http.HTTPProxyDestination
public class HTTPProxyDestination
Subclass of Destination which provides HTTP Proxy-specific destination functionality.
| Field Summary | |
|---|---|
static String |
LOG_CATEGORY
Log category for HTTPProxyDestination. |
| Constructor Summary | |
|---|---|
HTTPProxyDestination()
Constructs an unmanaged HTTPProxyDestination instance. |
|
HTTPProxyDestination(boolean enableManagement)
Constructs a HTTPProxyDestination with the indicated management. |
|
| Method Summary | |
|---|---|
void |
addDynamicUrl(String dynamicUrl)
Adds a dynamic-url or soap property. |
void |
addDynamicUrls(List dynamicUrls)
Adds a list of dynamic-url or soap properties
to the existing list. |
boolean |
allowsDynamicAuthentication()
Returns whether dynamic authentication is allowed. |
String |
getDefaultUrl()
Returns the url (or wsdl if using the
SOAP) property. |
List |
getDynamicUrls()
Returns the list of dynamic-url (or soap
if using SOAP) properties. |
String |
getParsedDefaultUrl(String contextPath,
String serverName,
String serverPort,
String serverProtocol)
This method replaces the dynamic tokens of the default url with the specified values and returns the resulting url. |
List |
getParsedDynamicUrls(String contextPath)
This method replaces all the dynamic tokens of dynamic urls using the specified context path, when necessary. |
ProtocolFactory |
getProtocolFactory()
Returns the protocol-factory property. |
String |
getRemotePassword()
Returns the remote-password property. |
String |
getRemoteUsername()
Gets the remote-username property. |
void |
initialize(String id,
ConfigMap properties)
Initializes the HTTPProxyDestination with the properties. |
boolean |
isUseCustomAuthentication()
Returns the use-custom-auth property. |
void |
setDefaultUrl(String defaultUrl)
Sets the url or wsdl property. |
void |
setProtocolFactory(ProtocolFactory protocolFactory)
Sets the protocol-factory property. |
void |
setRemotePassword(String remotePassword)
Sets the remote-password property. |
void |
setRemoteUsername(String remoteUsername)
Sets the remote-username property. |
void |
setService(Service service)
Casts the Service into HTTPProxyService
and calls super.setService. |
void |
setUseCustomAuthentication(boolean useCustomAuthentication)
Sets the use-custom-auth property. |
| Methods inherited from class flex.messaging.Destination |
|---|
addChannel, addExtraProperty, createAdapter, describeDestination, getAdapter, getChannels, getExtraProperty, getNetworkSettings, getSecurityConstraint, getService, getServiceType, isBackendShared, isClustered, removeChannel, setAdapter, setChannels, setId, setNetworkSettings, setSecurityConstraint, setSecurityConstraint, start, stop |
| Methods inherited from class flex.management.ManageableComponent |
|---|
getControl, getId, getParent, isManaged, isStarted, isValid, setControl, setManaged, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LOG_CATEGORY
HTTPProxyDestination.
| Constructor Detail |
|---|
public HTTPProxyDestination()
HTTPProxyDestination instance.
public HTTPProxyDestination(boolean enableManagement)
HTTPProxyDestination with the indicated management.
enableManagement - true if the HTTPProxyDestination
is manageable; otherwise false.| Method Detail |
|---|
public void initialize(String id,
ConfigMap properties)
HTTPProxyDestination with the properties.
<url>...</url> (HTTP)
or
<wsdl>...</wsdl> (SOAP)
<dynamic-url>...</dynamic-url>* (HTTP)
or
<soap>...</soap>* (SOAP)
<remote-username>...</remote-username>
<remote-password>...</remote-password>
<use-custom-authentication>true</use-custom-authentication>
<protocol-factory class="flex.messaging.services.http.ProtocolFactory">
<properties>...</properties>
</protocol-factory>
initialize in interface FlexConfigurableinitialize in class Destinationid - The id of the destination.properties - Properties for the HTTPProxyDestination.public String getDefaultUrl()
url (or wsdl if using the
SOAP) property.
url or wsdl property.public void setDefaultUrl(String defaultUrl)
url or wsdl property.
defaultUrl - The url or wsdl property.public List getDynamicUrls()
dynamic-url (or soap
if using SOAP) properties.
dynamic-url or soap
properties.public void addDynamicUrl(String dynamicUrl)
dynamic-url or soap property.
The developer configures a list of dynamic URLs that are
allowed for Proxy Service destinations. The dynamic URL
may contain * and ? wildcards, and must start with either
"http://" or "https://". Dynamic URLs
are compared in a case insensitive manner.
dynamicUrl - - A wildcard pattern used to match dynamic URLspublic void addDynamicUrls(List dynamicUrls)
dynamic-url or soap properties
to the existing list.
dynamicUrls - A list of dynamic-url or soap
properties.public ProtocolFactory getProtocolFactory()
protocol-factory property. A ProtocolFactory
implementation allows the developer to customize how the HTTP Proxy
Service communicates with a 3rd party endpoint.
protocol-factory property.public void setProtocolFactory(ProtocolFactory protocolFactory)
protocol-factory property.
protocolFactory - The protocol-factory property.public String getRemotePassword()
remote-password property.
remote-password property.public void setRemotePassword(String remotePassword)
remote-password property.
remotePassword - The remote-password property.public String getRemoteUsername()
remote-username property.
remote-username property.public void setRemoteUsername(String remoteUsername)
remote-username property.
remoteUsername - The remote-username property.public void setService(Service service)
Service into HTTPProxyService
and calls super.setService.
setService in class Destinationservice - The HTTP proxy service.public boolean isUseCustomAuthentication()
use-custom-auth property.
true if use-custom-auth is enabled;
otherwise false.public void setUseCustomAuthentication(boolean useCustomAuthentication)
use-custom-auth property.
useCustomAuthentication - The use-custom-auth property.
public String getParsedDefaultUrl(String contextPath,
String serverName,
String serverPort,
String serverProtocol)
contextPath - The context path to be used in dynamic url replacement.serverName - The server name to be used in dynamic url replacement.serverPort - The server port to be used in dynamic url replacement.serverProtocol - The server protocol to be used in dynamic url replacement.
public List getParsedDynamicUrls(String contextPath)
contextPath - The context path to be used in dynamic url replacement.
public boolean allowsDynamicAuthentication()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/services/http/HTTPProxyDestination.html