|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.resteasy.core.SynchronousDispatcher
public class SynchronousDispatcher
Field Summary | |
---|---|
protected java.util.Map<java.lang.Class,java.lang.Object> |
defaultContextObjects
|
protected ExtensionHttpPreprocessor |
extentionHttpPreprocessor
|
protected ResteasyProviderFactory |
providerFactory
|
protected Registry |
registry
|
protected java.util.List<HttpRequestPreprocessor> |
requestPreprocessors
|
protected java.util.Set<java.lang.String> |
unwrappedExceptions
|
Constructor Summary | |
---|---|
SynchronousDispatcher(ResteasyProviderFactory providerFactory)
|
Method Summary | |
---|---|
void |
addHttpPreprocessor(HttpRequestPreprocessor httpPreprocessor)
|
void |
asynchronousDelivery(HttpRequest request,
HttpResponse response,
Response jaxrsResponse)
|
void |
clearContextData()
|
boolean |
executeExactExceptionMapper(HttpRequest request,
HttpResponse response,
java.lang.Throwable exception)
If there exists an Exception mapper for exception, execute it, otherwise, do NOT recurse up class hierarchy of exception. |
boolean |
executeExceptionMapper(HttpRequest request,
HttpResponse response,
java.lang.Throwable exception)
Execute an ExceptionMapper if one exists for the given exception. |
java.util.Map<java.lang.Class,java.lang.Object> |
getDefaultContextObjects()
|
ResourceInvoker |
getInvoker(HttpRequest request)
|
java.util.Map<java.lang.String,java.lang.String> |
getLanguageMappings()
|
java.util.Map<java.lang.String,MediaType> |
getMediaTypeMappings()
|
ResteasyProviderFactory |
getProviderFactory()
|
Registry |
getRegistry()
|
protected Response |
getResponse(HttpRequest request,
HttpResponse response,
ResourceInvoker invoker)
|
java.util.Set<java.lang.String> |
getUnwrappedExceptions()
|
protected void |
handleApplicationException(HttpRequest request,
HttpResponse response,
ApplicationException e)
|
void |
handleException(HttpRequest request,
HttpResponse response,
java.lang.Exception e)
|
protected void |
handleFailure(HttpRequest request,
HttpResponse response,
Failure failure)
|
void |
handleInvokerException(HttpRequest request,
HttpResponse response,
java.lang.Exception e)
Called if method invoke was unsuccessful |
protected void |
handleReaderException(HttpRequest request,
HttpResponse response,
ReaderException e)
|
protected void |
handleWebApplicationException(HttpRequest request,
HttpResponse response,
WebApplicationException wae)
|
void |
handleWriteResponseException(HttpRequest request,
HttpResponse response,
java.lang.Exception e)
Called if method invoke was successful, but writing the Response after was not. |
protected void |
handleWriterException(HttpRequest request,
HttpResponse response,
WriterException e)
|
Response |
internalInvocation(HttpRequest request,
HttpResponse response,
java.lang.Object entity)
|
void |
invoke(HttpRequest request,
HttpResponse response)
|
void |
invoke(HttpRequest request,
HttpResponse response,
ResourceInvoker invoker)
|
void |
invokePropagateNotFound(HttpRequest request,
HttpResponse response)
Propagate NotFoundException. |
protected void |
preprocess(HttpRequest in)
|
protected void |
preprocessExtensions(HttpRequest in)
|
void |
pushContextObjects(HttpRequest request,
HttpResponse response)
|
protected MediaType |
resolveContentTypeByAccept(java.util.List<MediaType> accepts,
java.lang.Object entity)
|
void |
setLanguageMappings(java.util.Map<java.lang.String,java.lang.String> languageMappings)
|
void |
setMediaTypeMappings(java.util.Map<java.lang.String,MediaType> mediaTypeMappings)
|
protected void |
unwrapException(HttpRequest request,
HttpResponse response,
java.lang.Throwable e)
|
protected void |
writeFailure(HttpRequest request,
HttpResponse response,
Response jaxrsResponse)
|
protected void |
writeJaxrsResponse(HttpRequest request,
HttpResponse response,
Response jaxrsResponse)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ResteasyProviderFactory providerFactory
protected Registry registry
protected java.util.List<HttpRequestPreprocessor> requestPreprocessors
protected ExtensionHttpPreprocessor extentionHttpPreprocessor
protected java.util.Map<java.lang.Class,java.lang.Object> defaultContextObjects
protected java.util.Set<java.lang.String> unwrappedExceptions
Constructor Detail |
---|
public SynchronousDispatcher(ResteasyProviderFactory providerFactory)
Method Detail |
---|
public ResteasyProviderFactory getProviderFactory()
getProviderFactory
in interface Dispatcher
public Registry getRegistry()
getRegistry
in interface Dispatcher
public void setMediaTypeMappings(java.util.Map<java.lang.String,MediaType> mediaTypeMappings)
setMediaTypeMappings
in interface Dispatcher
public void setLanguageMappings(java.util.Map<java.lang.String,java.lang.String> languageMappings)
setLanguageMappings
in interface Dispatcher
public java.util.Map<java.lang.String,MediaType> getMediaTypeMappings()
getMediaTypeMappings
in interface Dispatcher
public java.util.Map<java.lang.Class,java.lang.Object> getDefaultContextObjects()
getDefaultContextObjects
in interface Dispatcher
public java.util.Map<java.lang.String,java.lang.String> getLanguageMappings()
getLanguageMappings
in interface Dispatcher
public java.util.Set<java.lang.String> getUnwrappedExceptions()
protected void preprocess(HttpRequest in)
protected void preprocessExtensions(HttpRequest in)
public void invoke(HttpRequest request, HttpResponse response)
invoke
in interface Dispatcher
public void invokePropagateNotFound(HttpRequest request, HttpResponse response) throws NotFoundException
request
- response
-
NotFoundException
public ResourceInvoker getInvoker(HttpRequest request) throws Failure
Failure
public void handleInvokerException(HttpRequest request, HttpResponse response, java.lang.Exception e)
request
- response
- e
- public void handleWriteResponseException(HttpRequest request, HttpResponse response, java.lang.Exception e)
request
- response
- e
- public void handleException(HttpRequest request, HttpResponse response, java.lang.Exception e)
protected void handleFailure(HttpRequest request, HttpResponse response, Failure failure)
public boolean executeExactExceptionMapper(HttpRequest request, HttpResponse response, java.lang.Throwable exception)
request
- response
- exception
-
public boolean executeExceptionMapper(HttpRequest request, HttpResponse response, java.lang.Throwable exception)
response
- exception
-
protected void handleApplicationException(HttpRequest request, HttpResponse response, ApplicationException e)
protected void unwrapException(HttpRequest request, HttpResponse response, java.lang.Throwable e)
protected void handleWriterException(HttpRequest request, HttpResponse response, WriterException e)
protected void handleReaderException(HttpRequest request, HttpResponse response, ReaderException e)
protected void writeFailure(HttpRequest request, HttpResponse response, Response jaxrsResponse)
protected void handleWebApplicationException(HttpRequest request, HttpResponse response, WebApplicationException wae)
public void pushContextObjects(HttpRequest request, HttpResponse response)
public Response internalInvocation(HttpRequest request, HttpResponse response, java.lang.Object entity)
internalInvocation
in interface Dispatcher
public void clearContextData()
public void invoke(HttpRequest request, HttpResponse response, ResourceInvoker invoker)
protected Response getResponse(HttpRequest request, HttpResponse response, ResourceInvoker invoker)
public void asynchronousDelivery(HttpRequest request, HttpResponse response, Response jaxrsResponse)
protected void writeJaxrsResponse(HttpRequest request, HttpResponse response, Response jaxrsResponse) throws WriterException
WriterException
protected MediaType resolveContentTypeByAccept(java.util.List<MediaType> accepts, java.lang.Object entity)
public void addHttpPreprocessor(HttpRequestPreprocessor httpPreprocessor)
addHttpPreprocessor
in interface Dispatcher
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |