|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides access to transport layers. When it's initialized it registers itself to the references context.
Method Summary | |
Transport |
addServer(Configurable config,
boolean startPreloaded)
Adds new server transport to the repository. |
Transport |
addTransport(Configurable config,
boolean startPreloaded)
Adds new transport to the repository. |
void |
addTransport(java.lang.String name,
java.lang.String scheme,
Transport transport)
Adds new transport to the repository. |
Endpoint[] |
getAbsolutePath(java.lang.String path)
Returns all possible started endpoints for local path. |
java.lang.String |
getLocalPath(URI endpoint)
Returns null if the endpoint does not point to any
local server accepting incoming messages. |
Transport |
getTransport(java.lang.String scheme)
Deprecated. Use getTransportForScheme(java.lang.String) instead. |
Transport |
getTransportForName(java.lang.String name)
Gets transport layer from the repository. |
Transport[] |
getTransportForScheme(java.lang.String scheme)
Gets transports layer from the repository. |
java.util.Set |
getTransportNames()
Gets set of transport names. |
java.lang.String |
getTransportSchemeForName(java.lang.String name)
Gets transport scheme for given transport name. |
Transport |
removeTransport(java.lang.String name)
Removes transport from the repository. |
ConnectionHandler |
setHandler(ConnectionHandler handler)
Sets handler for new incoming connections for all transports. |
Method Detail |
public java.util.Set getTransportNames()
public Transport getTransportForName(java.lang.String name)
name
- the name like jetty
null
public java.lang.String getTransportSchemeForName(java.lang.String name)
name
- the name like jetty
null
public Transport getTransport(java.lang.String scheme)
getTransportForScheme(java.lang.String)
instead.
scheme
- the scheme like http
null
public Transport[] getTransportForScheme(java.lang.String scheme)
scheme
- the scheme like http
null
public void addTransport(java.lang.String name, java.lang.String scheme, Transport transport)
name
- the name like jetty
scheme
- the scheme like http
transport
- added transportpublic Transport addTransport(Configurable config, boolean startPreloaded) throws TransportStartException
config
- configurable object with transport configurationstartPreloaded
- start if it's preloaded transport
TransportStartException
- if the transport couldn't be
startedpublic Transport addServer(Configurable config, boolean startPreloaded) throws TransportStartException
config
- configurable object with transport configurationstartPreloaded
- start if it's preloaded transport
TransportStartException
- if the transport couldn't be
startedpublic Transport removeTransport(java.lang.String name)
name
- the transport name like jetty
public ConnectionHandler setHandler(ConnectionHandler handler)
handler
- the handler
null
public java.lang.String getLocalPath(URI endpoint)
null
if the endpoint does not point to any
local server accepting incoming messages. Returns the local
path (i.e. without the WSO2 SOA Enablement Server context) of the endpoint. For
example, if WSO2 SOA Enablement Server is deployed to
http://localhost:8080/wasp
, then call with the
endpoint http://localhost:8080/wasp/a
returns
/a
, while
http://localhost:8080/wasp1/a
or
http://localhost/wasp/a
(default port for HTTP is
80) returns null
.
endpoint
- the endpoint being tested
public Endpoint[] getAbsolutePath(java.lang.String path) throws java.net.MalformedURLException
path
- the local path of the endpoint
java.net.MalformedURLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |