|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.transport.local.InVmServer
public final class InVmServer
In-VM transport.
This transport lets you deploy services in a servlet-like environment within the same VM. Unlike the local transport, which deploys a new server instance every time a new transport tube is created, in-VM transport maintains a server instance outside the transport, allowing multiple clients to talk to the same in-VM service instance.
For this reason, in-VM transport requires explicit "deploy" and "undeploy" operations.
Constructor Summary | |
---|---|
InVmServer(File explodedWarDir)
|
|
InVmServer(String id,
File explodedWarDir)
Deploys a new server instance. |
|
InVmServer(String id,
List<WSEndpoint> endpoints)
|
Method Summary | |
---|---|
static InVmServer |
get(String id)
Obtains the running instance from the ID, or returns null if not found. |
(package private) URI |
getAddress()
Returns the URI that identifies this server. |
(package private) WSEndpoint |
getByPortName(String portLocalName)
Finds the WSEndpoint that matches the given port name. |
(package private) List<WSEndpoint> |
getEndpoints()
Gets all the WSEndpoint s. |
String |
toString()
|
void |
undeploy()
Gracefully terminates this service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InVmServer(@NotNull String id, File explodedWarDir) throws IOException
id
- Every server instance needs to have an unique ID.
If you want to set the ID by yourself, use this version.
Otherwise use the single argument version.explodedWarDir
- The exploded war file image in the file system,
where services are loaded from.
IOException
public InVmServer(@NotNull String id, List<WSEndpoint> endpoints) throws IOException
IOException
public InVmServer(File explodedWarDir) throws IOException
IOException
Method Detail |
---|
@Nullable WSEndpoint getByPortName(String portLocalName)
WSEndpoint
that matches the given port name.
List<WSEndpoint> getEndpoints()
WSEndpoint
s.
URI getAddress()
public void undeploy()
@Nullable public static InVmServer get(String id)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |