|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.transport.tcp.server.TCPConnectionImpl
public class TCPConnectionImpl
| Constructor Summary | |
|---|---|
TCPConnectionImpl(ChannelContext channelContext)
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
ChannelContext |
getChannelContext()
|
String |
getContentType()
|
String |
getEPRAddress(Packet request,
WSEndpoint endpoint)
Gets the address of the endpoint. |
int |
getStatus()
|
Principal |
getUserPrincipal(Packet request)
Implements WebServiceContext.getUserPrincipal()
for the given packet. |
String |
getWSDLAddress(Packet request,
WSEndpoint endpoint)
Gets the address of the primary WSDL. |
boolean |
isUserInRole(Packet request,
String role)
Implements WebServiceContext.isUserInRole(String)
for the given packet. |
InputStream |
openInput()
|
OutputStream |
openOutput()
|
void |
sendErrorMessage(WSTCPError message)
|
void |
setContentType(String contentType)
|
void |
setStatus(int statusCode)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TCPConnectionImpl(ChannelContext channelContext)
| Method Detail |
|---|
public InputStream openInput()
throws IOException,
WSTCPException
IOException
WSTCPException
public OutputStream openOutput()
throws IOException,
WSTCPException
IOException
WSTCPExceptionpublic int getStatus()
public void setStatus(int statusCode)
public String getContentType()
public void setContentType(String contentType)
public void flush()
throws IOException,
WSTCPException
IOException
WSTCPExceptionpublic void close()
public Principal getUserPrincipal(Packet request)
WebServiceContextDelegateWebServiceContext.getUserPrincipal()
for the given packet.
getUserPrincipal in interface WebServiceContextDelegaterequest - Always non-null. See class javadoc.WebServiceContext.getUserPrincipal()
public boolean isUserInRole(Packet request,
String role)
WebServiceContextDelegateWebServiceContext.isUserInRole(String)
for the given packet.
isUserInRole in interface WebServiceContextDelegaterequest - Always non-null. See class javadoc.WebServiceContext.isUserInRole(String)
@NotNull
public String getEPRAddress(@NotNull
Packet request,
@NotNull
WSEndpoint endpoint)
WebServiceContextDelegateThe "address" of endpoints is always affected by a particular client being served, hence it's up to transport to provide this information.
getEPRAddress in interface WebServiceContextDelegaterequest - Always non-null. See class javadoc.endpoint - The endpoint whose address will be returned.
WebServiceContext.getEndpointReference(org.w3c.dom.Element...)
public String getWSDLAddress(@NotNull
Packet request,
@NotNull
WSEndpoint endpoint)
WebServiceContextDelegate
If a transport supports publishing of WSDL by itself (instead/in addition to MEX),
then it should implement this method so that the rest of the JAX-WS RI can
use that information.
For example, HTTP transports often use the convention getEPRAddress()+"?wsdl"
for publishing WSDL on HTTP.
Some transports may not have such WSDL publishing mechanism on its own.
Those transports may choose to return null, indicating that WSDL
is not published. If such transports are always used in conjunction with
other transports that support WSDL publishing (such as SOAP/TCP used
with Servlet transport), then such transport may
choose to find the corresponding servlet endpoint by Module.getBoundEndpoints()
and try to obtain the address from there.
This information is used to put a metadata reference inside an EPR, among other things. Clients that do not support MEX rely on this WSDL URL to retrieve metadata, it is desirable for transports to support this, but not mandatory.
This method will be never invoked if the WSEndpoint
does not have a corresponding WSDL to begin with
(IOW returning null.
getWSDLAddress in interface WebServiceContextDelegaterequest - Always non-null. See class javadoc.endpoint - The endpoint whose address will be returned.
public void sendErrorMessage(WSTCPError message)
throws IOException,
WSTCPException
IOException
WSTCPExceptionpublic ChannelContext getChannelContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||