Package org.jboss.resteasy.client.core
Class ClientInterceptorRepositoryImpl
- java.lang.Object
-
- org.jboss.resteasy.client.core.ClientInterceptorRepositoryImpl
-
- All Implemented Interfaces:
ClientInterceptorRepository
- Direct Known Subclasses:
ClientInvoker
,ClientRequest
public class ClientInterceptorRepositoryImpl extends java.lang.Object implements ClientInterceptorRepository
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ClientInterceptorRepositoryImpl.InterceptorType
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<ClientInterceptorRepositoryImpl.InterceptorType,java.util.LinkedList<?>>
interceptorLists
-
Constructor Summary
Constructors Constructor Description ClientInterceptorRepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyClientInterceptorsTo(ClientInterceptorRepositoryImpl copyTo)
private <T> T[]
getArray(java.lang.Class<T> type)
java.util.LinkedList<ClientExecutionInterceptor>
getExecutionInterceptorList()
protected ClientExecutionInterceptor[]
getExecutionInterceptors()
protected <T> java.util.LinkedList<T>
getInterceptors(java.lang.Class<T> clazz)
protected java.util.LinkedList
getInterceptors(ClientInterceptorRepositoryImpl.InterceptorType interceptorType)
java.util.LinkedList<javax.ws.rs.ext.ReaderInterceptor>
getReaderInterceptorList()
protected javax.ws.rs.ext.ReaderInterceptor[]
getReaderInterceptors()
java.util.LinkedList<javax.ws.rs.ext.WriterInterceptor>
getWriterInterceptorList()
protected javax.ws.rs.ext.WriterInterceptor[]
getWriterInterceptors()
void
prefixClientInterceptorsTo(ClientInterceptorRepositoryImpl copyTo)
void
registerInterceptor(java.lang.Object interceptor)
private void
setData(ClientInterceptorRepositoryImpl.InterceptorType type, java.lang.Object[] arr)
private void
setData(ClientInterceptorRepositoryImpl.InterceptorType type, java.util.Collection newList)
protected void
setExecutionInterceptors(java.util.Collection<ClientExecutionInterceptor> executionInterceptorList)
protected void
setExecutionInterceptors(ClientExecutionInterceptor[] executionInterceptors)
protected void
setReaderInterceptors(javax.ws.rs.ext.ReaderInterceptor[] readerInterceptors)
protected void
setWriterInterceptors(javax.ws.rs.ext.WriterInterceptor[] writerInterceptors)
-
-
-
Field Detail
-
interceptorLists
private java.util.Map<ClientInterceptorRepositoryImpl.InterceptorType,java.util.LinkedList<?>> interceptorLists
-
-
Method Detail
-
getReaderInterceptors
protected javax.ws.rs.ext.ReaderInterceptor[] getReaderInterceptors()
-
getWriterInterceptors
protected javax.ws.rs.ext.WriterInterceptor[] getWriterInterceptors()
-
getExecutionInterceptors
protected ClientExecutionInterceptor[] getExecutionInterceptors()
-
getArray
private <T> T[] getArray(java.lang.Class<T> type)
-
setReaderInterceptors
protected void setReaderInterceptors(javax.ws.rs.ext.ReaderInterceptor[] readerInterceptors)
-
setWriterInterceptors
protected void setWriterInterceptors(javax.ws.rs.ext.WriterInterceptor[] writerInterceptors)
-
setExecutionInterceptors
protected void setExecutionInterceptors(ClientExecutionInterceptor[] executionInterceptors)
-
setExecutionInterceptors
protected void setExecutionInterceptors(java.util.Collection<ClientExecutionInterceptor> executionInterceptorList)
-
getReaderInterceptorList
public java.util.LinkedList<javax.ws.rs.ext.ReaderInterceptor> getReaderInterceptorList()
- Specified by:
getReaderInterceptorList
in interfaceClientInterceptorRepository
-
getWriterInterceptorList
public java.util.LinkedList<javax.ws.rs.ext.WriterInterceptor> getWriterInterceptorList()
- Specified by:
getWriterInterceptorList
in interfaceClientInterceptorRepository
-
getExecutionInterceptorList
public java.util.LinkedList<ClientExecutionInterceptor> getExecutionInterceptorList()
- Specified by:
getExecutionInterceptorList
in interfaceClientInterceptorRepository
-
getInterceptors
protected <T> java.util.LinkedList<T> getInterceptors(java.lang.Class<T> clazz)
-
getInterceptors
protected java.util.LinkedList getInterceptors(ClientInterceptorRepositoryImpl.InterceptorType interceptorType)
-
setData
private void setData(ClientInterceptorRepositoryImpl.InterceptorType type, java.lang.Object[] arr)
-
setData
private void setData(ClientInterceptorRepositoryImpl.InterceptorType type, java.util.Collection newList)
-
copyClientInterceptorsTo
public void copyClientInterceptorsTo(ClientInterceptorRepositoryImpl copyTo)
-
prefixClientInterceptorsTo
public void prefixClientInterceptorsTo(ClientInterceptorRepositoryImpl copyTo)
-
registerInterceptor
public void registerInterceptor(java.lang.Object interceptor)
- Specified by:
registerInterceptor
in interfaceClientInterceptorRepository
-
-