protected void setProtocolHeaders() throws IOException { new Headers(outMessage).setProtocolHeadersInConnection(connection); }
public void writeToMessageHeaders(Message message) { //Do we need to maintain a session? maintainSession = MessageUtils.getContextualBoolean(message, Message.MAINTAIN_SESSION, false); //If we have any cookies and we are maintaining sessions, then use them if (maintainSession && !sessionCookies.isEmpty()) { new Headers(message).writeSessionCookies(sessionCookies); } }
protected void updateCookiesBeforeRetransmit() { Headers h = new Headers(); h.readFromConnection(connection); cookies.readFromHeaders(h); }
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 {
URI currentURI ) { Headers headers = new Headers(message); AuthorizationPolicy effectiveAuthPolicy = getEffectiveAuthPolicy(message); String authString = authSupplier.getAuthorization(effectiveAuthPolicy, currentURI, message, null);
new Headers(outMessage).setAuthorization(authorizationToken); cookies.writeToMessageHeaders(outMessage); retransmit(url.toString());
new Headers(outMessage).removeAuthorizationHeaders();
Headers headers = new Headers(inMessage); headers.copyFromRequest(req); String credentials = headers.getAuthorization();
new Headers(message).setFromClientPolicy(getClient(message));
protected void setProtocolHeaders() throws IOException { new Headers(outMessage).setProtocolHeadersInConnection(connection); }
public void writeToMessageHeaders(Message message) { //Do we need to maintain a session? maintainSession = MessageUtils.getContextualBoolean(message, Message.MAINTAIN_SESSION, false); //If we have any cookies and we are maintaining sessions, then use them if (maintainSession && !sessionCookies.isEmpty()) { new Headers(message).writeSessionCookies(sessionCookies); } }
protected void updateCookiesBeforeRetransmit() { Headers h = new Headers(); h.readFromConnection(connection); cookies.readFromHeaders(h); }
@Override protected void setProtocolHeaders() throws IOException { Headers h = new Headers(outMessage); entity.setContentType(h.determineContentType()); //REVISIT may provide an option to add other headers // boolean addHeaders = MessageUtils.isTrue(outMessage.getContextualProperty(Headers.ADD_HEADERS_PROPERTY)); }
@Override protected void updateCookiesBeforeRetransmit() throws IOException { Headers h = new Headers(); readHeaders(h); cookies.readFromHeaders(h); }
protected void updateCookiesBeforeRetransmit() throws IOException { Headers h = new Headers(); readHeaders(h); cookies.readFromHeaders(h); }
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 {
@Override protected void updateResponseHeaders(Message inMessage) throws IOException { Headers h = new Headers(inMessage); String ct = getResponse().getContentType(); inMessage.put(Message.CONTENT_TYPE, ct); //REVISIT if we are allowing more headers, we need to add them into the cxf's headers h.headerMap().put(Message.CONTENT_TYPE, Collections.singletonList(ct)); }
protected void updateResponseHeaders(Message inMessage) throws IOException { Headers h = new Headers(inMessage); inMessage.put(Message.CONTENT_TYPE, readHeaders(h)); cookies.readFromHeaders(h); }
@Override protected void updateResponseHeaders(Message inMessage) throws IOException { Headers h = new Headers(inMessage); inMessage.put(Message.CONTENT_TYPE, readHeaders(h)); cookies.readFromHeaders(h); }