Package org.jboss.resteasy.core

Examples of org.jboss.resteasy.core.Headers


            }
        }

        ServerResponse response = new ServerResponse();
        response.setStatus(HttpResponseCodes.SC_UNAUTHORIZED);
        Headers headers = new Headers();
        headers.add("Content-Type", "text/plain");
        headers.add("WWW-Authenticate", "BASIC realm=\"users\"");
        response.setMetadata(headers);
        response.setEntity("Error 401 Unauthorized: "
                + request.getPreprocessedPath());
        return response;
    }
View Full Code Here

TOP

Related Classes of org.jboss.resteasy.core.Headers

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.