/** * Returns the optionnally decoded host domain name component. * * @param decode * Indicates if the result should be decoded using the * {@link #decode(String)} method. * @return The optionnally decoded host domain name component. * @see #getHostDomain() */ public String getHostDomain(boolean decode) { return decode ? decode(getHostDomain()) : getHostDomain(); }
/** * Returns the optionnally decoded host domain name component. * * @param decode * Indicates if the result should be decoded using the * {@link #decode(String)} method. * @return The optionnally decoded host domain name component. * @see #getHostDomain() */ public String getHostDomain(boolean decode) { return decode ? decode(getHostDomain()) : getHostDomain(); }
/** * Returns the optionnally decoded host domain name component. * * @param decode * Indicates if the result should be decoded using the {@link #decode(String)} method. * @return The optionnally decoded host domain name component. * @see #getHostDomain() */ public String getHostDomain(boolean decode) { return decode ? decode(getHostDomain()) : getHostDomain(); }
@Override public String getCountedValue(Request request) { return request.getResourceRef().getHostDomain(); }
@Override public String getCountedValue(Request request) { return request.getResourceRef().getHostDomain(); }
@Override public String getCountedValue(Request request) { return request.getResourceRef().getHostDomain(); }
@Override public String getCountedValue(Request request) { return request.getResourceRef().getHostDomain(); }
@Override public String getCountedValue(Request request) { return request.getResourceRef().getHostDomain(); }
/** * Provides the OpenSearch description document for this Nexus instance. For the emitted XML, see <a * href="http://www.opensearch.org/Specifications/OpenSearch/1.1#OpenSearch_description_document">OpenSearch * Description Document</a>. */ @Override @GET @ResourceMethodSignature( output = String.class ) public Representation get( Context context, Request request, Response response, Variant variant ) throws ResourceException { Map<String, Object> map = new HashMap<String, Object>(); Reference nexusRef = getContextRoot( request ); String nexusRoot = nexusRef.toString(); if ( nexusRoot.endsWith( "/" ) ) { nexusRoot = nexusRoot.substring( 0, nexusRoot.length() - 1 ); } map.put( "nexusRoot", nexusRoot ); map.put( "nexusHost", nexusRef.getHostDomain() ); VelocityRepresentation templateRepresentation = new VelocityRepresentation( context, "/templates/opensearch.vm", map, MediaType.TEXT_XML ); return templateRepresentation; } }
final String hostDomain = this.baseRef.getHostDomain(); final String hostPort = Integer.toString(this.baseRef.getHostPort()); final String hostScheme = this.baseRef.getScheme();
Endpoint endpoint = new Endpoint(baseRef.getHostDomain(), baseRef.getHostPort(), baseRef.getSchemeProtocol() .getSchemeName(), baseRef.getPath(), scheme);
Endpoint endpoint = new Endpoint(baseRef.getHostDomain(), baseRef.getHostPort(), baseRef.getSchemeProtocol() .getSchemeName(), baseRef.getPath(), scheme);
Endpoint endpoint = new Endpoint(baseRef.getHostDomain(), baseRef.getHostPort(), baseRef.getSchemeProtocol() .getSchemeName(), baseRef.getPath(), scheme);
Endpoint endpoint = new Endpoint(baseRef.getHostDomain(), baseRef.getHostPort(), baseRef.getSchemeProtocol() .getSchemeName(), baseRef.getPath(), scheme);
Endpoint endpoint = new Endpoint(baseRef.getHostDomain(), baseRef.getHostPort(), baseRef.getSchemeProtocol() .getSchemeName(), baseRef.getPath(), scheme);
/** * @param ref * @param b * @return * @throws IllegalArgumentException */ private UriBuilder fillUriBuilder(Reference ref, final UriBuilder b) throws IllegalArgumentException { b.scheme(ref.getScheme(false)); b.userInfo(ref.getUserInfo(false)); b.host(ref.getHostDomain(false)); b.port(ref.getHostPort()); b.path(ref.getPath(false)); b.replaceQuery(ref.getQuery(false)); b.fragment(ref.getFragment(false)); return b; }
result = new Endpoint(ref.getHostDomain(), ref.getHostPort(), ref.getSchemeProtocol() .getSchemeName(), ref.getPath(),
result = new Endpoint(ref.getHostDomain(), ref.getHostPort(), ref.getSchemeProtocol() .getSchemeName(), ref.getPath(),
result = new Endpoint(ref.getHostDomain(), ref.getHostPort(), ref.getSchemeProtocol() .getSchemeName(), ref.getPath(),
result = new Endpoint(ref.getHostDomain(), ref.getHostPort(), ref.getSchemeProtocol() .getSchemeName(), ref.getPath(),