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 classClientInterceptorRepositoryImpl.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 voidcopyClientInterceptorsTo(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.LinkedListgetInterceptors(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()voidprefixClientInterceptorsTo(ClientInterceptorRepositoryImpl copyTo)voidregisterInterceptor(java.lang.Object interceptor)private voidsetData(ClientInterceptorRepositoryImpl.InterceptorType type, java.lang.Object[] arr)private voidsetData(ClientInterceptorRepositoryImpl.InterceptorType type, java.util.Collection newList)protected voidsetExecutionInterceptors(java.util.Collection<ClientExecutionInterceptor> executionInterceptorList)protected voidsetExecutionInterceptors(ClientExecutionInterceptor[] executionInterceptors)protected voidsetReaderInterceptors(javax.ws.rs.ext.ReaderInterceptor[] readerInterceptors)protected voidsetWriterInterceptors(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:
getReaderInterceptorListin interfaceClientInterceptorRepository
-
getWriterInterceptorList
public java.util.LinkedList<javax.ws.rs.ext.WriterInterceptor> getWriterInterceptorList()
- Specified by:
getWriterInterceptorListin interfaceClientInterceptorRepository
-
getExecutionInterceptorList
public java.util.LinkedList<ClientExecutionInterceptor> getExecutionInterceptorList()
- Specified by:
getExecutionInterceptorListin 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:
registerInterceptorin interfaceClientInterceptorRepository
-
-