“java.lang.UnsupportedOperationException: Not supported yet.”

前端 未结 5 837
鱼传尺愫
鱼传尺愫 2021-01-21 08:55

What I am trying to do :

I am trying to connect to Web Portal [that uses https]using Java. I have written code for supplying user credentials using Authenticator class.W

5条回答
  •  猫巷女王i
    2021-01-21 09:42

    if you don't want implement this method :

        @Override
        public Result authenticate(HttpExchange he) {
            throw new UnsupportedOperationException("Not supported yet.");
        }
    

    take it easy , only delete this line of method :

    throw new UnsupportedOperationException("Not supported yet.");
    

提交回复
热议问题