Class TCPConnectionImpl
- java.lang.Object
-
- com.sun.xml.ws.transport.tcp.server.TCPConnectionImpl
-
- All Implemented Interfaces:
com.sun.xml.ws.api.server.WebServiceContextDelegate
public class TCPConnectionImpl extends Object implements com.sun.xml.ws.api.server.WebServiceContextDelegate
- Author:
- Alexey Stashok
-
-
Constructor Summary
Constructors Constructor Description TCPConnectionImpl(ChannelContext channelContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()ChannelContextgetChannelContext()StringgetContentType()StringgetEPRAddress(com.sun.xml.ws.api.message.Packet request, com.sun.xml.ws.api.server.WSEndpoint endpoint)intgetStatus()PrincipalgetUserPrincipal(com.sun.xml.ws.api.message.Packet request)StringgetWSDLAddress(com.sun.xml.ws.api.message.Packet request, com.sun.xml.ws.api.server.WSEndpoint endpoint)booleanisUserInRole(com.sun.xml.ws.api.message.Packet request, String role)InputStreamopenInput()OutputStreamopenOutput()voidsendErrorMessage(WSTCPError message)voidsetContentType(String contentType)voidsetStatus(int statusCode)
-
-
-
Constructor Detail
-
TCPConnectionImpl
public TCPConnectionImpl(ChannelContext channelContext)
-
-
Method Detail
-
openInput
public InputStream openInput() throws IOException, WSTCPException
- Throws:
IOExceptionWSTCPException
-
openOutput
public OutputStream openOutput() throws IOException, WSTCPException
- Throws:
IOExceptionWSTCPException
-
getStatus
public int getStatus()
-
setStatus
public void setStatus(int statusCode)
-
getContentType
public String getContentType()
-
setContentType
public void setContentType(String contentType)
-
flush
public void flush() throws IOException, WSTCPException- Throws:
IOExceptionWSTCPException
-
close
public void close()
-
getUserPrincipal
public Principal getUserPrincipal(com.sun.xml.ws.api.message.Packet request)
- Specified by:
getUserPrincipalin interfacecom.sun.xml.ws.api.server.WebServiceContextDelegate
-
isUserInRole
public boolean isUserInRole(com.sun.xml.ws.api.message.Packet request, String role)- Specified by:
isUserInRolein interfacecom.sun.xml.ws.api.server.WebServiceContextDelegate
-
getEPRAddress
@NotNull public String getEPRAddress(@NotNull com.sun.xml.ws.api.message.Packet request, @NotNull com.sun.xml.ws.api.server.WSEndpoint endpoint)
- Specified by:
getEPRAddressin interfacecom.sun.xml.ws.api.server.WebServiceContextDelegate
-
getWSDLAddress
public String getWSDLAddress(@NotNull com.sun.xml.ws.api.message.Packet request, @NotNull com.sun.xml.ws.api.server.WSEndpoint endpoint)
- Specified by:
getWSDLAddressin interfacecom.sun.xml.ws.api.server.WebServiceContextDelegate
-
sendErrorMessage
public void sendErrorMessage(WSTCPError message) throws IOException, WSTCPException
- Throws:
IOExceptionWSTCPException
-
getChannelContext
public ChannelContext getChannelContext()
-
-