com.sun.xml.ws.transport.tcp.server
Class TCPConnectionImpl

java.lang.Object
  extended by 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
TCPConnectionImpl(ChannelContext channelContext)
           
 
Method Summary
 void close()
           
 void flush()
           
 ChannelContext getChannelContext()
           
 String getContentType()
           
 String getEPRAddress(com.sun.xml.ws.api.message.Packet request, com.sun.xml.ws.api.server.WSEndpoint endpoint)
           
 int getStatus()
           
 Principal getUserPrincipal(com.sun.xml.ws.api.message.Packet request)
           
 String getWSDLAddress(com.sun.xml.ws.api.message.Packet request, com.sun.xml.ws.api.server.WSEndpoint endpoint)
           
 boolean isUserInRole(com.sun.xml.ws.api.message.Packet request, String role)
           
 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

TCPConnectionImpl

public TCPConnectionImpl(ChannelContext channelContext)
Method Detail

openInput

public InputStream openInput()
                      throws IOException,
                             WSTCPException
Throws:
IOException
WSTCPException

openOutput

public OutputStream openOutput()
                        throws IOException,
                               WSTCPException
Throws:
IOException
WSTCPException

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:
IOException
WSTCPException

close

public void close()

getUserPrincipal

public Principal getUserPrincipal(com.sun.xml.ws.api.message.Packet request)
Specified by:
getUserPrincipal in interface com.sun.xml.ws.api.server.WebServiceContextDelegate

isUserInRole

public boolean isUserInRole(com.sun.xml.ws.api.message.Packet request,
                            String role)
Specified by:
isUserInRole in interface com.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:
getEPRAddress in interface com.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:
getWSDLAddress in interface com.sun.xml.ws.api.server.WebServiceContextDelegate

sendErrorMessage

public void sendErrorMessage(WSTCPError message)
                      throws IOException,
                             WSTCPException
Throws:
IOException
WSTCPException

getChannelContext

public ChannelContext getChannelContext()


Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.