33343536373839
private OAuthRequest request; @Before public void setup() { request = ObjectMother.createSampleOAuthRequest(); extractor = new HeaderExtractor(); }
179180181182183184185186187
} /** {@inheritDoc} */ public Map<String, String> getHeader() { if ((header == null) && (request != null)) { header = new ReadOnlyEnumerationMap<String>(new HeaderExtractor(request, null)); } return (header); }
187188189190191192193194195
} /** {@inheritDoc} */ public Addable<String> getResponseHeaders() { if ((responseHeaders == null) && (request != null)) { responseHeaders = new HeaderExtractor(null, response); } return (responseHeaders); }
195196197198199200201202203
} /** {@inheritDoc} */ public Map<String, String[]> getHeaderValues() { if ((headerValues == null) && (request != null)) { headerValues = new HeaderValuesMap(new HeaderExtractor(request, response)); } return (headerValues); }
136137138139140141142143144145
/** {@inheritDoc} */ public Map<String, String> getHeader() { if ((header == null) && (request != null)) { header = new ReadOnlyEnumerationMap<String>(new HeaderExtractor(request, null)); } return (header); }
146147148149150151152153154155
/** {@inheritDoc} */ public Addable<String> getResponseHeaders() { if ((responseHeaders == null) && (response != null)) { responseHeaders = new HeaderExtractor(null, response); } return (responseHeaders); }
156157158159160161162163164165
/** {@inheritDoc} */ public Map<String, String[]> getHeaderValues() { if ((headerValues == null) && (request != null)) { headerValues = new HeaderValuesMap(new HeaderExtractor(request, response)); } return (headerValues); }