Class InternalDispatcher
java.lang.Object
org.jboss.resteasy.core.InternalDispatcher
InternalDispatch represents a "forward" in servlet terms. You can perform an internal GET/POST/DELETE/PUT using IntenalDispatch using Java Object. For example:
@GET @Produces("text/plain") @Path("/forward/object") public SomeObject forward(@Context InternalDispatcher dispatcher) { return (SomeObject) dispatcher.getEntity("/some-object"); }
That previous snippet performs an internal request to /some-object and returns the Object representation of the Resource that lives at "/some-object".
- Version:
- $Revision: 1 $
- Author:
- Solomon Duskis
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MockHttpRequest
createRequest
(String relativeUri, String verb) jakarta.ws.rs.core.Response
protected void
enhanceRequest
(MockHttpRequest request) jakarta.ws.rs.core.Response
executeEntity
(String method, String uri, String contentType, Object entity) static InternalDispatcher
jakarta.ws.rs.core.Response
getResponse
(String uri) jakarta.ws.rs.core.Response
getResponse
(MockHttpRequest request) jakarta.ws.rs.core.Response
getResponse
(MockHttpRequest request, Object entity) jakarta.ws.rs.core.Response
postEntity
(String uri, Object entity) jakarta.ws.rs.core.Response
postEntity
(String uri, String contentType, Object entity) jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
static void
setInstance
(InternalDispatcher instance)
-
Constructor Details
-
InternalDispatcher
public InternalDispatcher()
-
-
Method Details
-
getInstance
-
setInstance
-
getEntity
-
delete
-
putEntity
-
putEntity
-
executeEntity
-
postEntity
-
postEntity
-
getResponse
-
getResponse
-
getResponse
-
enhanceRequest
-
createRequest
-