Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8404551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:37:39+00:00 2026-06-09T22:37:39+00:00

I am using Jersey Grizzly and want to implement Basic Authentication to Grizzly. I

  • 0

I am using Jersey Grizzly and want to implement Basic Authentication to Grizzly. I create my grizzly server as follows:

ResourceConfig rc = new PackagesResourceConfig("com.abc.de");
GrizzlyServerFactory.createHttpServer(BASE_URI, rc);

at another class I have something like:

@GET
@Produces("text/plain")
@Path("/description")
public String getDescription() {
    String description = "probeDescription";
    return description;
}

I don’t know the difference and main concepts of jersey and grizzly. What jersey can’t do that grizzly can. However I want that if a user wants to get description it should pass the basic authentication.

Any ideas about how can I implement it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:37:40+00:00Added an answer on June 9, 2026 at 10:37 pm

    I followed that example: http://java.net/projects/jersey/sources/svn/show/trunk/jersey/samples/https-clientserver-grizzly?rev=5752 and it works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Jersey to create a REST web service for a server component. The
Using Jersey, I want to be able to have a GET request, that would
I am using Jersey (with Jetty) and Maven to implement a RESTful service. I
We have tried to create sample webservices helloworld in Java using Jersey and Tomcat
How do I send GET requests using the Jersey Client API to a server
I have a REST service built using Jersey. I want to be able to
Using Jersey and Jackson to create a REST interface, how do I get List
I'm trying to implement REST API using Jersey with Spring on Tomcat but I'm
I am using Jersey JAX-RS. I want to return a Response with a Map
I am using to use jersey-server 1.12 with jetty-maven-plugin 8.1.2.v20120308. If I am using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.