Package org.glassfish.admin.rest.testing
Class ResourceInvoker
java.lang.Object
org.glassfish.admin.rest.testing.ResourceInvoker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbody(org.codehaus.jettison.json.JSONObject val) body(ObjectValue val) protected jakarta.ws.rs.client.ClientcustomizeClient(jakarta.ws.rs.client.Client client) delete()get()protected Stringprotected org.codehaus.jettison.json.JSONObjectgetBody()protected abstract Stringprotected Environmentprotected StringgetHost()protected abstract Stringprotected Stringprotected StringgetPort()protected Stringprotected Stringprotected abstract Stringprotected Stringprotected StringgetUri()protected StringgetUrl()protected Stringoptions()post()put()queryParam(String name, String value) protected ResponsewrapResponse(String method, jakarta.ws.rs.core.Response response)
-
Field Details
-
METHOD_OPTIONS
- See Also:
-
METHOD_GET
- See Also:
-
METHOD_POST
- See Also:
-
METHOD_PUT
- See Also:
-
METHOD_DELETE
- See Also:
-
-
Constructor Details
-
ResourceInvoker
-
-
Method Details
-
getEnvironment
-
getContextRoot
-
getResourceRoot
-
getMediaType
-
getRequestBodyMediaType
-
getResponseBodyMediaType
-
getUrl
-
url
-
getBaseUrl
-
baseUrl
-
getProtocol
-
protocol
-
getHost
-
host
-
getPort
-
port
-
getUserName
-
username
-
getPassword
-
password
-
getUri
-
uri
-
getQueryParams
-
queryParam
-
getBody
protected org.codehaus.jettison.json.JSONObject getBody() -
body
-
body
- Throws:
Exception
-
options
- Throws:
Exception
-
get
- Throws:
Exception
-
post
- Throws:
Exception
-
put
- Throws:
Exception
-
delete
- Throws:
Exception
-
customizeClient
protected jakarta.ws.rs.client.Client customizeClient(jakarta.ws.rs.client.Client client) -
wrapResponse
protected Response wrapResponse(String method, jakarta.ws.rs.core.Response response) throws Exception - Throws:
Exception
-