|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.management.ManageableComponent
flex.messaging.services.ServiceAdapter
flex.messaging.services.http.HTTPProxyAdapter
public class HTTPProxyAdapter
Adapter class for proxy services.
| Field Summary |
|---|
| Fields inherited from class flex.messaging.services.ServiceAdapter |
|---|
LOG_CATEGORY |
| Constructor Summary | |
|---|---|
HTTPProxyAdapter()
Constructs an unmanaged HTTPProxyAdapter instance. |
|
HTTPProxyAdapter(boolean enableManagement)
Constructs a HTTPProxyAdapter instance. |
|
| Method Summary | |
|---|---|
HTTPConnectionManagerSettings |
getConnectionManagerSettings()
Returns HTTPConnectionManagerSettings. |
int |
getCookieLimit()
Returns the cookie-limit property. |
ExternalProxySettings |
getExternalProxySettings()
Returns ExternalProxySettings. |
void |
initialize(String id,
ConfigMap properties)
Initializes the HTTPProxyAdapter with the properties. |
Object |
invoke(Message msg)
Handle a data message intended for this adapter. |
boolean |
isAllowLaxSSL()
Returns allow-lax-ssl property. |
boolean |
isContentChunked()
Returns the content-chunked property. |
void |
setAllowLaxSSL(boolean allowLaxSSL)
Sets allow-lax-ssl property which determines if self-signed
certificates are allowed; should not be used in production. |
void |
setConnectionManagerSettings(HTTPConnectionManagerSettings connectionManagerSettings)
Sets HTTPConnectionManagerSettings. |
void |
setContentChunked(boolean contentChunked)
Sets the content-chunked property. |
void |
setCookieLimit(int cookieLimit)
Sets the cookie-limit property. |
void |
setDestination(Destination destination)
Casts the Destination into HTTPProxyDestination
and calls super.setDestination. |
void |
setExternalProxySettings(ExternalProxySettings externalProxy)
Sets ExternalProxySettings. |
| Methods inherited from class flex.messaging.services.ServiceAdapter |
|---|
getAdapterState, getDestination, handlesSubscriptions, manage, setAdapterState, start, stop |
| Methods inherited from class flex.management.ManageableComponent |
|---|
getControl, getId, getParent, isManaged, isStarted, isValid, setControl, setId, setManaged, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTTPProxyAdapter()
HTTPProxyAdapter instance.
public HTTPProxyAdapter(boolean enableManagement)
HTTPProxyAdapter instance.
enableManagement - true if the HTTPProxyAdapter has a
corresponding MBean control for management; otherwise false.| Method Detail |
|---|
public void initialize(String id,
ConfigMap properties)
HTTPProxyAdapter with the properties.
<connection-manager>
<max-total-connections>100</max-total-connections>
<default-max-connections-per-host>2</default-max-connections-per-host>
<connection-timeout>0</connection-timeout>
<socket-timeout></socket-timeout>
<stale-checking-enabled></stale-checking-enabled>
<send-buffer-size></send-buffer-size>
<receive-buffer-size></receive-buffer-size>
<tcp-no-delay>true</tcp-no-delay>
<linger>-1</linger>
<max-per-host>
<host>...</host>
<port>80</port>
<protocol>http</protocol>
<protocol-factory class="flex.messaging.services.http.ProtocolFactory">
<properties>...</properties>
</protocol-factory>
<max-connections>2</max-connections>
<proxy>
<host>...</host>
<port>80</port>
</proxy>
<local-address>...</local-address>
<virtual-host>...</virtual-host>
</max-per-host>
</connection-manager>
<cookie-limit>200</cookie-limit>
<allow-lax-ssl>false</allow-lax-ssl>
<content-chunked>false</content-chunked>
<external-proxy>
<server>...</server>
<port>80</port>
<nt-domain>...</nt-domain>
<username>...</username>
<password>...</password>
</external-proxy>
initialize in interface FlexConfigurableinitialize in class ManageableComponentid - The id of the destination.properties - Properties for the Destination.public boolean isAllowLaxSSL()
allow-lax-ssl property.
true if allow-lax-ssl property is
true; otherwise false.public void setAllowLaxSSL(boolean allowLaxSSL)
allow-lax-ssl property which determines if self-signed
certificates are allowed; should not be used in production.
Default false.
allowLaxSSL - Whether lax SSL should be allowed.public boolean isContentChunked()
content-chunked property.
true if content-chunked property is
true; otherwise false.public void setContentChunked(boolean contentChunked)
content-chunked property. Default false.
contentChunked - The content-chunked property.public int getCookieLimit()
cookie-limit property.
cookie-limit property.public void setCookieLimit(int cookieLimit)
cookie-limit property. Default 200.
cookieLimit - The cookie limit for the proxy.public void setDestination(Destination destination)
Destination into HTTPProxyDestination
and calls super.setDestination.
setDestination in class ServiceAdapterdestination - The HTTP proxy destination.public ExternalProxySettings getExternalProxySettings()
ExternalProxySettings.
ExternalProxySettingspublic void setExternalProxySettings(ExternalProxySettings externalProxy)
ExternalProxySettings.
externalProxy - The external proxy settings.public HTTPConnectionManagerSettings getConnectionManagerSettings()
HTTPConnectionManagerSettings.
HTTPConnectionManagerSettingspublic void setConnectionManagerSettings(HTTPConnectionManagerSettings connectionManagerSettings)
HTTPConnectionManagerSettings.
connectionManagerSettings - The connection manager settings.public Object invoke(Message msg)
Typically the data content for the message is stored in the body property of the message. The headers of the message are used to store fields which relate to the transport of the message. The type of operation is stored as the operation property of the message.
invoke in class ServiceAdaptermsg - the message as sent by the client intended for this adapter
Message,
AsyncMessage
|
||||||||||
| 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/HTTPProxyAdapter.html