protected void updateCookiesBeforeRetransmit() { Headers h = new Headers(); h.readFromConnection(connection); cookies.readFromHeaders(h); }
/** * Constructor * * @param b the associated Bus. * @param ei the endpoint info of the initiator. * @param t the endpoint reference of the target. * @throws IOException */ public HTTPConduit(Bus b, EndpointInfo ei, EndpointReferenceType t) throws IOException { super(getTargetReference(ei, t, b)); bus = b; endpointInfo = ei; if (t != null) { fromEndpointReferenceType = true; } proxyFactory = new ProxyFactory(); cookies = new Cookies(); }
/** * Allow access to the cookies that the conduit is maintaining * @return the sessionCookies map */ public Map<String, Cookie> getCookies() { return cookies.getSessionCookies(); }
cookies.writeToMessageHeaders(outMessage); retransmit(url.toString()); return true;
public void readFromHeaders(Headers headers) { if (maintainSession) { List<String> c = headers.headerMap().get("Set-Cookie"); if (c != null) { handleSetCookie(c); } } }
throw new IOException(e); cookies.writeToMessageHeaders(outMessage); outMessage.put("transport.retransmit.url", newURL); retransmit(newURL);
public void readFromHeaders(Headers headers) { if (maintainSession) { List<String> c = headers.headerMap().get("Set-Cookie"); if (c != null) { handleSetCookie(c); } } }
protected void updateResponseHeaders(Message inMessage) { Headers h = new Headers(inMessage); h.readFromConnection(connection); inMessage.put(Message.CONTENT_TYPE, connection.getContentType()); cookies.readFromHeaders(h); } protected void handleResponseAsync() throws IOException {
chunkThreshold = csPolicy.getChunkingThreshold(); cookies.writeToMessageHeaders(message);
public void readFromHeaders(Headers headers) { if (maintainSession) { List<String> c = headers.headerMap().get("Set-Cookie"); if (c != null) { handleSetCookie(c); } } }
/** * Allow access to the cookies that the conduit is maintaining * @return the sessionCookies map */ public Map<String, Cookie> getCookies() { return cookies.getSessionCookies(); }
/** * Constructor * * @param b the associated Bus. * @param ei the endpoint info of the initiator. * @param t the endpoint reference of the target. * @throws IOException */ public HTTPConduit(Bus b, EndpointInfo ei, EndpointReferenceType t) throws IOException { super(getTargetReference(ei, t, b)); bus = b; endpointInfo = ei; if (t != null) { fromEndpointReferenceType = true; } proxyFactory = new ProxyFactory(); cookies = new Cookies(); }
protected void updateCookiesBeforeRetransmit() { Headers h = new Headers(); h.readFromConnection(connection); cookies.readFromHeaders(h); }
protected boolean authorizationRetransmit() throws IOException { boolean b = super.authorizationRetransmit(); if (!b) { //HTTPClient may be handling the authorization things instead of us, we //just need to make sure we set the cookies and proceed and HC //will do the negotiation and such. try { closeInputStream(); } catch (Throwable t) { //ignore } cookies.writeToMessageHeaders(outMessage); retransmit(url.toString()); return true; } return b; }
/** * Allow access to the cookies that the conduit is maintaining * @return the sessionCookies map */ public Map<String, Cookie> getCookies() { return cookies.getSessionCookies(); }
/** * Constructor * * @param b the associated Bus. * @param endpoint the endpoint info of the initiator. * @param t the endpoint reference of the target. * @throws IOException */ public HTTPConduit(Bus b, EndpointInfo ei, EndpointReferenceType t) throws IOException { super(getTargetReference(ei, t, b)); bus = b; endpointInfo = ei; if (t != null) { fromEndpointReferenceType = true; } proxyFactory = new ProxyFactory(); cookies = new Cookies(); updateClientPolicy(); }
protected void updateCookiesBeforeRetransmit() throws IOException { Headers h = new Headers(); readHeaders(h); cookies.readFromHeaders(h); }
cookies.writeToMessageHeaders(outMessage); retransmit(url.toString()); return true;
@Override protected void updateCookiesBeforeRetransmit() throws IOException { Headers h = new Headers(); readHeaders(h); cookies.readFromHeaders(h); }
throw new IOException(e); cookies.writeToMessageHeaders(outMessage); outMessage.put("transport.retransmit.url", newURL); retransmit(newURL);