Questions tagged [getmethod]

An HTTP protocol request method.

156 questions
1
vote
3 answers

Passing multidimensional array back through access members

I have a class "foo" that has a multi dimensional array and need to provide a copy of the array through a getArray member. Is there a nice way of doing this when the array is dynamically created so I can not pass the array back a const as the array…
user174084
  • 1,087
  • 3
  • 14
  • 23
1
vote
1 answer

Php checkbox using the get method

I've got this :
Meta_data
  • 558
  • 3
  • 14
1
vote
1 answer

Spring Security access to a request, without pre-authentication, from remote access

I wrote here because I cannot find a clear answer to my problem: My project is using Spring MVC and Spring Security. I well installed both for a web application (of course using Java). I can access with post and get method, but only after the user…
user954156
  • 468
  • 2
  • 6
  • 17
1
vote
1 answer

Reflexive calls go wrong because of getClass()

I'm facing something that I don't think is solvable, but it's worth a try. Assume you have the following classes : package a; public class A { protected A() {} public static void staticMethod(A a) { // ... } } public class B…
executifs
  • 1,138
  • 1
  • 9
  • 23
1
vote
2 answers

I sometimes can't get the method name from my method in Silverlight

I have this method that logs errors from the Silverlight client: [MethodImpl(MethodImplOptions.NoInlining)] public static bool ErrorHandler(Exception error, bool showError = true) { string callingMethod = new StackFrame(1).GetMethod().Name; …
Rumplin
  • 2,703
  • 21
  • 45
0
votes
2 answers

Android cant reach "setOnClickListener" method by using getMethod ,getMethods,getDeclaredMethod

I have Button and I can get any of its methods such as getText,setText ... using Method mth = myButton.getClass().getMethod("getText", parameterTypes); but when I try to get "setOnClickListener" method using the same code Method mth =…
the_farmer
  • 649
  • 1
  • 8
  • 23
0
votes
1 answer

How to show data from API in flutter using get method with bearer token

I have succeed to show my token when I have logged in, this token is to access the product page after login. The problem is my product page can only show data with token that I have but I don't know how to save my token and use it to show my the…
0
votes
1 answer

Java getMethod(), NoSuchMethodException though method exists

I am trying to code a method 'interaction' which takes a keyboard input and calls the respective function. However, I am getting NoSuchMethodExceptions even when the input is valid. public class Battle { public void interaction (String input, int…
0
votes
0 answers

What measures should I take to protect private user information when using the GET method in an Android application with SSL?

Is using GET method to communication secure inside android application? I am a novice programmer. I have a question about the security of user information on the server side, in Android programming. In some parts of my work, I have used GET method…
0
votes
1 answer

I need to listen update phase (in life cycle) without constantly sending get requests in react JS

I am trying to write a program that communicates with the client frequently and I need to quickly notice the changes and read the result from the server. But this request is constantly being sent and loaded, even when the user is not interacting.…
0
votes
1 answer

Highlight a row when a condition is met

I would like to color in red the rows where between column F and K there is no value ' ', or the value KO. I managed to find a script where I can delete the lines where these conditions are met, but not to color them: function deleteRows() { …
user19870352
0
votes
0 answers

Get the employee details by passing employee id using REST service in SOA

I want to do a POC on REST service. Requirement is by passing the employee id than it returns back response like Employee details like Employee name,Department,Location etc. while using REST service in Oracle SOA 12C. Your help makes me done this…
0
votes
1 answer

get data from newsapi

I'm trying to get news API from https://newsapi.org. on IntelliJ when I call : httpURLConnection.setRequestMethod("GET"); I get response and its working but on the androidstudio when I call the method I get this error :…
Behzad
  • 1
  • 3
0
votes
1 answer

I have an error trying to fetch data from database to frontend using GET method

Compiled with problems:X ERROR src\component\Products.jsx Line 8:34: React Hook "useState" is called in function "getAllProducts" that is neither a React function component nor a custom React Hook function. React component names must start with an…
Ms.Grepper
  • 11
  • 5
0
votes
1 answer

How to use body for GET method in ADF's web activity with x-www-form-urlencoded content?

I am working on a task, where i need to call an api use GET method and have to pass some data into body. I am mainly using Azure data factory Web activity for same but I am not able to see any section when i can put the data in body. As you can…