com.sun.xml.ws.transport.http.client
Class HttpClientTransport

java.lang.Object
  extended by com.sun.xml.ws.transport.http.client.HttpClientTransport

final class HttpClientTransport
extends Object

TODO: this class seems to be pointless. Just merge it with HttpTransportPipe.


Field Summary
(package private)  int statusCode
           
 
Constructor Summary
HttpClientTransport(Packet packet, Map<String,List<String>> reqHeaders)
           
 
Method Summary
(package private)  void checkResponseCode()
           
 void closeOutput()
           
 String getContentType()
           
 Map<String,List<String>> getHeaders()
           
 InputStream getInput()
          Get the response from HTTP connection and prepare the input stream for response
 OutputStream getOutput()
          Prepare the stream for HTTP request
(package private)  String getStatusMessage()
           
 boolean isSecure()
           
protected  InputStream readResponse()
           
protected  void sendCookieAsNeeded()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statusCode

int statusCode
Constructor Detail

HttpClientTransport

public HttpClientTransport(@NotNull
                           Packet packet,
                           @NotNull
                           Map<String,List<String>> reqHeaders)
Method Detail

getOutput

public OutputStream getOutput()
Prepare the stream for HTTP request


closeOutput

public void closeOutput()
                 throws IOException
Throws:
IOException

getInput

public InputStream getInput()
Get the response from HTTP connection and prepare the input stream for response


getHeaders

public Map<String,List<String>> getHeaders()

readResponse

protected InputStream readResponse()
                            throws IOException
Throws:
IOException

checkResponseCode

void checkResponseCode()

getStatusMessage

String getStatusMessage()
                  throws IOException
Throws:
IOException

sendCookieAsNeeded

protected void sendCookieAsNeeded()

isSecure

public boolean isSecure()

getContentType

@Nullable
public String getContentType()